Usermode/libc - Fix time conversion code
[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) := -ffreestanding -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
8 CPPFLAGS-$(DIR) += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/))
9 CFLAGS-$(DIR)   := -g -Wall -fPIC -fno-stack-protector -O3
10 LDFLAGS-$(DIR)  := -g -nostdlib -shared -I/Acess/Libs/ld-acess.so -lld-acess -e SoMain -x -L$(OUTPUTDIR)Libs/ --no-undefined
11
12 SUB_DIRS = $(wildcard $(DIR)*/rules.mk)
13
14 .PHONY: all-$(DIR) clean-$(DIR)
15 all-$(DIR): open-$(DIR) $(addprefix all-,$(dir $(SUB_DIRS))) close-$(DIR) 
16 clean-$(DIR): $(addprefix clean-,$(dir $(SUB_DIRS)))
17
18 include $(SUB_DIRS)
19
20 include $(BASE)footer.mk

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