~ubuntu-branches/ubuntu/quantal/cccc/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-06-26 01:04:39 UTC
  • Revision ID: package-import@ubuntu.com-20120626010439-7klq8po1834v5079
Tags: 1:3.1.4-4
* Convert debian/copyright to copyright-format 1.0.
* Use dpkg-buildflags to enable hardening options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        CROSS := CCC=$(DEB_HOST_GNU_TYPE)-g++ LD=$(DEB_HOST_GNU_TYPE)-g++
12
12
endif
13
13
 
 
14
# We have to duplicate a little from the upstream build system.  See
 
15
# cccc/posixgcc.mak.
 
16
CFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
 
17
CFLAGS += $(shell dpkg-buildflags --get CFLAGS)
 
18
CFLAGS += -c -I/usr/include/pccts -Wno-deprecated -Wall -x c++
 
19
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
 
20
buildflags := CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
 
21
 
14
22
override_dh_auto_build:
15
 
        cd cccc && $(MAKE) -f posixgcc.mak DEBUG=true \
16
 
                        PCCTS_H=/usr/include/pccts PCCTS_BIN=/usr/bin $(CROSS)
 
23
        $(MAKE) -C cccc -f posixgcc.mak $(buildflags) \
 
24
                PCCTS_H=/usr/include/pccts PCCTS_BIN=/usr/bin $(CROSS)
17
25
 
18
26
override_dh_auto_test:
19
27
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
20
 
        cd test && $(MAKE) -f posix.mak
 
28
        $(MAKE) -C test -f posix.mak
21
29
endif
22
30
 
23
31
override_dh_auto_clean:
24
 
        cd cccc && $(MAKE) -f posixgcc.mak clean
 
32
        $(MAKE) -C cccc -f posixgcc.mak clean
25
33
        -rmdir test/.cccc
26
34
 
27
35
override_dh_auto_install: