Updates for squeeze
[public/libpam-csc.git] / debian / rules
1 #!/usr/bin/make -f
2
3 CFLAGS = -Wall -g
4
5 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
6         CFLAGS += -O0
7 else
8         CFLAGS += -O2
9 endif
10
11 configure: configure-stamp
12 configure-stamp:
13         dh_testdir
14         touch configure-stamp
15
16
17 build: build-stamp
18
19 build-stamp: configure-stamp
20         dh_testdir
21
22         $(MAKE)
23
24         touch $@
25
26 clean:
27         dh_testdir
28         dh_testroot
29         rm -f build-stamp configure-stamp
30
31         $(MAKE) clean
32         dh_clean
33
34 install: build-stamp
35         dh_testdir
36         dh_testroot
37         dh_prep
38         dh_installdirs
39         install -m 644 pam_csc.so $(CURDIR)/debian/libpam-csc/lib/security
40
41
42 # Build architecture-independent files here.
43 binary-indep: build install
44 # We have nothing to do by default.
45
46 # Build architecture-dependent files here.
47 binary-arch: build install
48         dh_testdir
49         dh_testroot
50         dh_installchangelogs
51         dh_installdocs
52         dh_installexamples
53         dh_installman
54         dh_link
55         dh_strip
56         dh_compress
57         dh_fixperms
58         dh_installdeb
59         dh_shlibdeps
60         dh_gencontrol
61         dh_md5sums
62         dh_builddeb
63
64 binary: binary-indep binary-arch
65 .PHONY: build clean binary-indep binary-arch binary install configure