af5a99e05f24581a60d07f831f684631013cbf84
[tpg/acess2.git] / Usermode / Applications / rules.mk
1 include $(BASE)header.mk
2
3 # Rules
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
8
9 SUB_DIRS = $(wildcard $(DIR)*/rules.mk)
10
11 .PHONY: all-$(DIR) clean-$(DIR)
12 all-$(DIR): $(addprefix all-,$(dir $(SUB_DIRS)))
13 clean-$(DIR): $(addprefix clean-,$(dir $(SUB_DIRS)))
14
15 include $(SUB_DIRS)
16
17 include $(BASE)footer.mk
18

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