~ubuntu-branches/ubuntu/utopic/intel2gas/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Alexander Zangerl
  • Date: 2013-09-24 13:13:09 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20130924131309-zu3m8txmlk4i7o19
Tags: 1.3.3-15
* lifted standards version
* added hardening build flags

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
DOCDIR=debian/tmp/usr/share/doc/intel2gas
3
 
CFLAGS= -g -Wall
4
 
CXXFLAGS= -g -Wall
 
3
 
 
4
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
 
5
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 
6
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
 
7
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
5
8
 
6
9
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
7
10
CFLAGS += -O0
15
18
     INSTALL_OPTS += -s
16
19
endif
17
20
 
 
21
build-arch: build
 
22
build-indep: build
 
23
 
18
24
build:
19
25
        if [ ! -f debian/rules ]; then echo "wrong dir!"; exit 1; fi
20
26
        ./configure --prefix=/usr 
21
 
        $(MAKE) CXXFLAGS="$(CXXFLAGS)" INSTALL_OPTS="$(INSTALL_OPTS)"
 
27
        $(MAKE) CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" INSTALL_OPTS="$(INSTALL_OPTS)"
22
28
        touch build
23
29
 
24
30
clean: