[git commit] buildsys: echo wrapper to $@
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Tue May 15 17:26:27 UTC 2012
commit: http://git.uclibc.org/uClibc++/commit/?id=ebd010db0ac1d05068a1ec800d0e27948012f675
branch: http://git.uclibc.org/uClibc++/commit/?id=refs/heads/master
for brevity
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
bin/Makefile | 60 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/bin/Makefile b/bin/Makefile
index b6c11a5..acf3b95 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -13,37 +13,37 @@ install:
$(INSTALL) -m 755 $(WRAPPER) $(PREFIX)$(UCLIBCXX_RUNTIME_BINDIR)
$(WRAPPER): Makefile
- echo '#!/bin/sh' > $(WRAPPER)
- echo '' >> $(WRAPPER)
- echo 'WRAPPER_INCLUDEDIR="$${WRAPPER_INCLUDEDIR:=-I$(UCLIBCXX_RUNTIME_INCLUDEDIR)}"' >> $(WRAPPER)
- echo 'WRAPPER_LIBDIR="$${WRAPPER_LIBDIR:=-L$(UCLIBCXX_RUNTIME_LIBDIR)}"' >> $(WRAPPER)
- echo '' >> $(WRAPPER)
- echo 'WRAPPER_OPTIONS=""' >> $(WRAPPER)
- echo 'WRAPPER_LIBS="$(LIBS)"' >> $(WRAPPER)
- echo '' >> $(WRAPPER)
- echo 'WRAPPER_INCLIB="Y"' >> $(WRAPPER)
- echo 'while [ -n "$$1" ]' >> $(WRAPPER)
- echo 'do' >> $(WRAPPER)
- echo ' WRAPPER_OPTIONS="$$WRAPPER_OPTIONS $$1"' >> $(WRAPPER)
- echo ' if [ "$$1" = "-c" -o "$$1" = "-E" -o "$$1" = "-S" -o "$$1" = "-MF" ]' >> $(WRAPPER)
- echo ' then' >> $(WRAPPER)
- echo ' WRAPPER_INCLIB="N"' >> $(WRAPPER)
- echo ' fi' >> $(WRAPPER)
+ echo '#!/bin/sh' > $@
+ echo '' >> $@
+ echo 'WRAPPER_INCLUDEDIR="$${WRAPPER_INCLUDEDIR:=-I$(UCLIBCXX_RUNTIME_INCLUDEDIR)}"' >> $@
+ echo 'WRAPPER_LIBDIR="$${WRAPPER_LIBDIR:=-L$(UCLIBCXX_RUNTIME_LIBDIR)}"' >> $@
+ echo '' >> $@
+ echo 'WRAPPER_OPTIONS=""' >> $@
+ echo 'WRAPPER_LIBS="$(LIBS)"' >> $@
+ echo '' >> $@
+ echo 'WRAPPER_INCLIB="Y"' >> $@
+ echo 'while [ -n "$$1" ]' >> $@
+ echo 'do' >> $@
+ echo ' WRAPPER_OPTIONS="$$WRAPPER_OPTIONS $$1"' >> $@
+ echo ' if [ "$$1" = "-c" -o "$$1" = "-E" -o "$$1" = "-S" -o "$$1" = "-MF" ]' >> $@
+ echo ' then' >> $@
+ echo ' WRAPPER_INCLIB="N"' >> $@
+ echo ' fi' >> $@
ifneq ($(strip $(LIBS)),$(strip $(STATIC_LIBS)))
- echo ' if [ "$$1" = "-static" ]' >> $(WRAPPER)
- echo ' then' >> $(WRAPPER)
- echo ' WRAPPER_LIBS="$(STATIC_LIBS)"' >> $(WRAPPER)
- echo ' fi' >> $(WRAPPER)
+ echo ' if [ "$$1" = "-static" ]' >> $@
+ echo ' then' >> $@
+ echo ' WRAPPER_LIBS="$(STATIC_LIBS)"' >> $@
+ echo ' fi' >> $@
endif
- echo ' shift' >> $(WRAPPER)
- echo 'done' >> $(WRAPPER)
- echo 'if [ "$$WRAPPER_INCLIB" = "Y" ]' >> $(WRAPPER)
- echo 'then' >> $(WRAPPER)
- echo ' WRAPPER_OPTIONS="$$WRAPPER_OPTIONS -nodefaultlibs $$WRAPPER_LIBDIR -l$(LNAME) $$WRAPPER_LIBS"' >> $(WRAPPER)
- echo 'fi' >> $(WRAPPER)
- echo '' >> $(WRAPPER)
+ echo ' shift' >> $@
+ echo 'done' >> $@
+ echo 'if [ "$$WRAPPER_INCLIB" = "Y" ]' >> $@
+ echo 'then' >> $@
+ echo ' WRAPPER_OPTIONS="$$WRAPPER_OPTIONS -nodefaultlibs $$WRAPPER_LIBDIR -l$(LNAME) $$WRAPPER_LIBS"' >> $@
+ echo 'fi' >> $@
+ echo '' >> $@
ifeq ($(DODEBUG),y)
- echo 'echo $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR $$WRAPPER_OPTIONS' >> $(WRAPPER)
+ echo 'echo $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR $$WRAPPER_OPTIONS' >> $@
endif
- echo 'exec $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR $$WRAPPER_OPTIONS' >> $(WRAPPER)
- chmod 755 $(WRAPPER)
+ echo 'exec $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR $$WRAPPER_OPTIONS' >> $@
+ chmod 755 $@
More information about the uClibc-cvs
mailing list