fixed, compiler warning. this comes from boost upstream (https://svn.boost.org/trac...
[vuplus_xbmc] / tools / depends / target / boost / Makefile
1 include ../../Makefile.include
2 DEPS= ../../Makefile.include add-arm-mem-barrier.patch fix-deprecated-swp.patch fix_shared_ptr_multithread.patch Makefile
3
4 #Headers Only!
5 LIBNAME=boost
6 VERSION=1_44_0
7 SOURCE=$(LIBNAME)_$(VERSION)
8 ARCHIVE=$(SOURCE).tar.bz2
9
10 all: .installed-$(PLATFORM)
11
12 $(TARBALLS_LOCATION)/$(ARCHIVE):
13         cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
14
15 $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
16         rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
17         cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
18         echo 'using gcc : : $(CC) : ' > $(PLATFORM)/tools/build/v2/user-config.jam
19         echo '  <cflags>"$(CFLAGS)"' >> $(PLATFORM)/tools/build/v2/user-config.jam
20         echo '  <cxxflags>"$(CXXFLAGS)"' >> $(PLATFORM)/tools/build/v2/user-config.jam
21         echo '  ;' >> $(PLATFORM)/tools/build/v2/user-config.jam
22         cd $(PLATFORM); patch -p1 < ../add-arm-mem-barrier.patch
23         cd $(PLATFORM); patch -p1 < ../fix-deprecated-swp.patch
24 ifeq (arm, $(findstring arm, $(CPU)))
25         cd $(PLATFORM); patch -p0 < ../fix_shared_ptr_multithread.patch
26 endif
27         cd $(PLATFORM); patch -p1 < ../fix-self-assignment-warnings.patch
28         cd $(PLATFORM); ./bootstrap.sh --prefix=$(PREFIX)
29
30 .installed-$(PLATFORM): $(PLATFORM)
31         cd $(PLATFORM); ./bjam --prefix=$(PREFIX) toolset=gcc --toolset-root=$(TOOLCHAIN)/$(HOST)/bin --disable-icu \
32         --without-date_time --without-filesystem --without-graph --without-graph_parallel --without-iostreams --without-math --without-mpi --without-program_options \
33 --without-python --without-random --without-regex --without-serialization --without-signals --without-system --without-test --without-thread --without-wave install 
34         touch .installed-$(PLATFORM)
35
36 clean:
37         rm -rf $(PLATFORM) .installed-$(PLATFORM)
38
39 distclean::
40         rm -rf $(PLATFORM) .installed-$(PLATFORM)