~ubuntu-branches/ubuntu/utopic/micro-httpd/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jari Aalto
  • Date: 2012-03-24 03:54:48 UTC
  • Revision ID: package-import@ubuntu.com-20120324035448-sir9lsngydzurhkc
Tags: 20051212-15
* debian/rules
  - Enable all hardening flags.
  - Use DEB_*_MAINT_* variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
include debian/debian-vars.mk
7
7
 
8
8
export DEB_BUILD_MAINT_OPTIONS  = hardening=+all
9
 
CFLAGS  += -Wall -pedantic $(CPPFLAGS)
10
 
LDFLAGS += -Wl,--as-needed
 
9
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 
10
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
11
11
 
12
12
man:
13
13
        # target: man -- convert *.pod to manual page
15
15
        MANSECT=8 makeman
16
16
 
17
17
override_dh_auto_build: man
18
 
        # Notify Makefile about compilation
 
18
        # Notify Makefile about compilation. We skip the *.o step.
19
19
        touch micro_httpd.o
20
 
        $(CC) $(CFLAGS) micro_httpd.c $(LDFLAGS) -o $(BIN)
 
20
        $(CC) $(CFLAGS) $(CPPFLAGS) micro_httpd.c $(LDFLAGS) -o $(BIN)
21
21
 
22
22
override_dh_auto_install:
23
23
        install -d -m 0755 $(SBINDIR) $(MAN8DIR)