File: rules

package info (click to toggle)
gemmlowp 0.0~git20200506.fda83bd-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 5,724 kB
  • sloc: cpp: 113,766; ansic: 8,943; python: 3,251; sh: 79; objc: 55; makefile: 16
file content (22 lines) | stat: -rwxr-xr-x 568 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS  = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ -Scmake

override_dh_auto_configure:
	ln -s contrib/CMakeLists.txt .
	dh_auto_configure -- \
		-DCMAKE_C_FLAGS="$(CFLAGS) $(CPPFLAGS)" \
		-DCMAKE_CXX_FLAGS="$(CXXFLAGS) $(CPPFLAGS)"

override_dh_installdocs:
	-mkdir -p debian/libgemmlowp-dev/usr/share/doc/libgemmlowp-dev/meta/
	install meta/README debian/libgemmlowp-dev/usr/share/doc/libgemmlowp-dev/meta/
	dh_installdocs

override_dh_auto_clean:
	-$(RM) CMakeLists.txt
	dh_auto_clean