| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 4 | export BUILD_DIR=debian/build |
| 5 | |
| 6 | %: |
| 7 | dh $@ --builddirectory=$(BUILD_DIR) |
| 8 | |
| 9 | override_dh_auto_configure: |
| 10 | # -fPIC is needed, because we want to be able to link this library into |
| 11 | # a shared object |
| 12 | dh_auto_configure --builddirectory=$(BUILD_DIR) -- \ |
| 13 | -DBUILD_SHARED_LIBS=ON \ |
| 14 | -DNAMESPACE=martchus |
| 15 | |
| 16 | override_dh_auto_test: |
| 17 | $(MAKE) -C $(BUILD_DIR) check |