3 # - Common usermode linker script
7 -include ../Makefile.cfg
9 BIN = $(OUTPUTDIR)Libs/acess.ld
11 .PHONY: all clean install utest generate_exp
22 $(BIN): acess_$(ARCHDIR).ld.h
23 @mkdir -p $(dir $(BIN))
24 cpp -nostdinc -U i386 -P -C $< -o $@ -D__LIBDIR=$(OUTPUTDIR)Libs
26 acess_$(ARCHDIR).ld.h:
27 $(LD) --verbose | awk '{ if( substr($$0,0,5) == "====="){ bPrint = !bPrint; } else { if(bPrint){ print $$0;} } }' | sed 's/SEARCH_DIR\(.*\)/SEARCH_DIR(__LIBDIR)/' > $@