File: rules

package info (click to toggle)
funnelweb 3.2-5
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, trixie
  • size: 2,744 kB
  • ctags: 1,173
  • sloc: ansic: 9,156; makefile: 21
file content (31 lines) | stat: -rwxr-xr-x 701 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f

PACKAGE=funnelweb

topdir=$(shell pwd)
debdir=$(topdir)/debian
tmpdir=$(debdir)/$(PACKAGE)
docdir=$(tmpdir)/usr/share/doc/$(PACKAGE)

CC       ?= gcc
CPPFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   ?= $(shell dpkg-buildflags --get CFLAGS) -fno-strict-aliasing
LDFLAGS  ?= $(shell dpkg-buildflags --get LDFLAGS)

override_dh_auto_build:
	(cd source && \
	 $(CC) $(CPPFLAGS) $(CFLAGS) -c *.c && \
	 $(CC) $(CFLAGS) $(LDFLAGS) -o fw *.o)

override_dh_auto_clean:
	rm -f source/fw source/*.o

override_dh_auto_install:
	install -d $(tmpdir)/usr/bin $(docdir)
	install -m755 source/fw $(tmpdir)/usr/bin
	install admin/0readme.txt $(docdir)/README

%:
	dh $@

# End of file