git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile - Fix mtest target (and clean up utest targets)
[tpg/acess2.git]
/
Usermode
/
Libraries
/
acess.ld_src
/
Makefile
diff --git
a/Usermode/Libraries/acess.ld_src/Makefile
b/Usermode/Libraries/acess.ld_src/Makefile
index
2628b14
..
09a7c8f
100644
(file)
--- a/
Usermode/Libraries/acess.ld_src/Makefile
+++ b/
Usermode/Libraries/acess.ld_src/Makefile
@@
-8,7
+8,7
@@
BIN = $(OUTPUTDIR)Libs/acess.ld
BIN = $(OUTPUTDIR)Libs/acess.ld
-.PHONY: all clean install
+.PHONY: all clean install
utest utest-build utest-run generate_exp
all: $(BIN)
all: $(BIN)
@@
-17,6
+17,13
@@
clean:
install: $(BIN)
install: $(BIN)
+# How does one unit test a linker script?
+utest generate_exp utest-build utest-run:
+ @echo > /dev/null
+
$(BIN): acess_$(ARCHDIR).ld.h
@mkdir -p $(dir $(BIN))
cpp -nostdinc -U i386 -P -C $< -o $@ -D__LIBDIR=$(OUTPUTDIR)Libs
$(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