File: rules

package info (click to toggle)
i2pd 2.36.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,696 kB
  • sloc: cpp: 43,720; sh: 184; makefile: 142
file content (34 lines) | stat: -rwxr-xr-x 660 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
#export DH_VERBOSE = 1


export DEB_BUILD_MAINT_OPTIONS = hardening=+all


include /usr/share/dpkg/architecture.mk

export DEB_CXXFLAGS_MAINT_APPEND  = -Wall -pedantic -O3

ifneq ($(filter amd64 x32,$(DEB_HOST_ARCH)),)
  export DEB_CXXFLAGS_MAINT_APPEND  += -D__AES__ -D__AVX__
endif

export DEB_LDFLAGS_MAINT_APPEND =


%:
	dh $@

.PHONY: build
build:
	dh $@

override_dh_auto_clean:
	dh_auto_clean --buildsystem=cmake --sourcedirectory=build/

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake --sourcedirectory=build/ -- \
		-DWITH_UPNP=ON -DWITH_WEBSOCKETS=ON

override_dh_auto_build:
	dh_auto_build --buildsystem=cmake