Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 PACKAGE=funnelweb
4
5 topdir=$(shell pwd)
6 debdir=$(topdir)/debian
7 tmpdir=$(debdir)/$(PACKAGE)
8 docdir=$(tmpdir)/usr/share/doc/$(PACKAGE)
9
10 include /usr/share/dpkg/buildtools.mk
11 CPPFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS)
12 CFLAGS ?= $(shell dpkg-buildflags --get CFLAGS) -fno-strict-aliasing
13 LDFLAGS ?= $(shell dpkg-buildflags --get LDFLAGS)
14
15 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
16
17 override_dh_auto_build:
18 (cd source && \
19 $(CC) $(CPPFLAGS) $(CFLAGS) -c *.c && \
20 $(CC) $(CFLAGS) $(LDFLAGS) -o fw *.o)
21
22 override_dh_auto_clean:
23 rm -f source/fw source/*.o
24
25 override_dh_auto_install:
26 install -d $(tmpdir)/usr/bin $(docdir)
27 install -m755 source/fw $(tmpdir)/usr/bin
28 install admin/0readme.txt $(docdir)/README
29
30 %:
31 dh $@
32
33 # End of file