X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Frules.mk;h=5bac18fe4d53aeb598d1b7248cc1d14cb9726bd7;hb=f8cde3fab5eb27ebacf9d76a7ac478a68a36a38b;hp=4786df9618f6ee0d31d061a5360de0c9b9ac1a77;hpb=10a01542f62120b5117cc9638c78380edc771690;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/rules.mk b/Usermode/Libraries/rules.mk index 4786df96..5bac18fe 100644 --- a/Usermode/Libraries/rules.mk +++ b/Usermode/Libraries/rules.mk @@ -4,7 +4,8 @@ include $(BASE)header.mk # Rules ASFLAGS-$(DIR) := -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1 -CPPFLAGS-$(DIR) := -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1 +CPPFLAGS-$(DIR) := -ffreestanding -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1 +CPPFLAGS-$(DIR) += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/)) CFLAGS-$(DIR) := -g -Wall -fPIC -fno-stack-protector -O3 LDFLAGS-$(DIR) := -g -nostdlib -shared -I/Acess/Libs/ld-acess.so -lld-acess -e SoMain -x -L$(OUTPUTDIR)Libs/ --no-undefined