Improving the debug capabilities of the heap code, changed VFS to use const char...
[tpg/acess2.git] / Modules / Makefile.tpl
index 6fce415..2fabb12 100644 (file)
@@ -12,7 +12,7 @@ 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) -O3 -fno-builtin
+CFLAGS = -Wall -Werror -fno-stack-protector $(CPPFLAGS) -O3 -fno-builtin
 
 ifneq ($(CATEGORY),)
        FULLNAME := $(CATEGORY)_$(NAME)
@@ -20,6 +20,8 @@ else
        FULLNAME := $(NAME)
 endif
 
+CPPFLAGS += -D_MODULE_NAME_=\"$(FULLNAME)\"
+
 ifneq ($(BUILDTYPE),static)
        _SUFFIX := dyn_$(ARCH)
        BIN := ../$(FULLNAME).kmd.$(ARCH)

UCC git Repository :: git.ucc.asn.au