Mercurial > mxe-octave
comparison src/tinyxml.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | 4d0f3a9da57e |
children | b6c7244a2f66 |
comparison
equal
deleted
inserted
replaced
3011:75e142c0004b | 3012:100e618349f7 |
---|---|
17 | 17 |
18 define $(PKG)_BUILD | 18 define $(PKG)_BUILD |
19 cd '$(1)' && $(TARGET)-g++ -c -O3 -Wall -Wno-unknown-pragmas -Wno-format -D TIXML_USE_STL '$(1)'/*.cpp | 19 cd '$(1)' && $(TARGET)-g++ -c -O3 -Wall -Wno-unknown-pragmas -Wno-format -D TIXML_USE_STL '$(1)'/*.cpp |
20 cd '$(1)' && $(TARGET)-ar cr libtinyxml.a *.o | 20 cd '$(1)' && $(TARGET)-ar cr libtinyxml.a *.o |
21 $(TARGET)-ranlib '$(1)/libtinyxml.a' | 21 $(TARGET)-ranlib '$(1)/libtinyxml.a' |
22 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' | 22 $(INSTALL) -d '$(HOST_PREFIX)/lib' |
23 $(INSTALL) -m644 '$(1)'/*.a '$(PREFIX)/$(TARGET)/lib/' | 23 $(INSTALL) -m644 '$(1)'/*.a '$(HOST_PREFIX)/lib/' |
24 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' | 24 $(INSTALL) -d '$(HOST_PREFIX)/include' |
25 $(INSTALL) -m644 '$(1)'/*.h '$(PREFIX)/$(TARGET)/include/' | 25 $(INSTALL) -m644 '$(1)'/*.h '$(HOST_PREFIX)/include/' |
26 | 26 |
27 '$(TARGET)-g++' \ | 27 '$(TARGET)-g++' \ |
28 -W -Wall -D TIXML_USE_STL -Werror -ansi -pedantic \ | 28 -W -Wall -D TIXML_USE_STL -Werror -ansi -pedantic \ |
29 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-tinyxml.exe' \ | 29 '$(2).cpp' -o '$(HOST_PREFIX)/bin/test-tinyxml.exe' \ |
30 -ltinyxml | 30 -ltinyxml |
31 endef | 31 endef |