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