File: rules

package info (click to toggle)
liboprf 0.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,736 kB
  • sloc: ansic: 19,887; python: 1,918; makefile: 439
file content (26 lines) | stat: -rwxr-xr-x 770 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
#!/usr/bin/make -f

export DH_VERBOSE = 1

# debhelper(7), dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# -I flags for src/noise_xk/makefile and for example/makefile
export DEB_CFLAGS_MAINT_APPEND = -fPIC -Iinclude -Iinclude/karmel -Iinclude/karmel/minimal -I../include -I../include/karmel -I../include/karmel/minimal -I../..

# export DEB_CPPFLAGS_MAINT_APPEND = -D_DEFAULT_SOURCE

export DEB_LDFLAGS_MAINT_APPEND = -lsodium

export PYBUILD_SYSTEM=distutils

%:
	dh $@ --sourcedirectory=src --with python3

dh_auto_configure:
	dh_auto_configure --with python3 --buildsystem=pybuild
	dh_auto_configure --sourcedirectory=src

override_dh_auto_install:
	dh_auto_install --sourcedirectory=python --buildsystem=pybuild
	dh_auto_install -- PREFIX=/usr