~ubuntu-branches/ubuntu/vivid/bmf/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jari Aalto
  • Date: 2012-02-13 02:48:03 UTC
  • Revision ID: package-import@ubuntu.com-20120213024803-w8pckhxogpxalgtm
Tags: 0.9.4-6
* debian/compat
  - Update to 9
* debian/control
  - (Build-Depends): Update to debhelper 9, dpkg-dev 1.16.1.
  - (Standards-Version): Update to 3.9.2.
  - Tweak description to address lintian warning.
* debian/copyright
  - (X-*): Add headers Vcs and Bugs.
* debian/patches
  - (40): New. Fix for folded headers.
* debian/rules
  - Remove unnecessary rules.
  - Use hardened CFLAGS (release goal).
    http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
 
4
 
# Uncomment this to turn on verbose mode.
5
 
#export DH_VERBOSE=1
6
2
 
7
3
PACKAGE = bmf
8
4
 
9
 
Makefile:
10
 
        # target: config.status
11
 
        dh_testdir
 
5
include /usr/share/dpkg/buildflags.mk
 
6
CFLAGS  += -Wall -pedantic
 
7
CFLAGS  += -DNDEBUG -D_UNIX -D_LINUX -Wall -DHAVE_LIBDB
 
8
LDFLAGS += -Wl,--as-needed
12
9
 
13
 
        # Create Makefile
 
10
override_dh_auto_configure:
14
11
        ./configure --with-package=libdb
15
12
 
16
 
build-stamp: Makefile
17
 
        # target: build-stamp
18
 
        dh_testdir
19
 
        $(MAKE) $(MAKE_FLAGS) \
20
 
                CFLAGS="-DNDEBUG -D_UNIX -D_LINUX -Wall -DHAVE_LIBDB" \
21
 
                SYSLIBS=-ldb
22
 
        touch build-stamp
23
 
 
24
 
build: build-stamp
25
 
 
26
 
install: build
27
 
        # target: install
28
 
        dh_testdir
29
 
        dh_testroot
30
 
        dh_prep
31
 
        dh_installdirs
32
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/$(PACKAGE) install
33
 
 
34
 
binary-arch: build install
35
 
        # target: binary-arch -- Build architecture-dependent files
36
 
        dh_testdir
37
 
        dh_testroot
38
 
        dh_installchangelogs ChangeLog
39
 
        dh_installdocs
40
 
#       dh_installexamples
41
 
#       dh_install
42
 
#       dh_installmenu
43
 
#       dh_installdebconf
44
 
#       dh_installlogrotate
45
 
#       dh_installemacsen
46
 
#       dh_installpam
47
 
#       dh_installmime
48
 
#       dh_python
49
 
#       dh_installinit
50
 
#       dh_installcron
51
 
#       dh_installinfo
52
 
        dh_installman
53
 
        dh_link
54
 
        dh_strip
55
 
        dh_compress
56
 
        dh_fixperms
57
 
#       dh_perl
58
 
#       dh_makeshlibs
59
 
        dh_installdeb
60
 
        dh_shlibdeps
61
 
        dh_gencontrol
62
 
        dh_md5sums
63
 
        dh_builddeb
64
 
 
65
 
binary: binary-indep binary-arch
 
13
override_dh_auto_build:
 
14
        $(MAKE) LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" SYSLIBS=-ldb
66
15
 
67
16
%:
68
17
        dh $@
69
18
 
70
 
.PHONY: build install binary-indep binary-arch binary
71
 
 
72
19
# End of file