OLD | NEW |
1 # | 1 # |
2 # (C) Copyright 2000-2006 | 2 # (C) Copyright 2000-2006 |
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. | 3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 # | 4 # |
5 # See file CREDITS for list of people who contributed to this | 5 # See file CREDITS for list of people who contributed to this |
6 # project. | 6 # project. |
7 # | 7 # |
8 # This program is free software; you can redistribute it and/or | 8 # This program is free software; you can redistribute it and/or |
9 # modify it under the terms of the GNU General Public License as | 9 # modify it under the terms of the GNU General Public License as |
10 # published by the Free Software Foundation; either version 2 of | 10 # published by the Free Software Foundation; either version 2 of |
(...skipping 28 matching lines...) Expand all Loading... |
39 src := | 39 src := |
40 endif | 40 endif |
41 | 41 |
42 # clean the slate ... | 42 # clean the slate ... |
43 PLATFORM_RELFLAGS = | 43 PLATFORM_RELFLAGS = |
44 PLATFORM_CPPFLAGS = | 44 PLATFORM_CPPFLAGS = |
45 PLATFORM_LDFLAGS = | 45 PLATFORM_LDFLAGS = |
46 | 46 |
47 ######################################################################### | 47 ######################################################################### |
48 | 48 |
| 49 ifdef CROS_CONFIG_PATH |
| 50 HOSTCPPFLAGS += -I$(CROS_CONFIG_PATH) |
| 51 endif |
| 52 |
49 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ | 53 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ |
50 $(HOSTCPPFLAGS) | 54 $(HOSTCPPFLAGS) |
51 HOSTSTRIP = strip | 55 HOSTSTRIP = strip |
52 | 56 |
53 # | 57 # |
54 # Mac OS X / Darwin's C preprocessor is Apple specific. It | 58 # Mac OS X / Darwin's C preprocessor is Apple specific. It |
55 # generates numerous errors and warnings. We want to bypass it | 59 # generates numerous errors and warnings. We want to bypass it |
56 # and use GNU C's cpp. To do this we pass the -traditional-cpp | 60 # and use GNU C's cpp. To do this we pass the -traditional-cpp |
57 # option to the compiler. Note that the -traditional-cpp flag | 61 # option to the compiler. Note that the -traditional-cpp flag |
58 # DOES NOT have the same semantics as GNU C's flag, all it does | 62 # DOES NOT have the same semantics as GNU C's flag, all it does |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include | 182 CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include |
179 endif | 183 endif |
180 | 184 |
181 ifdef VBOOT | 185 ifdef VBOOT |
182 CPPFLAGS += -I$(VBOOT)/include/vboot | 186 CPPFLAGS += -I$(VBOOT)/include/vboot |
183 endif | 187 endif |
184 ifdef VBOOT_DEBUG | 188 ifdef VBOOT_DEBUG |
185 CPPFLAGS += -DVBOOT_DEBUG | 189 CPPFLAGS += -DVBOOT_DEBUG |
186 endif | 190 endif |
187 | 191 |
| 192 ifdef CROS_CONFIG_PATH |
| 193 CPPFLAGS += -I$(CROS_CONFIG_PATH) |
| 194 endif |
| 195 |
188 CPPFLAGS += -I$(TOPDIR)/include | 196 CPPFLAGS += -I$(TOPDIR)/include |
189 CPPFLAGS += -fno-builtin -ffreestanding -nostdinc \ | 197 CPPFLAGS += -fno-builtin -ffreestanding -nostdinc \ |
190 -isystem $(gccincdir) -pipe $(PLATFORM_CPPFLAGS) | 198 -isystem $(gccincdir) -pipe $(PLATFORM_CPPFLAGS) |
191 | 199 |
192 ifdef BUILD_TAG | 200 ifdef BUILD_TAG |
193 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes \ | 201 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes \ |
194 -DBUILD_TAG='"$(BUILD_TAG)"' | 202 -DBUILD_TAG='"$(BUILD_TAG)"' |
195 else | 203 else |
196 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes | 204 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes |
197 endif | 205 endif |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 $(CC) $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ | 267 $(CC) $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ |
260 -o $@ $< -c | 268 -o $@ $< -c |
261 $(obj)%.i: %.c | 269 $(obj)%.i: %.c |
262 $(CPP) $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ | 270 $(CPP) $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ |
263 -o $@ $< -c | 271 -o $@ $< -c |
264 $(obj)%.s: %.c | 272 $(obj)%.s: %.c |
265 $(CC) $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ | 273 $(CC) $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ |
266 -o $@ $< -c -S | 274 -o $@ $< -c -S |
267 | 275 |
268 ######################################################################### | 276 ######################################################################### |
OLD | NEW |