Changeset b8fac76 in mainline
- Timestamp:
- 2014-08-27T23:05:51Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d427a3
- Parents:
- 57292d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r57292d3 rb8fac76 66 66 SIZEOK_MAP = generic/src/debug/sizeok_map.o 67 67 68 .PHONY: all clean 68 .PHONY: all clean autogen_clean 69 69 70 70 all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(BIN) $(DISASM) 71 71 -[ -f $(DEPEND) ] && cp -a $(DEPEND) $(DEPEND_PREV) 72 72 73 clean: 73 clean: autogen_clean 74 74 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* arch/*/_link.ld arch/*/include/arch/common.h 75 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\}\;75 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm '{}' \; 76 76 77 77 ## Common compiler flags … … 367 367 GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) 368 368 369 ARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(ARCH_AUTOGENS_AG))) 370 ARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(ARCH_AUTOGENS_AG))) 371 ARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(ARCH_AUTOGENS_AG))) 372 369 373 LFLAGS_LTO := $(addprefix -Xlinker ,$(LFLAGS)) 370 374 … … 397 401 $(LINK): $(LINK).in $(DEPEND) 398 402 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@ 403 404 %.h: %.ag 405 $(AUTOGEN) probe $< >$<.probe.c 406 $(GCC) $(DEFS) $(GCC_CFLAGS) -S -o $<.probe.s $<.probe.c 407 $(AUTOGEN) generate $< <$<.probe.s >$@ 399 408 400 409 %.o: %.S $(DEPEND) … … 441 450 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 442 451 443 $(DEPEND): $(COMMON_HEADER_ARCH) 452 $(DEPEND): $(COMMON_HEADER_ARCH) $(ARCH_AUTOGENS_H) 444 453 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null 445 454 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ … … 447 456 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 448 457 ln -sfn ../../../../$< $@ 458 459 autogen_clean: 460 -rm $(ARCH_AUTOGENS_H) $(ARCH_AUTOGENS_PROBE_C) $(ARCH_AUTOGENS_PROBE_S)
Note:
See TracChangeset
for help on using the changeset viewer.