Merge branch 'master' of git://localhost/acess2
[tpg/acess2.git] / Usermode / Libraries / acess.ld_src / Makefile
index 2628b14..157f02d 100644 (file)
@@ -20,3 +20,6 @@ install: $(BIN)
 $(BIN):        acess_$(ARCHDIR).ld.h
        @mkdir -p $(dir $(BIN))
        cpp -nostdinc -U i386 -P -C $< -o $@ -D__LIBDIR=$(OUTPUTDIR)Libs
+
+acess_$(ARCHDIR).ld.h:
+       $(LD) --verbose | awk '{ if( substr($$0,0,5) == "====="){ bPrint = !bPrint; } else { if(bPrint){ print $$0;} } }' | sed 's/SEARCH_DIR\(.*\)/SEARCH_DIR(__LIBDIR)/' > $@

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