comparison src/boost.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 3e0cb61c076d
children b6c7244a2f66
comparison
equal deleted inserted replaced
3011:75e142c0004b 3012:100e618349f7
18 18
19 define $(PKG)_BUILD 19 define $(PKG)_BUILD
20 # context switched library introduced in boost 1.51.0 does not build 20 # context switched library introduced in boost 1.51.0 does not build
21 rm -r '$(1)/libs/context' 21 rm -r '$(1)/libs/context'
22 # old version appears to interfere 22 # old version appears to interfere
23 rm -rf '$(PREFIX)/$(TARGET)/include/boost/' 23 rm -rf '$(HOST_PREFIX)/include/boost/'
24 echo 'using gcc : : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar ;' > '$(1)/user-config.jam' 24 echo 'using gcc : : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar ;' > '$(1)/user-config.jam'
25 # compile boost jam 25 # compile boost jam
26 cd '$(1)/tools/build/v2/engine' && ./build.sh 26 cd '$(1)/tools/build/v2/engine' && ./build.sh
27 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \ 27 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \
28 -j '$(JOBS)' \ 28 -j '$(JOBS)' \
33 link=static \ 33 link=static \
34 threadapi=win32 \ 34 threadapi=win32 \
35 --layout=tagged \ 35 --layout=tagged \
36 --without-mpi \ 36 --without-mpi \
37 --without-python \ 37 --without-python \
38 --prefix='$(PREFIX)/$(TARGET)' \ 38 --prefix='$(HOST_PREFIX)' \
39 --exec-prefix='$(PREFIX)/$(TARGET)/bin' \ 39 --exec-prefix='$(HOST_PREFIX)/bin' \
40 --libdir='$(PREFIX)/$(TARGET)/lib' \ 40 --libdir='$(HOST_PREFIX)/lib' \
41 --includedir='$(PREFIX)/$(TARGET)/include' \ 41 --includedir='$(HOST_PREFIX)/include' \
42 -sEXPAT_INCLUDE='$(PREFIX)/$(TARGET)/include' \ 42 -sEXPAT_INCLUDE='$(HOST_PREFIX)/include' \
43 -sEXPAT_LIBPATH='$(PREFIX)/$(TARGET)/lib' \ 43 -sEXPAT_LIBPATH='$(HOST_PREFIX)/lib' \
44 stage install 44 stage install
45 45
46 '$(TARGET)-g++' \ 46 '$(TARGET)-g++' \
47 -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \ 47 -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \
48 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-boost.exe' \ 48 '$(2).cpp' -o '$(HOST_PREFIX)/bin/test-boost.exe' \
49 -DBOOST_THREAD_USE_LIB \ 49 -DBOOST_THREAD_USE_LIB \
50 -lboost_serialization-mt \ 50 -lboost_serialization-mt \
51 -lboost_thread_win32-mt \ 51 -lboost_thread_win32-mt \
52 -lboost_system-mt \ 52 -lboost_system-mt \
53 -lboost_chrono-mt 53 -lboost_chrono-mt