Externals/common.mk - Fixed depenency issues
[tpg/acess2.git] / Usermode / Libraries / Makefile.cfg
index 8c75e8b..330f55b 100644 (file)
@@ -1,7 +1,8 @@
 # Acess 2 Libraries
 # General Makefile
 
--include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg
+_libsdir := $(dir $(lastword $(MAKEFILE_LIST)))
+-include $(_libsdir)../Makefile.cfg
 
 MAKEDEP  = $(CC) -M
 
@@ -19,9 +20,8 @@ CPPFLAGS := -ffreestanding
 CFLAGS   := -fno-stack-protector -fPIC
 LDFLAGS  := -I/Acess/Libs/ld-acess.so -lld-acess `$(CC) -print-libgcc-file-name`
 endif
-CPPFLAGS += -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
-CPPFLAGS += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/))
-CFLAGS += -Wall -g -std=gnu99
 LDFLAGS += -g -nostdlib -shared -eSoMain -x --no-undefined -L$(OUTPUTDIR)Libs/
 
+-include $(_libsdir)../common_settings.mk
+
 # vim: ft=make

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