X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FMakefile.tpl;h=de3b36ab59577ddc6ed6ce0c5cac1e5879eab74e;hb=717454930aa0e255517c68c837927deac49bd78e;hp=750f2dc26e5e18eddcbf491abe54035dfd64b4a8;hpb=18a6f0a17a50c25007a8f9b910af02bdf6fbcb78;p=tpg%2Facess2.git diff --git a/Modules/Makefile.tpl b/Modules/Makefile.tpl index 750f2dc2..de3b36ab 100644 --- a/Modules/Makefile.tpl +++ b/Modules/Makefile.tpl @@ -4,12 +4,7 @@ _CPPFLAGS := $(CPPFLAGS) -CFGFILES := -CFGFILES += $(shell test -f ../../../Makefile.cfg && echo ../../../Makefile.cfg) -CFGFILES += $(shell test -f ../../Makefile.cfg && echo ../../Makefile.cfg) -CFGFILES += $(shell test -f ../Makefile.cfg && echo ../Makefile.cfg) -CFGFILES += $(shell test -f Makefile.cfg && echo Makefile.cfg) --include $(CFGFILES) +-include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg CPPFLAGS := -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include -DARCH=$(ARCH) $(_CPPFLAGS) CFLAGS := -Wall -Werror -fno-stack-protector -g -O3 -fno-builtin @@ -46,7 +41,8 @@ clean: install: $(BIN) ifneq ($(BUILDTYPE),static) - $(xCP) $(BIN) $(DISTROOT)/Modules/$(NAME).kmd.$(ARCH) + @$(xMKDIR) $(DISTROOT)/Modules/$(ARCH); true + $(xCP) $(BIN) $(DISTROOT)/Modules/$(ARCH)/$(NAME).kmd else endif @@ -62,7 +58,7 @@ $(BIN): %.xo.$(ARCH): $(OBJ) @$(LD) -r -o $@ $(OBJ) endif -%.o.$(_SUFFIX): %.c Makefile ../Makefile.tpl $(CFGFILES) +%.o.$(_SUFFIX): %.c Makefile $(CFGFILES) @echo --- $(CC) -o $@ @$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< @$(CC) -M $(CPPFLAGS) -MT $@ -o $*.d.$(ARCH) $<