Usermode - Unit tests called from root makefile
[tpg/acess2.git] / Usermode / Libraries / acess.ld_src / Makefile
index 2628b14..4b66433 100644 (file)
@@ -8,7 +8,7 @@
 
 BIN = $(OUTPUTDIR)Libs/acess.ld
 
-.PHONY: all clean install
+.PHONY: all clean install utest generate_exp
 
 all: $(BIN)
 
@@ -17,6 +17,11 @@ clean:
 
 install: $(BIN)
 
+utest generate_exp:
+
 $(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