X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FMakefile.tpl;h=b31943e6ee0039b5aa6d95ece773a0f0465d9475;hb=0162285103aa3ee5eecc3762105cc1145b7e81da;hp=b404046ac963c874b1465c98e5d8132570584a42;hpb=ff15cff41ef9b92b53d80083a020857944c3b82e;p=tpg%2Facess2.git diff --git a/Modules/Makefile.tpl b/Modules/Makefile.tpl index b404046a..b31943e6 100644 --- a/Modules/Makefile.tpl +++ b/Modules/Makefile.tpl @@ -6,7 +6,13 @@ _CPPFLAGS := $(CPPFLAGS) -include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg -CPPFLAGS := -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include -DARCH=$(ARCH) $(_CPPFLAGS) +LIBINCLUDES := $(addprefix -I$(ACESSDIR)/Modules/,$(DEPS)) +LIBINCLUDES := $(addsuffix /include,$(LIBINCLUDES)) + +CPPFLAGS := -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include +CPPFLAGS += -DARCH=$(ARCH) -DARCH_is_$(ARCH) -DARCHDIR_is_$(ARCHDIR) +CPPFLAGS += $(_CPPFLAGS) +CPPFLAGS += $(LIBINCLUDES) CFLAGS := -std=gnu99 -Wall -Werror -fno-stack-protector -g -O3 -fno-builtin ifneq ($(CATEGORY),)