Merge branch 'master' of github.com:thepowersgang/acess2
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / rules.mk
1 # ld-acess
2 include $(BASE)header.mk
3
4 # Variables
5 SRCS := main.c lib.c loadlib.c export.c elf.c pe.c
6 SRCS += arch/$(ARCHDIR).$(ASSUFFIX)
7 BIN  := $(OUTPUTDIR)Libs/ld-acess.so
8
9 CFLAGS-$(DIR) := -Wall -fno-builtin -fno-leading-underscore -fno-stack-protector -fPIC -g
10 CPPFLAGS-$(DIR) := $(CPPFLAGS-$(PDIR))
11 LDFLAGS-$(DIR) := -g -T $(DIR)/arch/$(ARCHDIR).ld -Map $(call fcn_mkobj,map.txt) --export-dynamic
12
13 include $(BASE)body.mk
14
15 $(call fcn_addbin,$(OUTPUTDIR)Libs/libld-acess.so,$(call fcn_src2obj,_stublib.c))
16
17 # Handle preprocessed files
18 $(DIR)%: $(DIR)%.h
19         @echo [CPP] -o $@
20         @mkdir -p $(dir $@)
21         @$(CPP) $(CPPFLAGS-$(DIR)) -P -D__ASSEMBLER__ $< -o $@
22
23 include $(BASE)footer.mk

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