1 include $(BASE)header.mk
4 ASFLAGS-$(DIR) := -felf -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
5 CPPFLAGS-$(DIR) := -ffreestanding -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
6 CPPFLAGS-$(DIR) += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/))
7 CFLAGS-$(DIR) := -g -Wall -fno-stack-protector -O3
8 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
10 SUB_DIRS = $(wildcard $(DIR)*/rules.mk)
11 EXTRA_DEP-$(DIR) += $(OUTPUTDIR)Libs/acess.ld $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crt0.o $(OUTPUTDIR)Libs/crtend.o
13 .PHONY: all-$(DIR) clean-$(DIR)
14 all-$(DIR): $(addprefix all-,$(dir $(SUB_DIRS)))
15 clean-$(DIR): $(addprefix clean-,$(dir $(SUB_DIRS)))
19 include $(BASE)footer.mk