xref: /OK3568_Linux_fs/external/mpp/debian/rules (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/usr/bin/make -f
2# See debhelper(7) (uncomment to enable)
3# output every command that modifies files on the build system.
4#DH_VERBOSE = 1
5
6# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
7DPKG_EXPORT_BUILDFLAGS = 1
8include /usr/share/dpkg/default.mk
9
10# see FEATURE AREAS in dpkg-buildflags(1)
11#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
12
13# see ENVIRONMENT in dpkg-buildflags(1)
14# package maintainers to append CFLAGS
15#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
16# package maintainers to append LDFLAGS
17#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
18
19ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
20export CMAKE_TOOLCHAIN_FILE=/etc/dpkg-cross/cmake/CMakeCross.txt
21endif
22
23# main packaging script based on dh7 syntax
24%:
25	dh $@ --parallel --buildsystem=cmake
26
27# debmake generated override targets
28# This is example for Cmake (See http://bugs.debian.org/641051 )
29override_dh_auto_configure:
30	dh_auto_configure -- \
31	-DCMAKE_BUILD_TYPE=Release \
32	-DHAVE_DRM=ON \
33	-DARM_MIX_32_64=ON
34