Blame view
config.mk
11.4 KB
e22117437 Initial revision |
1 |
# |
eca3aeb35 Licenses: introdu... |
2 |
# (C) Copyright 2000-2013 |
e22117437 Initial revision |
3 4 |
# Wolfgang Denk, DENX Software Engineering, wd@denx.de. # |
eca3aeb35 Licenses: introdu... |
5 |
# SPDX-License-Identifier: GPL-2.0+ |
e22117437 Initial revision |
6 |
# |
e22117437 Initial revision |
7 |
######################################################################### |
120ae6091 Makefile: Move SH... |
8 9 10 11 12 13 |
# Set shell to bash if possible, otherwise fall back to sh SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ else if [ -x /bin/bash ]; then echo /bin/bash; \ else echo sh; fi; fi) export SHELL |
3aa29de0b TPL : introduce t... |
14 15 16 17 18 |
ifeq ($(CONFIG_TPL_BUILD),y) SPL_BIN := u-boot-tpl else SPL_BIN := u-boot-spl endif |
f93286397 Add support for a... |
19 |
ifeq ($(CURDIR),$(SRCTREE)) |
511d0c72b Coding style cleanup |
20 |
dir := |
f93286397 Add support for a... |
21 22 23 |
else dir := $(subst $(SRCTREE)/,,$(CURDIR)) endif |
c8f9c302c Extend build-syst... |
24 25 26 |
ifneq ($(OBJTREE),$(SRCTREE)) # Create object files for SPL in a separate directory ifeq ($(CONFIG_SPL_BUILD),y) |
3aa29de0b TPL : introduce t... |
27 28 29 |
ifeq ($(CONFIG_TPL_BUILD),y) obj := $(if $(dir),$(TPLTREE)/$(dir)/,$(TPLTREE)/) else |
c8f9c302c Extend build-syst... |
30 |
obj := $(if $(dir),$(SPLTREE)/$(dir)/,$(SPLTREE)/) |
3aa29de0b TPL : introduce t... |
31 |
endif |
c8f9c302c Extend build-syst... |
32 |
else |
f93286397 Add support for a... |
33 |
obj := $(if $(dir),$(OBJTREE)/$(dir)/,$(OBJTREE)/) |
c8f9c302c Extend build-syst... |
34 |
endif |
f93286397 Add support for a... |
35 36 37 38 |
src := $(if $(dir),$(SRCTREE)/$(dir)/,$(SRCTREE)/) $(shell mkdir -p $(obj)) else |
c8f9c302c Extend build-syst... |
39 40 |
# Create object files for SPL in a separate directory ifeq ($(CONFIG_SPL_BUILD),y) |
3aa29de0b TPL : introduce t... |
41 42 43 |
ifeq ($(CONFIG_TPL_BUILD),y) obj := $(if $(dir),$(TPLTREE)/$(dir)/,$(TPLTREE)/) else |
c8f9c302c Extend build-syst... |
44 |
obj := $(if $(dir),$(SPLTREE)/$(dir)/,$(SPLTREE)/) |
3aa29de0b TPL : introduce t... |
45 |
endif |
c8f9c302c Extend build-syst... |
46 47 |
$(shell mkdir -p $(obj)) else |
f93286397 Add support for a... |
48 |
obj := |
c8f9c302c Extend build-syst... |
49 |
endif |
f93286397 Add support for a... |
50 51 |
src := endif |
592c5cabe Patch by Murray J... |
52 53 54 55 |
# clean the slate ... PLATFORM_RELFLAGS = PLATFORM_CPPFLAGS = PLATFORM_LDFLAGS = |
e22117437 Initial revision |
56 |
######################################################################### |
d984fed06 makefiles: fixes ... |
57 58 59 60 61 62 63 |
HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ $(HOSTCPPFLAGS) HOSTSTRIP = strip # # Mac OS X / Darwin's C preprocessor is Apple specific. It # generates numerous errors and warnings. We want to bypass it |
844f07d8a Coding Style (whi... |
64 |
# and use GNU C's cpp. To do this we pass the -traditional-cpp |
d984fed06 makefiles: fixes ... |
65 66 67 68 69 70 71 72 |
# option to the compiler. Note that the -traditional-cpp flag # DOES NOT have the same semantics as GNU C's flag, all it does # is invoke the GNU preprocessor in stock ANSI/ISO C fashion. # # Apple's linker is similar, thanks to the new 2 stage linking # multiple symbol definitions are treated as errors, hence the # -multiply_defined suppress option to turn off this error. # |
4cda43789 build system: tre... |
73 |
ifeq ($(HOSTOS),darwin) |
c7da8c19b config.mk: use di... |
74 75 76 |
# get major and minor product version (e.g. '10' and '6' for Snow Leopard) DARWIN_MAJOR_VERSION = $(shell sw_vers -productVersion | cut -f 1 -d '.') DARWIN_MINOR_VERSION = $(shell sw_vers -productVersion | cut -f 2 -d '.') |
f534c7cdc config.mk: avoid ... |
77 78 |
os_x_before = $(shell if [ $(DARWIN_MAJOR_VERSION) -le $(1) -a \ $(DARWIN_MINOR_VERSION) -le $(2) ] ; then echo "$(3)"; else echo "$(4)"; fi ;) |
c7da8c19b config.mk: use di... |
79 80 |
# Snow Leopards build environment has no longer restrictions as described above |
f534c7cdc config.mk: avoid ... |
81 82 83 |
HOSTCC = $(call os_x_before, 10, 5, "cc", "gcc") HOSTCFLAGS += $(call os_x_before, 10, 4, "-traditional-cpp") HOSTLDFLAGS += $(call os_x_before, 10, 5, "-multiply_defined suppress") |
e22117437 Initial revision |
84 85 86 |
else HOSTCC = gcc endif |
d984fed06 makefiles: fixes ... |
87 88 89 90 91 92 93 94 95 96 97 |
ifeq ($(HOSTOS),cygwin) HOSTCFLAGS += -ansi endif # We build some files with extra pedantic flags to try to minimize things # that won't build on some weird host compiler -- though there are lots of # exceptions for files that aren't complaint. HOSTCFLAGS_NOPED = $(filter-out -pedantic,$(HOSTCFLAGS)) HOSTCFLAGS += -pedantic |
e22117437 Initial revision |
98 99 |
######################################################################### |
1820d4c73 Make sure only su... |
100 |
# |
19a695f84 tools, config.mk:... |
101 |
# Option checker, gcc version (courtesy linux kernel) to ensure |
1820d4c73 Make sure only su... |
102 103 |
# only supported compiler options are used # |
b6a467d73 config.mk: use me... |
104 |
CC_OPTIONS_CACHE_FILE := $(OBJTREE)/include/generated/cc_options.mk |
6f4acc179 config.mk: Make c... |
105 |
CC_TEST_OFILE := $(OBJTREE)/include/generated/cc_test_file.o |
b6a467d73 config.mk: use me... |
106 107 |
-include $(CC_OPTIONS_CACHE_FILE) |
6f4acc179 config.mk: Make c... |
108 109 |
cc-option-sys = $(shell mkdir -p $(dir $(CC_TEST_OFILE)); \ if $(CC) $(CFLAGS) $(1) -S -xc /dev/null -o $(CC_TEST_OFILE) \ |
b6a467d73 config.mk: use me... |
110 111 112 113 114 115 116 117 118 119 |
> /dev/null 2>&1; then \ echo 'CC_OPTIONS += $(strip $1)' >> $(CC_OPTIONS_CACHE_FILE); \ echo "$(1)"; fi) ifeq ($(CONFIG_CC_OPT_CACHE_DISABLE),y) cc-option = $(strip $(if $(call cc-option-sys,$1),$1,$2)) else cc-option = $(strip $(if $(findstring $1,$(CC_OPTIONS)),$1,\ $(if $(call cc-option-sys,$1),$1,$2))) endif |
e22117437 Initial revision |
120 |
|
19a695f84 tools, config.mk:... |
121 122 123 |
# cc-version # Usage gcc-ver := $(call cc-version) cc-version = $(shell $(SHELL) $(SRCTREE)/tools/gcc-version.sh $(CC)) |
2051ff345 tools, config.mk:... |
124 |
binutils-version = $(shell $(SHELL) $(SRCTREE)/tools/binutils-version.sh $(AS)) |
501ebdf28 Validate dtc is n... |
125 |
dtc-version = $(shell $(SHELL) $(SRCTREE)/tools/dtc-version.sh $(DTC)) |
19a695f84 tools, config.mk:... |
126 |
|
e22117437 Initial revision |
127 128 129 130 |
# # Include the make variables (CC, etc...) # AS = $(CROSS_COMPILE)as |
7cb714a57 config: Always us... |
131 132 133 134 |
# Always use GNU ld LD = $(shell if $(CROSS_COMPILE)ld.bfd -v > /dev/null 2>&1; \ then echo "$(CROSS_COMPILE)ld.bfd"; else echo "$(CROSS_COMPILE)ld"; fi;) |
e22117437 Initial revision |
135 136 137 138 |
CC = $(CROSS_COMPILE)gcc CPP = $(CC) -E AR = $(CROSS_COMPILE)ar NM = $(CROSS_COMPILE)nm |
94a91e248 generate u-boot.l... |
139 |
LDR = $(CROSS_COMPILE)ldr |
e22117437 Initial revision |
140 141 142 143 |
STRIP = $(CROSS_COMPILE)strip OBJCOPY = $(CROSS_COMPILE)objcopy OBJDUMP = $(CROSS_COMPILE)objdump RANLIB = $(CROSS_COMPILE)RANLIB |
bbb0b128c fdt: Add support ... |
144 |
DTC = dtc |
4ab64933e add check infrast... |
145 |
CHECK = sparse |
e22117437 Initial revision |
146 |
|
c4e5f52a5 config.mk: use co... |
147 148 149 |
######################################################################### # Load generated board configuration |
3aa29de0b TPL : introduce t... |
150 151 152 153 |
ifeq ($(CONFIG_TPL_BUILD),y) # Include TPL autoconf sinclude $(OBJTREE)/include/tpl-autoconf.mk else |
39bc12ddc SPL: Makefile: Bu... |
154 155 156 157 158 |
ifeq ($(CONFIG_SPL_BUILD),y) # Include SPL autoconf sinclude $(OBJTREE)/include/spl-autoconf.mk else # Include normal autoconf |
c4e5f52a5 config.mk: use co... |
159 |
sinclude $(OBJTREE)/include/autoconf.mk |
39bc12ddc SPL: Makefile: Bu... |
160 |
endif |
3aa29de0b TPL : introduce t... |
161 |
endif |
5e987ddf8 Top config.mk: ad... |
162 |
sinclude $(OBJTREE)/include/config.mk |
c4e5f52a5 config.mk: use co... |
163 |
|
03b7004dd Create CPUDIR var... |
164 165 |
# Some architecture config.mk files need to know what CPUDIR is set to, # so calculate CPUDIR before including ARCH/SOC/CPU config.mk files. |
8d1f26820 ppc: Move cpu/$CP... |
166 167 168 169 170 171 |
# Check if arch/$ARCH/cpu/$CPU exists, otherwise assume arch/$ARCH/cpu contains # CPU-specific code. CPUDIR=arch/$(ARCH)/cpu/$(CPU) ifneq ($(SRCTREE)/$(CPUDIR),$(wildcard $(SRCTREE)/$(CPUDIR))) CPUDIR=arch/$(ARCH)/cpu endif |
03b7004dd Create CPUDIR var... |
172 |
|
ea0364f1b Move lib_$ARCH di... |
173 |
sinclude $(TOPDIR)/arch/$(ARCH)/config.mk # include architecture dependend rules |
03b7004dd Create CPUDIR var... |
174 |
sinclude $(TOPDIR)/$(CPUDIR)/config.mk # include CPU specific rules |
c4e5f52a5 config.mk: use co... |
175 |
ifdef SOC |
03b7004dd Create CPUDIR var... |
176 |
sinclude $(TOPDIR)/$(CPUDIR)/$(SOC)/config.mk # include SoC specific rules |
c4e5f52a5 config.mk: use co... |
177 178 179 180 181 182 183 184 185 186 187 |
endif ifdef VENDOR BOARDDIR = $(VENDOR)/$(BOARD) else BOARDDIR = $(BOARD) endif ifdef BOARD sinclude $(TOPDIR)/board/$(BOARDDIR)/config.mk # include board specific rules endif ######################################################################### |
5968adc41 build: force migr... |
188 189 190 |
# We don't actually use $(ARFLAGS) anywhere anymore, so catch people # who are porting old code to latest mainline but not updating $(AR). ARFLAGS = $(error update your Makefile to use cmd_link_o_target and not AR) |
e22117437 Initial revision |
191 |
RELFLAGS= $(PLATFORM_RELFLAGS) |
9acb626fc Add MCF5282 suppo... |
192 |
DBGFLAGS= -g # -DDEBUG |
e22117437 Initial revision |
193 |
OPTFLAGS= -Os #-fomit-frame-pointer |
83b7e2a7f Handle most LDSCR... |
194 |
|
6dd652fa4 Patches by Murray... |
195 |
OBJCFLAGS += --gap-fill=0xff |
e22117437 Initial revision |
196 |
|
b783edaee * Header file cle... |
197 |
gccincdir := $(shell $(CC) -print-file-name=include) |
e22117437 Initial revision |
198 |
CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS) \ |
c1f5805a9 serial: Compile d... |
199 |
-D__KERNEL__ |
c8f9c302c Extend build-syst... |
200 201 202 203 204 205 |
# Enable garbage collection of un-used sections for SPL ifeq ($(CONFIG_SPL_BUILD),y) CPPFLAGS += -ffunction-sections -fdata-sections LDFLAGS_FINAL += --gc-sections endif |
29ce737d6 mkimage: Build si... |
206 |
# TODO(sjg@chromium.org): Is this correct on Mac OS? |
bce883707 ARM: mxs: tools: ... |
207 208 209 210 211 212 213 214 |
# MXSImage needs LibSSL ifneq ($(CONFIG_MX23)$(CONFIG_MX28),) HOSTLIBS += -lssl -lcrypto # Add CONFIG_MXS into host CFLAGS, so we can check whether or not register # the mxsimage support within tools/mxsimage.c . HOSTCFLAGS += -DCONFIG_MXS endif |
29ce737d6 mkimage: Build si... |
215 216 |
ifdef CONFIG_FIT_SIGNATURE HOSTLIBS += -lssl -lcrypto |
971c450a4 mkimage: Use boar... |
217 218 219 220 |
# This affects include/image.h, but including the board config file # is tricky, so manually define this options here. HOSTCFLAGS += -DCONFIG_FIT_SIGNATURE |
29ce737d6 mkimage: Build si... |
221 |
endif |
14d0a02a1 Rename TEXT_BASE ... |
222 223 |
ifneq ($(CONFIG_SYS_TEXT_BASE),) CPPFLAGS += -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) |
161b2af4d Only use TEXT_BAS... |
224 |
endif |
f93286397 Add support for a... |
225 |
|
c8f9c302c Extend build-syst... |
226 227 |
ifeq ($(CONFIG_SPL_BUILD),y) CPPFLAGS += -DCONFIG_SPL_BUILD |
3aa29de0b TPL : introduce t... |
228 229 230 |
ifeq ($(CONFIG_TPL_BUILD),y) CPPFLAGS += -DCONFIG_TPL_BUILD endif |
c8f9c302c Extend build-syst... |
231 |
endif |
5c1a7ea6a __HAVE_ARCH_GENER... |
232 233 234 |
# Does this architecture support generic board init? ifeq ($(__HAVE_ARCH_GENERIC_BOARD),) ifneq ($(CONFIG_SYS_GENERIC_BOARD),) |
fada9e204 Trigger generic b... |
235 236 |
CHECK_GENERIC_BOARD = $(error Your architecture does not support generic board. \ Please undefined CONFIG_SYS_GENERIC_BOARD in your board config file) |
5c1a7ea6a __HAVE_ARCH_GENER... |
237 238 |
endif endif |
f93286397 Add support for a... |
239 240 241 242 243 |
ifneq ($(OBJTREE),$(SRCTREE)) CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include endif CPPFLAGS += -I$(TOPDIR)/include |
53677ef18 Big white-space c... |
244 |
CPPFLAGS += -fno-builtin -ffreestanding -nostdinc \ |
f93286397 Add support for a... |
245 |
-isystem $(gccincdir) -pipe $(PLATFORM_CPPFLAGS) |
e22117437 Initial revision |
246 |
|
e22117437 Initial revision |
247 |
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes |
d642c467a build: Pull -DBUI... |
248 249 250 |
ifdef BUILD_TAG CFLAGS += -DBUILD_TAG='"$(BUILD_TAG)"' |
e22117437 Initial revision |
251 |
endif |
cca4e4aec Reduce build times |
252 253 |
CFLAGS_SSP := $(call cc-option,-fno-stack-protector) CFLAGS += $(CFLAGS_SSP) |
6262e4e74 disable security ... |
254 255 |
# Some toolchains enable security related warning flags by default, # but they don't make much sense in the u-boot world, so disable them. |
cca4e4aec Reduce build times |
256 257 258 |
CFLAGS_WARN := $(call cc-option,-Wno-format-nonliteral) \ $(call cc-option,-Wno-format-security) CFLAGS += $(CFLAGS_WARN) |
28eab0d77 Conditionally add... |
259 |
|
4a30f1e87 config.mk: Check ... |
260 261 262 |
# Report stack usage if supported CFLAGS_STACK := $(call cc-option,-fstack-usage) CFLAGS += $(CFLAGS_STACK) |
5c2aeac5a Support tracing i... |
263 264 265 266 267 268 269 270 271 |
BCURDIR = $(subst $(SRCTREE)/,,$(CURDIR:$(obj)%=%)) ifeq ($(findstring examples/,$(BCURDIR)),) ifeq ($(CONFIG_SPL_BUILD),) ifdef FTRACE CFLAGS += -finstrument-functions -DFTRACE endif endif endif |
e11887a77 Don't pass any de... |
272 273 274 |
# $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g<format> # option to the assembler. AFLAGS_DEBUG := |
b62fa913d Fix gcc 3.4.x AFL... |
275 |
|
483a0cf80 Fixes for gcc 3.4... |
276 277 278 279 280 |
# turn jbsr into jsr for m68k ifeq ($(ARCH),m68k) ifeq ($(findstring 3.4,$(shell $(CC) --version)),3.4) AFLAGS_DEBUG := -Wa,-gstabs,-S endif |
483a0cf80 Fixes for gcc 3.4... |
281 |
endif |
b62fa913d Fix gcc 3.4.x AFL... |
282 |
|
e22117437 Initial revision |
283 |
AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS) |
8aba9dcee Divides variable ... |
284 |
LDFLAGS += $(PLATFORM_LDFLAGS) |
6dc1eceb9 Introduce a new l... |
285 |
LDFLAGS_FINAL += -Bstatic |
8aba9dcee Divides variable ... |
286 |
|
6dc1eceb9 Introduce a new l... |
287 |
LDFLAGS_u-boot += -T $(obj)u-boot.lds $(LDFLAGS_FINAL) |
14d0a02a1 Rename TEXT_BASE ... |
288 |
ifneq ($(CONFIG_SYS_TEXT_BASE),) |
8aba9dcee Divides variable ... |
289 |
LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE) |
161b2af4d Only use TEXT_BAS... |
290 |
endif |
e22117437 Initial revision |
291 |
|
3aa29de0b TPL : introduce t... |
292 |
LDFLAGS_$(SPL_BIN) += -T $(obj)u-boot-spl.lds $(LDFLAGS_FINAL) |
c8f9c302c Extend build-syst... |
293 |
ifneq ($(CONFIG_SPL_TEXT_BASE),) |
3aa29de0b TPL : introduce t... |
294 |
LDFLAGS_$(SPL_BIN) += -Ttext $(CONFIG_SPL_TEXT_BASE) |
c8f9c302c Extend build-syst... |
295 |
endif |
4ab64933e add check infrast... |
296 297 |
# Linus' kernel sanity checking tool CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ |
93e145964 Coding Style clea... |
298 |
-Wbitwise -Wno-return-void -D__CHECK_ENDIAN__ $(CF) |
4ab64933e add check infrast... |
299 |
|
e22117437 Initial revision |
300 301 302 303 304 305 306 307 308 |
# Location of a usable BFD library, where we define "usable" as # "built for ${HOST}, supports ${TARGET}". Sensible values are # - When cross-compiling: the root of the cross-environment # - Linux/ppc (native): /usr # - NetBSD/ppc (native): you lose ... (must extract these from the # binutils build directory, plus the native and U-Boot include # files don't like each other) # # So far, this is used only by tools/gdb/Makefile. |
4cda43789 build system: tre... |
309 |
ifeq ($(HOSTOS),darwin) |
e22117437 Initial revision |
310 311 |
BFD_ROOT_DIR = /usr/local/tools else |
ea909b760 * Added support f... |
312 313 314 315 |
ifeq ($(HOSTARCH),$(ARCH)) # native BFD_ROOT_DIR = /usr else |
e22117437 Initial revision |
316 317 |
#BFD_ROOT_DIR = /LinuxPPC/CDK # Linux/i386 #BFD_ROOT_DIR = /usr/pkg/cross # NetBSD/i386 |
e22117437 Initial revision |
318 319 |
BFD_ROOT_DIR = /opt/powerpc endif |
ea909b760 * Added support f... |
320 |
endif |
e22117437 Initial revision |
321 322 |
######################################################################### |
d984fed06 makefiles: fixes ... |
323 |
export HOSTCC HOSTCFLAGS HOSTLDFLAGS PEDCFLAGS HOSTSTRIP CROSS_COMPILE \ |
434c51a5e Remove unneeded C... |
324 |
AS LD CC CPP AR NM STRIP OBJCOPY OBJDUMP MAKE |
14d0a02a1 Rename TEXT_BASE ... |
325 |
export CONFIG_SYS_TEXT_BASE PLATFORM_CPPFLAGS PLATFORM_RELFLAGS CPPFLAGS CFLAGS AFLAGS |
e22117437 Initial revision |
326 327 |
######################################################################### |
5ec5529b8 allow boards to c... |
328 |
# Allow boards to use custom optimize flags on a per dir/file basis |
326a69452 config.mk: unify ... |
329 330 |
ALL_AFLAGS = $(AFLAGS) $(AFLAGS_$(BCURDIR)/$(@F)) $(AFLAGS_$(BCURDIR)) ALL_CFLAGS = $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) |
475088430 Adjust dependency... |
331 332 333 334 335 336 337 |
EXTRA_CPPFLAGS = $(CPPFLAGS_$(BCURDIR)/$(@F)) $(CPPFLAGS_$(BCURDIR)) ALL_CFLAGS += $(EXTRA_CPPFLAGS) # The _DEP version uses the $< file target (for dependency generation) # See rules.mk EXTRA_CPPFLAGS_DEP = $(CPPFLAGS_$(BCURDIR)/$(addsuffix .o,$(basename $<))) \ $(CPPFLAGS_$(BCURDIR)) |
f93286397 Add support for a... |
338 |
$(obj)%.s: %.S |
326a69452 config.mk: unify ... |
339 |
$(CPP) $(ALL_AFLAGS) -o $@ $< |
f93286397 Add support for a... |
340 |
$(obj)%.o: %.S |
326a69452 config.mk: unify ... |
341 |
$(CC) $(ALL_AFLAGS) -o $@ $< -c |
f93286397 Add support for a... |
342 |
$(obj)%.o: %.c |
4ab64933e add check infrast... |
343 344 345 |
ifneq ($(CHECKSRC),0) $(CHECK) $(CHECKFLAGS) $(ALL_CFLAGS) $< endif |
326a69452 config.mk: unify ... |
346 |
$(CC) $(ALL_CFLAGS) -o $@ $< -c |
31f30c9eb add %.c->%.i and ... |
347 |
$(obj)%.i: %.c |
326a69452 config.mk: unify ... |
348 |
$(CPP) $(ALL_CFLAGS) -o $@ $< -c |
31f30c9eb add %.c->%.i and ... |
349 |
$(obj)%.s: %.c |
326a69452 config.mk: unify ... |
350 |
$(CC) $(ALL_CFLAGS) -o $@ $< -c -S |
f93286397 Add support for a... |
351 |
|
e22117437 Initial revision |
352 |
######################################################################### |
6d8962e81 Switch from archi... |
353 354 355 |
# If the list of objects to link is empty, just create an empty built-in.o cmd_link_o_target = $(if $(strip $1),\ |
8aba9dcee Divides variable ... |
356 |
$(LD) $(LDFLAGS) -r -o $@ $1,\ |
844f07d8a Coding Style (whi... |
357 |
rm -f $@; $(AR) rcs $@ ) |
6d8962e81 Switch from archi... |
358 359 |
######################################################################### |