tizen 2.4 release
[external/boost.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
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)
11
12 CFLAGS ?= -Wall -g
13 LDFLAGS ?= 
14 PREFIX ?= $(CURDIR)/debian/tmp/usr
15 DATADIR ?= /opt
16
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18         CFLAGS += -O0
19 else
20         CFLAGS += -O2
21 endif
22
23 CFLAGS += -fPIC -rdynamic 
24 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
25
26 ifeq (armel, $(DEB_HOST_ARCH))
27          CFLAGS += -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -fsingle-precision-constant
28 endif
29
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
32
33 # shared library versions, option 1
34 version=1.0.0
35 major=1
36
37 config.status: 
38         dh_testdir
39         # Add here commands to configure the package.
40 #       mkdir -p obj-$(DEB_BUILD_GNU_TYPE)
41 #       cd obj-$(DEB_BUILD_GNU_TYPE) && \
42 #
43         ./bootstrap.sh --prefix=$(PREFIX) --with-libraries=$(BOOST_LIBS)
44         ./bjam
45
46 build: build-stamp
47 build-stamp:  config.status
48         dh_testdir
49
50         # Add here commands to compile the package.
51 #       cd obj-$(DEB_BUILD_GNU_TYPE) && \
52         $(MAKE)
53
54         touch $@
55
56 clean:
57         dh_testdir
58         dh_testroot
59         rm -f build-stamp 
60
61         # Add here commands to clean up after the build process.
62 #       -$(MAKE) distclean
63 #ifneq "$(wildcard /usr/share/misc/config.sub)" ""
64 #       cp -f /usr/share/misc/config.sub config.sub
65 #endif
66 #ifneq "$(wildcard /usr/share/misc/config.guess)" ""
67 #       cp -f /usr/share/misc/config.guess config.guess
68 #endif
69
70         dh_clean
71
72         rm -rf obj-*
73
74 install: build
75         dh_testdir
76         dh_testroot
77         dh_clean -k 
78         dh_installdirs
79
80         # Add here commands to install the package into debian/tmp
81         mkdir -p $(PREFIX)
82         mkdir -p $(PREFIX)/include
83         cp -rf boost $(PREFIX)/include
84         cp -rf stage/lib $(PREFIX)
85
86 # Build architecture-independent files here.
87 binary-indep: build install
88 # We have nothing to do by default.
89
90 # Build architecture-dependent files here.
91 binary-arch: build install
92         dh_testdir
93         dh_testroot
94 #       dh_installchangelogs
95 #       dh_installdocs
96 #       dh_installexamples
97         dh_install --sourcedir debian/tmp
98 #       dh_installmenu
99 #       dh_installdebconf       
100 #       dh_installlogrotate
101 #       dh_installemacsen
102 #       dh_installpam
103 #       dh_installmime
104 #       dh_installinit
105 #       dh_installcron
106 #       dh_installinfo
107 #       dh_installman
108         dh_link
109 #       dh_strip
110 #       dh_strip --dbg-package=libstk1.0-0-dbg
111         dh_compress
112         dh_fixperms
113 #       dh_perl
114 #       dh_python
115         dh_makeshlibs
116         dh_installdeb
117         dh_shlibdeps
118         dh_gencontrol
119         dh_md5sums
120         dh_builddeb
121
122 binary: binary-indep binary-arch
123 .PHONY: build clean binary-indep binary-arch binary install