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

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