Subversion Repositories HelenOS

Rev

Rev 2438 | Rev 2459 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2438 Rev 2454
Line 34... Line 34...
34
BFD = binary
34
BFD = binary
35
TARGET = i686-pc-linux-gnu
35
TARGET = i686-pc-linux-gnu
36
TOOLCHAIN_DIR = /usr/local/i686
36
TOOLCHAIN_DIR = /usr/local/i686
37
 
37
 
38
DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__
38
DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__
-
 
39
SUNCC_CFLAGS = -m32
39
 
40
 
40
## Accepted CPUs
41
## Accepted CPUs
41
#
42
#
42
 
43
 
43
ifeq ($(MACHINE),athlon-xp)
44
ifeq ($(MACHINE),athlon-xp)
44
	CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
45
	GCC_CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
45
	DEFS += -DCONFIG_FENCES_P3
46
	DEFS += -DCONFIG_FENCES_P3
46
	CONFIG_SMP = n
47
	CONFIG_SMP = n
47
	CONFIG_HT = n
48
	CONFIG_HT = n
48
endif
49
endif
49
ifeq ($(MACHINE),athlon-mp)
50
ifeq ($(MACHINE),athlon-mp)
50
	CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
51
	GCC_CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
51
	DEFS += -DCONFIG_FENCES_P3
52
	DEFS += -DCONFIG_FENCES_P3
52
	CONFIG_HT = n
53
	CONFIG_HT = n
53
endif
54
endif
54
ifeq ($(MACHINE),pentium3)
55
ifeq ($(MACHINE),pentium3)
55
	CFLAGS += -march=pentium3 -mmmx -msse
56
	GCC_CFLAGS += -march=pentium3 -mmmx -msse
56
	DEFS += -DCONFIG_FENCES_P3
57
	DEFS += -DCONFIG_FENCES_P3
57
	CONFIG_HT = n
58
	CONFIG_HT = n
58
endif
59
endif
59
ifeq ($(MACHINE),prescott)
60
ifeq ($(MACHINE),prescott)
60
	CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
61
	GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
61
	DEFS += -DCONFIG_FENCES_P4
62
	DEFS += -DCONFIG_FENCES_P4
62
endif
63
endif
63
ifeq ($(MACHINE),pentium4)
64
ifeq ($(MACHINE),pentium4)
64
	ifeq ($(COMPILER),icc_native)
65
	ifeq ($(COMPILER),icc_native)
65
		CFLAGS += -march=pentium4
66
		GCC_CFLAGS += -march=pentium4
66
	else
67
	else
67
		CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
68
		GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
68
	endif
69
	endif
69
	DEFS += -DCONFIG_FENCES_P4
70
	DEFS += -DCONFIG_FENCES_P4
70
endif
71
endif
71
 
72
 
72
## Own configuration directives
73
## Own configuration directives