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