Rev 2227 | Rev 2443 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2227 | Rev 2437 | ||
---|---|---|---|
Line 35... | Line 35... | ||
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)\"" -DKERNEL |
40 | CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/ |
40 | CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/ |
41 | LFLAGS = -M |
41 | LFLAGS = -M |
42 | AFLAGS = |
42 | AFLAGS = |
43 | 43 | ||
44 | ifdef REVISION |
44 | ifdef REVISION |
45 | DEFS += "-DREVISION=\"$(REVISION)\"" |
45 | DEFS += "-DREVISION=\"$(REVISION)\"" |
Line 116... | Line 116... | ||
116 | endif |
116 | endif |
117 | 117 | ||
118 | ## Toolchain configuration |
118 | ## Toolchain configuration |
119 | # |
119 | # |
120 | 120 | ||
121 | ifeq ($(COMPILER),native) |
121 | ifeq ($(COMPILER),gcc_native) |
122 | CC = gcc |
122 | CC = gcc |
123 | AS = as |
123 | AS = as |
124 | LD = ld |
124 | LD = ld |
125 | OBJCOPY = objcopy |
125 | OBJCOPY = objcopy |
126 | OBJDUMP = objdump |
126 | OBJDUMP = objdump |
127 | LIBDIR = /usr/lib |
127 | LIBDIR = /usr/lib |
128 | else |
128 | endif |
- | 129 | ||
- | 130 | ifeq ($(COMPILER),icc_native) |
|
- | 131 | CC = icc |
|
- | 132 | AS = as |
|
- | 133 | LD = ld |
|
- | 134 | OBJCOPY = objcopy |
|
- | 135 | OBJDUMP = objdump |
|
- | 136 | LIBDIR = /usr/lib |
|
- | 137 | endif |
|
- | 138 | ||
- | 139 | ifeq ($(COMPILER),gcc_cross) |
|
129 | CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc |
140 | CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc |
130 | AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as |
141 | AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as |
131 | LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld |
142 | LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld |
132 | OBJCOPY = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objcopy |
143 | OBJCOPY = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objcopy |
133 | OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump |
144 | OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump |