X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Frules.mk;h=5779b3db8e11b5e3b37d74fd4dd6529d5def63a5;hb=ce7b4832233f024983d7915f9c21cdd9b9fb4785;hp=d4b67786d0a30e600710402fed3cb5f6f43cb2cc;hpb=10a01542f62120b5117cc9638c78380edc771690;p=tpg%2Facess2.git diff --git a/Usermode/Applications/rules.mk b/Usermode/Applications/rules.mk index d4b67786..5779b3db 100644 --- a/Usermode/Applications/rules.mk +++ b/Usermode/Applications/rules.mk @@ -2,12 +2,13 @@ include $(BASE)header.mk # Rules ASFLAGS-$(DIR) := -felf -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 -fno-stack-protector -O3 LDFLAGS-$(DIR) := -T $(OUTPUTDIR)Libs/acess.ld -rpath-link $(OUTPUTDIR)Libs -L $(OUTPUTDIR)Libs -I /Acess/Libs/ld-acess.so -lld-acess -lc $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crtend.o SUB_DIRS = $(wildcard $(DIR)*/rules.mk) -EXTRA_DEP-$(DIR) += $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crt0.o $(OUTPUTDIR)Libs/crtend.o +EXTRA_DEP-$(DIR) += $(OUTPUTDIR)Libs/acess.ld $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crt0.o $(OUTPUTDIR)Libs/crtend.o .PHONY: all-$(DIR) clean-$(DIR) all-$(DIR): $(addprefix all-,$(dir $(SUB_DIRS)))