File: rules

package info (click to toggle)
caml-crush 1.0.10-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,476 kB
  • sloc: ansic: 21,420; ml: 10,419; sh: 1,422; makefile: 268
file content (54 lines) | stat: -rwxr-xr-x 1,395 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

VARIANT := SERVER UNIX_CLIENT TCP_CLIENT

VARIANT_SERVER_LIB := tcpssl
VARIANT_UNIX_CLIENT_LIB := unix
VARIANT_TCP_CLIENT_LIB := tcp

CONFIGURE_SERVER_OPTS := \
  --with-idlgen\
  --with-rpcgen\
  --with-ssl\
  --with-ssl-clientfiles=env

CONFIGURE_TCP_CLIENT_OPTS := \
	--with-client-socket="tcp,127.0.0.1:4444"

CONFIGURE_UNIX_CLIENT_OPTS := \
	--with-client-socket="unix,/var/run/pkcs11proxyd.socket"

override_dh_auto_clean:
	./autoclean.sh
	#Files are auto-generated
	find ./src -name pkcs11.h -delete
	find ./src -name pkcs11.ml -delete
	find ./src -name pkcs11_stubs.c -delete
	find ./src -name pkcs11_rpc.h -delete
	find ./src/client-lib -name "pkcs11_rpc_*.c" -delete
	find ./src/rpc-pkcs11 -name "pkcs11_rpc_*" -delete
	rm -rf build-*

override_dh_auto_configure: $(VARIANT:%=override_dh_auto_configure-%)

override_dh_auto_configure-%:
	./autogen.sh
	dh_auto_configure -Bbuild-$* -- --srcdir=.. $(CONFIGURE_$*_OPTS)

override_dh_auto_build: $(VARIANT:%=override_dh_auto_build-%)

override_dh_auto_build-%:
	dh_auto_build -Bbuild-$* -- CUSTOM_SONAME=libp11client$(VARIANT_$*_LIB).so

override_dh_auto_install: $(VARIANT:%=override_dh_auto_install-%)

override_dh_auto_install-%:
	dh_auto_install -Bbuild-$* --destdir=debian/tmp/build-$*

%:
	dh $@ --with autoreconf
override_dh_dwz: