InitRD - Libc++, libm, bochs, dbserver
[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) := -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
9
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
12
13 .PHONY: all-$(DIR) clean-$(DIR)
14 all-$(DIR): $(addprefix all-,$(dir $(SUB_DIRS)))
15 clean-$(DIR): $(addprefix clean-,$(dir $(SUB_DIRS)))
16
17 include $(SUB_DIRS)
18
19 include $(BASE)footer.mk
20

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