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
Cleaning up clang warnings
[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
405ec20
..
157f02d
100644
(file)
--- a/
Usermode/Libraries/acess.ld_src/Makefile
+++ b/
Usermode/Libraries/acess.ld_src/Makefile
@@
-1,16
+1,25
@@
+#
+# Acess2
+# - Common usermode linker script
+#
+
-include ../Makefile.cfg
-include ../Makefile.cfg
-BIN =
..
/acess.ld
+BIN =
$(OUTPUTDIR)Libs
/acess.ld
.PHONY: all clean install
.PHONY: all clean install
-all:
../acess.ld
+all:
$(BIN)
clean:
clean:
- $(RM) ../acess.ld
+ $(RM) $(BIN)
+
+install: $(BIN)
-install: ../acess.ld
+$(BIN): acess_$(ARCHDIR).ld.h
+ @mkdir -p $(dir $(BIN))
+ cpp -nostdinc -U i386 -P -C $< -o $@ -D__LIBDIR=$(OUTPUTDIR)Libs
-../acess.ld: acess.ld.h
- cpp -nostdinc -U i386 -P -C $< -o $@ -DACESSDIR=$(ACESSDIR)
+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