Changes in kernel/Makefile [2889634:ae7bbfd0] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r2889634 rae7bbfd0  
    4848#
    4949
    50 AGDEPEND = Makefile.ag.depend
    5150DEPEND = Makefile.depend
    5251DEPEND_PREV = $(DEPEND).prev
     
    139138-include genarch/Makefile.inc
    140139-include $(DEPEND)
    141 -include $(AGDEPEND)
    142140
    143141## The at-sign
     
    379377GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES)))
    380378
    381 GENARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(GENARCH_AUTOGENS_AG)))
    382 GENARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(GENARCH_AUTOGENS_AG)))
    383 GENARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(GENARCH_AUTOGENS_AG)))
    384 
    385379ARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(ARCH_AUTOGENS_AG)))
    386380ARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(ARCH_AUTOGENS_AG)))
    387381ARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(ARCH_AUTOGENS_AG)))
    388 
    389 AUTOGENS_H := $(ARCH_AUTOGENS_H) $(GENARCH_AUTOGENS_H)
    390 AUTOGENS_AG := $(ARCH_AUTOGENS_AG) $(GENARCH_AUTOGENS_AG)
    391382
    392383LFLAGS_LTO := $(addprefix -Xlinker ,$(LFLAGS))
     
    469460        $(GENMAP) $(MAP_PREV) $(DUMP) $@
    470461
    471 $(AUTOGENS_H): $(AGDEPEND)
    472 
    473 $(AGDEPEND): $(AUTOGENS_AG)
    474         echo "# DO NOT EDIT" >$@
    475         for g in $^; do \
    476                 h=`dirname $$g`/`basename $$g .ag`.h; \
    477                 for l in `$(AUTOGEN) depend $$g`; do \
    478                         echo "$$h: $$l" >>$@; \
    479                 done \
    480         done
    481 
    482 $(DEPEND): $(COMMON_HEADER_ARCH) $(AUTOGENS_H)
     462$(DEPEND): $(COMMON_HEADER_ARCH) $(ARCH_AUTOGENS_H)
    483463        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null
    484464        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
     
    489469autogen_clean:
    490470        -rm $(ARCH_AUTOGENS_H) $(ARCH_AUTOGENS_PROBE_C) $(ARCH_AUTOGENS_PROBE_S)
    491         -rm $(GENARCH_AUTOGENS_H) $(GENARCH_AUTOGENS_PROBE_C) $(GENARCH_AUTOGENS_PROBE_S)
    492         -rm $(AGDEPEND)
Note: See TracChangeset for help on using the changeset viewer.