Changeset 30e9f42 in mainline for kernel/Makefile
- Timestamp:
- 2018-04-15T21:39:04Z (7 years ago)
- Children:
- d9fdd5a
- Parents:
- 902dd4b
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-15 21:38:52)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-15 21:39:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r902dd4b r30e9f42 48 48 # 49 49 50 A GDEPEND = Makefile.ag.depend50 AUTOCHECK = $(realpath $(ROOT_PATH)/tools/autocheck.awk) 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 … … 346 346 endif 347 347 348 ARCH_SOURCES += $(ARCH_AUTOCHECK_HEADERS:%.h=%.check.c) 349 GENARCH_SOURCES += $(GENARCH_AUTOCHECK_HEADERS:%.h=%.check.c) 350 348 351 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) 349 352 ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) … … 354 357 GENARCH_DEPENDS := $(addsuffix .d,$(basename $(GENARCH_SOURCES))) 355 358 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 AUTOGENS_AG := $(ARCH_AUTOGENS_AG) $(GENARCH_AUTOGENS_AG)366 367 359 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS)) 368 360 LD_CFLAGS := $(addprefix -Xlinker ,$(LFLAGS)) … … 399 391 endif 400 392 401 $(LINK): $(LINK).in | depend393 $(LINK): $(LINK).in 402 394 $(CC) $(DEFS) $(CFLAGS) -D__ASSEMBLER__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@ 403 395 404 %.h: %.ag 405 $(AUTOGEN) probe $< >$<.probe.c 406 $(CC_AUTOGEN) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c 407 $(AUTOGEN) generate $< <$<.probe.s >$@ 408 409 %.o: %.S | depend 396 %.check.c: %.h $(AUTOCHECK) 397 cd $(<D) && $(AUTOCHECK) $(<F) > $(@F) 398 399 %.o: %.S 410 400 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) 411 401 412 %.o: %.s | depend402 %.o: %.s 413 403 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) 414 404 415 %.o: %.c | depend405 %.o: %.c 416 406 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) $(if $(findstring $<,$(INSTRUMENTED_SOURCES)),$(INSTRUMENTATION)) 417 407 … … 440 430 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP) 441 431 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 442 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 done453 454 depend: $(AUTOGENS_H)455 456 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)
Note:
See TracChangeset
for help on using the changeset viewer.