rules.in (373:b09757e4984e) rules.in (442:3f841e1db4a7)
1#!/usr/bin/make -f
2
3# Uncomment this to turn on verbose mode.
4#export DH_VERBOSE=1
5
1#!/usr/bin/make -f
2
3# Uncomment this to turn on verbose mode.
4#export DH_VERBOSE=1
5
6export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
7export DEB_CFLAGS_MAINT_APPEND=-Wp,-D_FORTIFY_SOURCE=2
8DPKG_EXPORT_BUILDFLAGS = 1
9include /usr/share/dpkg/buildflags.mk
10
6BUILDDIR_unit = $(CURDIR)/debian/build-unit
7BUILDDIR_unit_debug = $(CURDIR)/debian/build-unit-debug
8INSTALLDIR = $(CURDIR)/debian/%%NAME%%
9BASEDIR = $(CURDIR)
10
11%%MODULE_DEFINITIONS%%
12
13config.env.%:
14 dh_testdir
15 mkdir -p $(BUILDDIR_$*)
16 cp -Pa $(CURDIR)/auto $(BUILDDIR_$*)/
17 cp -Pa $(CURDIR)/configure $(BUILDDIR_$*)/
18 cp -Pa $(CURDIR)/src $(BUILDDIR_$*)/
19 cp -Pa $(CURDIR)/test $(BUILDDIR_$*)/
20 touch $@
21
22configure.unit: config.env.unit
23 cd $(BUILDDIR_unit) && \
11BUILDDIR_unit = $(CURDIR)/debian/build-unit
12BUILDDIR_unit_debug = $(CURDIR)/debian/build-unit-debug
13INSTALLDIR = $(CURDIR)/debian/%%NAME%%
14BASEDIR = $(CURDIR)
15
16%%MODULE_DEFINITIONS%%
17
18config.env.%:
19 dh_testdir
20 mkdir -p $(BUILDDIR_$*)
21 cp -Pa $(CURDIR)/auto $(BUILDDIR_$*)/
22 cp -Pa $(CURDIR)/configure $(BUILDDIR_$*)/
23 cp -Pa $(CURDIR)/src $(BUILDDIR_$*)/
24 cp -Pa $(CURDIR)/test $(BUILDDIR_$*)/
25 touch $@
26
27configure.unit: config.env.unit
28 cd $(BUILDDIR_unit) && \
24 ./configure \
29 CFLAGS= ./configure \
25 %%CONFIGURE_ARGS%% \
30 %%CONFIGURE_ARGS%% \
26 --modules=/usr/lib/unit/modules && \
31 --modules=/usr/lib/unit/modules \
32 --cc-opt="$(CFLAGS)" && \
27 ./configure %%MODULE_CONFARGS%%
28 touch $@
29
30configure.unit_debug: config.env.unit_debug
31 cd $(BUILDDIR_unit_debug) && \
33 ./configure %%MODULE_CONFARGS%%
34 touch $@
35
36configure.unit_debug: config.env.unit_debug
37 cd $(BUILDDIR_unit_debug) && \
32 ./configure \
38 CFLAGS= ./configure \
33 %%CONFIGURE_ARGS%% \
34 --modules=/usr/lib/unit/debug-modules \
39 %%CONFIGURE_ARGS%% \
40 --modules=/usr/lib/unit/debug-modules \
41 --cc-opt="$(CFLAGS)" \
35 --debug && \
36 ./configure %%MODULE_CONFARGS%%
37 touch $@
38
39build-arch.%: configure.%
40 dh_testdir
41 $(MAKE) -C $(BUILDDIR_$*) %%MODULE_MAKEARGS%%
42 touch $@

--- 53 unchanged lines hidden ---
42 --debug && \
43 ./configure %%MODULE_CONFARGS%%
44 touch $@
45
46build-arch.%: configure.%
47 dh_testdir
48 $(MAKE) -C $(BUILDDIR_$*) %%MODULE_MAKEARGS%%
49 touch $@

--- 53 unchanged lines hidden ---