File: rules

package info (click to toggle)
nng 1.5.2-2
  • links: PTS
  • area: main
  • in suites:
  • size: 5,320 kB
  • sloc: ansic: 70,398; sh: 321; cpp: 62; makefile: 22
file content (34 lines) | stat: -rwxr-xr-x 1,058 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
#!/usr/bin/make -f
#-*- makefile -*-

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

override_dh_auto_clean:
	$(RM) -r $(CURDIR)/build-shared
	$(RM) -r $(CURDIR)/build-static
	dh_auto_clean

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake --builddir=build-static \
		-- -DNNG_ENABLE_TLS=ON -DBUILD_SHARED_LIBS=OFF
	dh_auto_configure --buildsystem=cmake --builddir=build-shared \
		-- -DNNG_ENABLE_TLS=ON -DBUILD_SHARED_LIBS=ON

override_dh_auto_build:
	dh_auto_build --buildsystem=cmake --builddir=build-static
	dh_auto_build --buildsystem=cmake --builddir=build-shared

override_dh_auto_test:
	dh_auto_test --buildsystem=cmake --builddir=build-static
	dh_auto_test --buildsystem=cmake --builddir=build-shared

override_dh_auto_install:
	dh_auto_install --buildsystem=cmake --builddir=build-static
	dh_auto_install --buildsystem=cmake --builddir=build-shared

%:
	dh $@ --buildsystem=cmake

.PHONY: override_dh_auto_clean override_dh_auto_configure \
	override_dh_auto_build override_dh_auto_test override_dh_auto_install