File: rules

package info (click to toggle)
libgctp 2.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 39,632 kB
  • sloc: ansic: 7,923; sh: 4,387; makefile: 91; fortran: 29
file content (37 lines) | stat: -rwxr-xr-x 1,074 bytes parent folder | download | duplicates (2)
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
37
#!/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)
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)'
	mkdir -p debian/libgctp-2.0.0/$(LIBDIR)
	cp source/.libs/libgctp-2.0.0.so debian/libgctp-2.0.0/$(LIBDIR)/libgctp.so.2.0.0
	dh_link -p libgctp-dev $(LIBDIR)/libgctp.so.2.0.0 $(LIBDIR)/libgctp.so
	dh_link -p libgctp-2.0.0 $(LIBDIR)/libgctp.so.2.0.0 $(LIBDIR)/libgctp-2.0.0.so
	dh_install -p libgctp-dev gctp.pc $(LIBDIR)/pkgconfig
	dh_install -p libgctp-dev source/.libs/*.a	$(LIBDIR)