Changeset 0aa06cbe in mainline for kernel/Makefile
- Timestamp:
- 2018-03-06T20:48:12Z (7 years ago)
- Parents:
- fd57cf17 (diff), 0c793e2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-06 20:48:12)
- git-committer:
- GitHub <noreply@…> (2018-03-06 20:48:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
rfd57cf17 r0aa06cbe 48 48 # 49 49 50 A GDEPEND = Makefile.ag.depend50 AUTOGEN = $(ROOT_PATH)/tools/autogen2.sh 51 51 RAW = kernel.raw 52 52 BIN = kernel.bin … … 73 73 74 74 .PHONY: all clean autogen_clean depend 75 .DELETE_ON_ERROR: 75 76 76 77 all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(BIN) $(DISASM) … … 132 133 -include arch/$(KARCH)/Makefile.inc 133 134 -include genarch/Makefile.inc 134 -include $(AGDEPEND)135 135 136 136 ## The at-sign … … 354 354 GENARCH_DEPENDS := $(addsuffix .d,$(basename $(GENARCH_SOURCES))) 355 355 356 GENARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(GENARCH_AUTOGENS_AG)))357 GENARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(GENARCH_AUTOGENS_AG)))358 GENARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(GENARCH_AUTOGENS_AG)))359 360 ARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(ARCH_AUTOGENS_AG)))361 ARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(ARCH_AUTOGENS_AG)))362 ARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(ARCH_AUTOGENS_AG)))363 364 AUTOGENS_H := $(ARCH_AUTOGENS_H) $(GENARCH_AUTOGENS_H)365 356 AUTOGENS_AG := $(ARCH_AUTOGENS_AG) $(GENARCH_AUTOGENS_AG) 357 AUTOGEN_DEPENDS := $(addsuffix .d,$(AUTOGENS_AG)) 366 358 367 359 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS)) … … 371 363 -include $(ARCH_DEPENDS) 372 364 -include $(GENARCH_DEPENDS) 365 -include $(AUTOGEN_DEPENDS) 373 366 374 367 ifeq ($(COMPILER),clang) … … 402 395 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@ 403 396 404 %.h: %.ag 405 $(AUTOGEN) probe $< >$<.probe.c 406 $(CC_AUTOGEN) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c 407 $(AUTOGEN) generate $< <$<.probe.s >$@ 397 %.ag.h %.ag.s %.ag.c %.ag.d: %.h 398 CC="$(CC)" CFLAGS="-DKERNEL $(CFLAGS)" $(AUTOGEN) $< $@ 408 399 409 400 %.o: %.S | depend … … 441 432 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 442 433 443 $(AUTOGENS_H): $(AGDEPEND) 444 445 $(AGDEPEND): $(AUTOGENS_AG) 446 echo "# DO NOT EDIT" >$@ 447 for g in $^; do \ 448 h=`dirname $$g`/`basename $$g .ag`.h; \ 449 for l in `$(AUTOGEN) depend $$g`; do \ 450 echo "$$h: $$l" >>$@; \ 451 done \ 452 done 453 454 depend: $(AUTOGENS_H) 434 depend: $(AUTOGENS_AG) 455 435 456 436 autogen_clean: 457 -rm $(ARCH_AUTOGENS_H) $(ARCH_AUTOGENS_PROBE_C) $(ARCH_AUTOGENS_PROBE_S) 458 -rm $(GENARCH_AUTOGENS_H) $(GENARCH_AUTOGENS_PROBE_C) $(GENARCH_AUTOGENS_PROBE_S) 459 -rm $(AGDEPEND) 437 -rm $(AUTOGENS_AG) $(AUTOGEN_DEPENDS) $(AUTOGENS_AG)
Note:
See TracChangeset
for help on using the changeset viewer.