File: rules

package info (click to toggle)
libgctp 2.0.0-11
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 39,672 kB
  • sloc: ansic: 7,925; sh: 4,387; makefile: 89; fortran: 29
file content (36 lines) | stat: -rwxr-xr-x 878 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
32
33
34
35
36
#!/usr/bin/make -f

# Comment out this line for debugging
export DH_VERBOSE:=1

-include /usr/share/dpkg/buildtools.mk

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
INSTDIR:=debian/tmp/$(LIBDIR)
VERSION:=2.0.0

# To enable all, uncomment following line
DEB_BUILD_MAINT_OPTIONS:= hardening=+all
DEB_CFLAGS_MAINT_APPEND:= -Wall -pedantic -fPIC
export DEB_BUILD_MAINT_OPTIONS
export DEB_CFLAGS_MAINT_APPEND

# The magic rule for debhelper
%:
	dh $@ 



override_dh_auto_clean:
	dh_auto_clean
	rm -f gctp.pc

override_dh_auto_install:
	sed -e 's%@LIBDIR@%$(LIBDIR)%' < gctp.pc.in | \
		sed -e 's/@VERSION@/$(VERSION)/' > gctp.pc
	dh_auto_install -- 'CC=$(CC)'
	rm $(INSTDIR)/libgctp.la $(INSTDIR)/libgctp.so
	mv $(INSTDIR)/libgctp.a $(INSTDIR)/libgctp2.a
	mv $(INSTDIR)/libgctp-2.0.0.so $(INSTDIR)/libgctp-2.so.2.0.0