Fixing new build system
[tpg/acess2.git] / Usermode / Libraries / rules.mk
1 # Library - Common Rules
2
3 include $(BASE)header.mk
4
5 # Rules
6 ASFLAGS-$(DIR)  := -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
7 CPPFLAGS-$(DIR) := -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
8 CFLAGS-$(DIR)   := -g -Wall -fPIC -fno-stack-protector -O3
9 LDFLAGS-$(DIR)  := -g -nostdlib -shared -I/Acess/Libs/ld-acess.so -lld-acess -e SoMain -x -L$(OUTPUTDIR)Libs/ --no-undefined
10
11 SUB_DIRS = $(wildcard $(DIR)*/rules.mk)
12
13 .PHONY: all-$(DIR) clean-$(DIR)
14 all-$(DIR): open-$(DIR) $(addprefix all-,$(dir $(SUB_DIRS))) close-$(DIR) 
15 clean-$(DIR): $(addprefix clean-,$(dir $(SUB_DIRS)))
16
17 include $(SUB_DIRS)
18
19 include $(BASE)footer.mk

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