2 include $(BASE)header.mk
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
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
13 include $(BASE)body.mk
15 $(call fcn_addbin,$(OUTPUTDIR)Libs/libld-acess.so,$(call fcn_src2obj,_stublib.c))
17 # Handle preprocessed files
21 @$(CPP) $(CPPFLAGS-$(DIR)) -P -D__ASSEMBLER__ $< -o $@
23 include $(BASE)footer.mk