4 # Uncomment this to turn on verbose mode.
7 # These are used for cross-compiling and for saving the configure script
8 # from having to guess our platform (since we know it already)
9 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 PREFIX ?= $(CURDIR)/debian/tmp/usr
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23 CFLAGS += -fPIC -rdynamic
24 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
26 ifeq (armel, $(DEB_HOST_ARCH))
27 CFLAGS += -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -fsingle-precision-constant
30 #BOOST_LIBS = date_time,filesystem,graph,math,program_options,random,regex,serialization,signals,system,thread,wave
31 BOOST_LIBS = filesystem,program_options,system,thread
33 # shared library versions, option 1
39 # Add here commands to configure the package.
40 # mkdir -p obj-$(DEB_BUILD_GNU_TYPE)
41 # cd obj-$(DEB_BUILD_GNU_TYPE) && \
43 ./bootstrap.sh --prefix=$(PREFIX) --with-libraries=$(BOOST_LIBS)
47 build-stamp: config.status
50 # Add here commands to compile the package.
51 # cd obj-$(DEB_BUILD_GNU_TYPE) && \
61 # Add here commands to clean up after the build process.
63 #ifneq "$(wildcard /usr/share/misc/config.sub)" ""
64 # cp -f /usr/share/misc/config.sub config.sub
66 #ifneq "$(wildcard /usr/share/misc/config.guess)" ""
67 # cp -f /usr/share/misc/config.guess config.guess
80 # Add here commands to install the package into debian/tmp
82 mkdir -p $(PREFIX)/include
83 cp -rf boost $(PREFIX)/include
84 cp -rf stage/lib $(PREFIX)
86 # Build architecture-independent files here.
87 binary-indep: build install
88 # We have nothing to do by default.
90 # Build architecture-dependent files here.
91 binary-arch: build install
94 # dh_installchangelogs
97 dh_install --sourcedir debian/tmp
100 # dh_installlogrotate
110 # dh_strip --dbg-package=libstk1.0-0-dbg
122 binary: binary-indep binary-arch
123 .PHONY: build clean binary-indep binary-arch binary install