X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Modules%2FMakefile.tpl;h=4341bdaed4cbdbcdc0ec1d238b5136e64e28718a;hb=bd8dc898108f10c0498f4dc5d0164a50b5ff2e5c;hp=ae6d57484dc502068509005a0aacb99d7eae2164;hpb=6ea2f6040da80c963882f6ccfe4bf21ff048eaff;p=tpg%2Facess2.git diff --git a/Modules/Makefile.tpl b/Modules/Makefile.tpl index ae6d5748..4341bdae 100644 --- a/Modules/Makefile.tpl +++ b/Modules/Makefile.tpl @@ -5,16 +5,21 @@ _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) CPPFLAGS = -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include -DARCH=$(ARCH) $(_CPPFLAGS) -CFLAGS = -Wall -Werror -fno-stack-protector $(CPPFLAGS) +CFLAGS = -Wall -Werror -fno-stack-protector $(CPPFLAGS) -O3 OBJ := $(addsuffix .$(ARCH),$(OBJ)) -BIN = ../$(NAME).kmd.$(ARCH) +ifeq ($(CATEGORY),) + BIN := ../$(CATEGORY)_$(NAME).kmd.$(ARCH) +else + BIN := ../$(NAME).kmd.$(ARCH) +endif KOBJ = ../$(NAME).xo.$(ARCH) DEPFILES = $(filter %.o.$(ARCH),$(OBJ))