X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FMakefile.tpl;h=9a1b6e82ec7987b5f927a772ba371555fb181f62;hb=049de1f2533477716a12a708c097b199eaa8fb6c;hp=964f5cecf717e45642b869163b6d0671a158fc32;hpb=0dbc91f0676576b954aa95dafdb434ce19bc805c;p=tpg%2Facess2.git diff --git a/Modules/Makefile.tpl b/Modules/Makefile.tpl index 964f5cec..9a1b6e82 100644 --- a/Modules/Makefile.tpl +++ b/Modules/Makefile.tpl @@ -12,10 +12,14 @@ 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) +ifneq ($(CATEGORY),) + BIN := ../$(CATEGORY)_$(NAME).kmd.$(ARCH) +else + BIN := ../$(NAME).kmd.$(ARCH) +endif KOBJ = ../$(NAME).xo.$(ARCH) DEPFILES = $(filter %.o.$(ARCH),$(OBJ))