Subversion Repositories HelenOS

Rev

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

Rev 2453 Rev 2454
Line 34... Line 34...
34
-include Makefile.config
34
-include Makefile.config
35
 
35
 
36
## Common compiler flags
36
## Common compiler flags
37
#
37
#
38
 
38
 
39
DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" -DKERNEL
39
DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" \
-
 
40
	-DKERNEL
-
 
41
 
40
CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
42
GCC_CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes \
-
 
43
	-Werror -O3 -nostdlib -nostdinc -Igeneric/include/
-
 
44
 
-
 
45
SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all \
-
 
46
	-D__FUNCTION__=__func__ -features=extensions \
-
 
47
	-erroff=E_ZERO_SIZED_STRUCT_UNION
41
 
48
 
42
#SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all \
-
 
43
#-D__FUNCTION__=__func__ -features=extensions \
-
 
44
#-erroff=E_ZERO_SIZED_STRUCT_UNION
-
 
45
 
49
 
46
LFLAGS = -M
50
LFLAGS = -M
47
AFLAGS =
51
AFLAGS =
48
 
52
 
49
ifdef REVISION
53
ifdef REVISION
Line 129... Line 133...
129
	AS = as
133
	AS = as
130
	LD = ld
134
	LD = ld
131
	OBJCOPY = objcopy
135
	OBJCOPY = objcopy
132
	OBJDUMP = objdump
136
	OBJDUMP = objdump
133
	LIBDIR = /usr/lib
137
	LIBDIR = /usr/lib
-
 
138
	CFLAGS = $(GCC_CFLAGS)
134
endif
139
endif
135
 
140
 
136
ifeq ($(COMPILER),icc_native)
141
ifeq ($(COMPILER),icc_native)
137
	CC = icc
142
	CC = icc
138
	AS_CC = gcc
143
	AS_CC = gcc
139
	AS = as
144
	AS = as
140
	LD = ld
145
	LD = ld
141
	OBJCOPY = objcopy
146
	OBJCOPY = objcopy
142
	OBJDUMP = objdump
147
	OBJDUMP = objdump
143
	LIBDIR = /usr/lib
148
	LIBDIR = /usr/lib
-
 
149
	CFLAGS = $(GCC_CFLAGS)
144
endif
150
endif
145
 
151
 
146
ifeq ($(COMPILER),suncc_native)
152
ifeq ($(COMPILER),suncc_native)
147
	CC = suncc
153
	CC = suncc
148
	AS_CC = gcc
154
	AS_CC = gcc
149
	AS = as
155
	AS = as
150
	LD = ld
156
	LD = ld
151
	OBJCOPY = objcopy
157
	OBJCOPY = objcopy
152
	OBJDUMP = objdump
158
	OBJDUMP = objdump
153
	LIBDIR = /usr/lib
159
	LIBDIR = /usr/lib
-
 
160
	CFLAGS = $(SUNCC_CFLAGS)
154
endif
161
endif
155
 
162
 
156
ifeq ($(COMPILER),gcc_cross)
163
ifeq ($(COMPILER),gcc_cross)
157
	CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc
164
	CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc
158
	AS_CC = $(CC)
165
	AS_CC = $(CC)
159
	AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as
166
	AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as
160
	LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld
167
	LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld
161
	OBJCOPY = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objcopy
168
	OBJCOPY = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objcopy
162
	OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump
169
	OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump
163
	LIBDIR = $(TOOLCHAIN_DIR)/lib
170
	LIBDIR = $(TOOLCHAIN_DIR)/lib
-
 
171
	CFLAGS = $(GCC_CFLAGS)
164
endif
172
endif
165
 
173
 
166
## Generic kernel sources
174
## Generic kernel sources
167
#
175
#
168
 
176