File: rules

package info (click to toggle)
libstatgen 1.0.15-8
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,588 kB
  • sloc: cpp: 49,624; ansic: 1,408; makefile: 320; sh: 60
file content (34 lines) | stat: -rwxr-xr-x 893 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 DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
-include /usr/share/dpkg/buildtools.mk

# Define SONAME for shared library
LIBNAME=libStatGen
SONUMBER=1
LIBSHARED=${LIBNAME}.so.${SONUMBER}

%:
	dh $@ --no-parallel

override_dh_auto_build:
	dh_auto_build
	# Build the shared library
	$(CXX) -shared -o ${LIBSHARED} */obj/*.o -fPIC -Wl,-soname,${LIBSHARED} $(LDFLAGS)
	# Build doxygen doc
	doxygen

override_dh_auto_install:
	mkdir -p debian/libstatgen-dev/usr/include/${LIBNAME}/
	cp -L include/* debian/libstatgen-dev/usr/include/${LIBNAME}/
	ln -s ${LIBSHARED} ${LIBNAME}.so
	d-shlibmove --commit \
                    --multiarch \
                    --devunversioned \
                    --exclude-a \
                    ${LIBNAME}.so

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	echo "Build time test is not run here."
endif