| 1 |
#!/usr/bin/make -f |
| 2 |
# See debhelper(7) (uncomment to enable) |
| 3 |
# output every command that modifies files on the build system. |
| 4 |
export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* |
| 7 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 8 |
include /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 |
|
| 19 |
|
| 20 |
# main packaging script based on dh7 syntax |
| 21 |
%: |
| 22 |
dh $@ --buildsystem=cmake --DSYSINSTALL_BINDINGS=ON |
| 23 |
|
| 24 |
override_dh_auto_configure: |
| 25 |
dh_auto_configure -- |
| 26 |
|
| 27 |
override_dh_auto_install: |
| 28 |
rm -f -r $$(pwd)/debian/tmp |
| 29 |
mkdir $$(pwd)/debian/tmp |
| 30 |
mkdir $$(pwd)/debian/tmp/usr |
| 31 |
mkdir $$(pwd)/debian/tmp/usr/lib |
| 32 |
mkdir $$(pwd)/debian/tmp/usr/include |
| 33 |
mkdir $$(pwd)/debian/tmp/usr/include/azureiot |
| 34 |
cp $$(pwd)/obj-*/*.a $$(pwd)/debian/tmp/usr/lib/ |
| 35 |
cp $$(pwd)/inc/azure_uamqp_c/* $$(pwd)/debian/tmp/usr/include/azureiot |