Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8 ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
9 BUILD = --build=$(DEB_BUILD_GNU_TYPE)
10 else
11 BUILD = --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
12 endif
13
14 CFLAGS := $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get CFLAGS)
15 CPPFLAGS := $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get CPPFLAGS)
16 LDFLAGS := $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get LDFLAGS)
17
18 CFLAGS += -Wall -g -Wextra -Wmissing-prototypes -Wstrict-prototypes
19 LDFLAGS += -Wl,-z,defs
20
21 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
22 MAKEFLAGS += -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
23 endif
24
25 config.status: configure
26 dh_testdir
27 ./configure $(BUILD) \
28 --prefix=/usr --mandir=\$${prefix}/share/man \
29 --disable-maintainer-mode \
30 CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' \
31 LDFLAGS='$(LDFLAGS)' \
32 || ( echo configure failed with $$? ; cat config.log ; \
33 echo "*** end of config.log after failed configure ***" ; exit 1 )
34
35 build-indep:
36 build-arch: build-arch-stamp
37 build: build-arch-stamp
38
39 build-arch-stamp: config.status
40 dh_testdir
41 $(MAKE)
42 touch $@
43
44 clean:
45 dh_testdir
46 dh_testroot
47 rm -f build-arch-stamp
48
49 if [ -f config.log -o -f config.status ] ; then \
50 $(MAKE) distclean ;\
51 fi
52 dh_clean
53
54 binary-indep: build-indep
55 # We have nothing to do
56
57 binary-arch: build-arch
58 dh_testdir
59 dh_testroot
60 dh_prep
61 dh_installdirs
62 $(MAKE) DESTDIR='$(CURDIR)/debian/inoticoming' install
63 dh_installchangelogs ChangeLog
64 dh_installdocs
65 dh_installexamples
66 dh_link
67 dh_strip
68 dh_compress
69 dh_fixperms
70 dh_installdeb
71 dh_shlibdeps
72 dh_gencontrol
73 dh_md5sums
74 dh_builddeb
75
76 binary: binary-indep binary-arch
77 .PHONY: build build-arch build-indep clean binary-indep binary-arch binary