File: rules

package info (click to toggle)
funnelweb 3.2-4.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,744 kB
  • sloc: ansic: 9,156; makefile: 17
file content (27 lines) | stat: -rwxr-xr-x 538 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
#!/usr/bin/make -f

PACKAGE=funnelweb

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

CC     ?= gcc
CFLAGS ?= -g -O2 -Wall -fno-strict-aliasing

override_dh_auto_build:
	(cd source && $(CC) $(CFLAGS) -c *.c && $(CC) $(CFLAGS) -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