Rev 534 | Rev 568 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 534 | Rev 550 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | TOOLCHAIN_DIR = /usr/local/i686/bin |
36 | TOOLCHAIN_DIR = /usr/local/i686/bin |
| 37 | 37 | ||
| 38 | ## Make some default assumptions |
38 | ## Make some default assumptions |
| 39 | # |
39 | # |
| 40 | 40 | ||
| 41 | ifndef CPU |
41 | ifndef IA32_CPU |
| 42 | CPU = pentium4 |
42 | IA32_CPU = pentium4 |
| 43 | endif |
43 | endif |
| 44 | 44 | ||
| 45 | DEFS += -D_CPU=${CPU} |
45 | DEFS += -D_CPU=${IA32_CPU} |
| 46 | 46 | ||
| 47 | ## Accepted CPUs |
47 | ## Accepted CPUs |
| 48 | # |
48 | # |
| 49 | 49 | ||
| 50 | ifeq ($(CPU),athlon-xp) |
50 | ifeq ($(IA32_CPU),athlon-xp) |
| 51 | CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow |
51 | CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow |
| 52 | DEFS += -DCONFIG_FENCES_P3 |
52 | DEFS += -DCONFIG_FENCES_P3 |
| 53 | CONFIG_SMP = n |
53 | CONFIG_SMP = n |
| 54 | CONFIG_HT = n |
54 | CONFIG_HT = n |
| 55 | endif |
55 | endif |
| 56 | ifeq ($(CPU),athlon-mp) |
56 | ifeq ($(IA32_CPU),athlon-mp) |
| 57 | CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow |
57 | CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow |
| 58 | DEFS += -DCONFIG_FENCES_P3 |
58 | DEFS += -DCONFIG_FENCES_P3 |
| 59 | CONFIG_HT = n |
59 | CONFIG_HT = n |
| 60 | endif |
60 | endif |
| 61 | ifeq ($(CPU),pentium3) |
61 | ifeq ($(IA32_CPU),pentium3) |
| 62 | CFLAGS += -march=pentium3 -mmmx -msse |
62 | CFLAGS += -march=pentium3 -mmmx -msse |
| 63 | DEFS += -DCONFIG_FENCES_P3 |
63 | DEFS += -DCONFIG_FENCES_P3 |
| 64 | CONFIG_HT = n |
64 | CONFIG_HT = n |
| 65 | endif |
65 | endif |
| 66 | ifeq ($(CPU),prescott) |
66 | ifeq ($(IA32_CPU),prescott) |
| 67 | CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 |
67 | CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 |
| 68 | DEFS += -DCONFIG_FENCES_P4 |
68 | DEFS += -DCONFIG_FENCES_P4 |
| 69 | endif |
69 | endif |
| 70 | ifeq ($(CPU),pentium4) |
70 | ifeq ($(IA32_CPU),pentium4) |
| 71 | CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 |
71 | CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 |
| 72 | DEFS += -DCONFIG_FENCES_P4 |
72 | DEFS += -DCONFIG_FENCES_P4 |
| 73 | endif |
73 | endif |
| 74 | 74 | ||
| 75 | ## Own configuration directives |
75 | ## Own configuration directives |