File: rules

package info (click to toggle)
libstatgen 1.0.14-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,584 kB
  • sloc: cpp: 49,514; ansic: 1,408; makefile: 315; sh: 60
file content (28 lines) | stat: -rwxr-xr-x 708 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
27
28
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

%:
	dh $@

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