1 include $(BASE)header.mk
4 BIN = $(OUTPUTDIR)Libs/acess.ld
13 $(BIN): $(DIR)/acess_$(ARCHDIR).ld.h
14 @mkdir -p $(dir $(BIN))
15 cpp -nostdinc -U i386 -P -C $< -o $@ -D__LIBDIR=$(OUTPUTDIR)Libs
17 $(DIR)/acess_$(ARCHDIR).ld.h:
18 $(LD) --verbose | awk '{ if( substr($$0,0,5) == "====="){ bPrint = !bPrint; } else { if(bPrint){ print $$0;} } }' | sed 's/SEARCH_DIR\(.*\)/SEARCH_DIR(__LIBDIR)/' > $@
20 include $(BASE)footer.mk