~ubuntu-branches/ubuntu/wily/binutils-mingw-w64/wily-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2013-06-13 22:48:16 UTC
  • Revision ID: package-import@ubuntu.com-20130613224816-gfucwixkzpdq33ic
Tags: 3
* Move linker scripts to target-specific directories to avoid
  conflicting with binutils (Closes: #712151, #712153).
* Enable hardened builds.
* Standards-Version 3.9.4, no further change required.
* Drop DM-Upload-Allowed.
* Switch to my Debian address.
* Use canonical VCS URIs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# -*- makefile -*-
3
 
# Copyright © 2010 Stephen Kitt <steve@sk2.org>
 
3
# Copyright © 2010-2013 Stephen Kitt <skitt@debian.org>
4
4
 
5
5
# Uncomment this to turn on verbose mode.
6
6
#export DH_VERBOSE=1
17
17
targets := i686-w64-mingw32 x86_64-w64-mingw32
18
18
 
19
19
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
20
 
CFLAGS += -Wall
 
20
CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
 
21
CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
 
22
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
 
23
export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
21
24
 
22
25
unpack: unpack-stamp
23
26
unpack-stamp:
24
27
        tar xf $(binutils_dir)/binutils-$(gnu_upstream_version).tar.*
25
28
        rm -rf $(upstream_dir)
26
29
        mv binutils-$(deb_upstream_version) $(upstream_dir)
 
30
        # Revert the ldscripts location patch so we avoid conflicting with binutils
 
31
        cd $(upstream_dir); patch -R -p1 < /usr/src/binutils/patches/001_ld_makefile_patch.patch
27
32
        touch $@
28
33
 
29
34
clean:
64
69
        rm -rf debian/tmp/usr/share/info
65
70
        rm -rf debian/tmp/usr/share/locale
66
71
 
67
 
        # The following aren't necessary and don't comply with the FHS
68
 
        rm -rf $(patsubst %,debian/tmp/usr/%,$(targets))
69
 
 
70
72
        # Copy the dllwrap manpages
71
73
        for target in $(targets); do \
72
74
                cp debian/dllwrap.1 debian/$$target-dllwrap.1; \