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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
#!/usr/bin/make -f
# -*- makefile -*-
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PREFIX=/usr
export CFLAGS_POSIX=$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get LDFLAGS)
export V=1
BUILDDIR = $(shell pwd)
SNEK_MOST_WARNINGS = \
-fdebug-prefix-map=$(BUILDDIR)=. \
-Wall \
-Wcast-align \
-Wextra \
-Wpointer-arith \
-Wstrict-prototypes \
-Wmissing-prototypes \
-Wmissing-declarations \
-Wnested-externs \
-Wshadow
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
override_dh_auto_build-indep:
dh_auto_build -- "SNEK_MOST_WARNINGS=$(SNEK_MOST_WARNINGS)" SNEK_EV3=0
override_dh_auto_test-indep:
dh_auto_test -- SNEK_EV3=0
override_dh_auto_install-indep:
dh_auto_install -- SNEK_EV3=0
override_dh_auto_build-arch:
dh_auto_build -- -C ports/posix SUBDIRS= FIRMWARE= "SNEK_MOST_WARNINGS=$(SNEK_MOST_WARNINGS)"
override_dh_auto_test-arch:
dh_auto_test -- -C test FIRMWARE= SNEK_RISCV= SNEK_ARM=
override_dh_auto_install-arch:
dh_auto_install -- -C ports/posix
|