8 |
# Choose architecture |
# Choose architecture |
9 |
ARCHOPTS=-e 's/^model name.*Pentium III.*$$/-march=pentium3/' \ |
ARCHOPTS=-e 's/^model name.*Pentium III.*$$/-march=pentium3/' \ |
10 |
-e 's/^model name.*Pentium(R) 4.*$$/-march=pentium4/' \ |
-e 's/^model name.*Pentium(R) 4.*$$/-march=pentium4/' \ |
11 |
|
-e 's/^model name.*AMD Athlon(tm).*$$/-march=athlon/' \ |
12 |
-e 's/^flags.* sse2 .*$$/-mfpmath=sse -msse2/' \ |
-e 's/^flags.* sse2 .*$$/-mfpmath=sse -msse2/' \ |
13 |
-e 's/^flags.* sse .*$$/-mfpmath=sse/' |
-e 's/^flags.* sse .*$$/-mfpmath=sse/' \ |
14 |
|
-e 's/^flags.* 3dnow .*$$/-mfpmath=387 -m3dnow/' |
15 |
ARCH=$(shell [ ! -f /proc/cpuinfo ] || sed $(ARCHOPTS) -e "/^-/!d" /proc/cpuinfo) |
ARCH=$(shell [ ! -f /proc/cpuinfo ] || sed $(ARCHOPTS) -e "/^-/!d" /proc/cpuinfo) |
16 |
|
|
17 |
# OPTIMIZE = -O3 -ffast-math $(ARCH) -fomit-frame-pointer -foptimize-sibling-calls |
# OPTIMIZE = -O3 -ffast-math $(ARCH) -fomit-frame-pointer -foptimize-sibling-calls |