Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
rules 1.38 KiB
Newer Older
#!/usr/bin/make -f

DEB_MAKE_BUILD_TARGET := all
Robert Nelson's avatar
Robert Nelson committed
DEB_CONFIGURE_EXTRA_FLAGS := \
	--disable-doxygen-pdf \
	--disable-doxygen-html

DEB_CONFIGURE_EXTRA_FLAGS += \
	--disable-werror \
	--disable-internal-jimtcl \
	--disable-internal-libjaylink \
	\
	--enable-arm-jtag-ew \
	--enable-at91rm9200 \
	--enable-bcm2835gpio \
	--enable-buspirate \
	--enable-dummy \
	--enable-ep93xx \
	--enable-jlink \
	--enable-opendous \
	--enable-osbdm \
	--enable-remote-bitbang \
	--enable-rlink \
	--enable-rshim \
	--enable-sysfsgpio \
	--enable-ulink \
	--enable-usbprog \
	--enable-vsllink \
Robert Nelson's avatar
Robert Nelson committed
	--enable-dmem \

configure_flags_parport := \
	--enable-parport \
	--enable-parport_ppdev

ifeq ($(DEB_HOST_ARCH_OS),linux)
# Some adapters are only supported on Linux.
DEB_CONFIGURE_EXTRA_FLAGS += $(configure_flags_parport)
DEB_CONFIGURE_EXTRA_FLAGS += --enable-gw16012 \
			     --enable-amtjtagaccel \
			     --enable-ftdi \
			     --enable-stlink \
			     --enable-ti-icdi \
			     $(configure_flags_parport)
endif

ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
# Parport drivers only work on Linux and kFreeBSD, conditionally add them here.
DEB_CONFIGURE_EXTRA_FLAGS += $(configure_flags_parport) \
			     --enable-ftdi \
			     --enable-stlink \
			     --enable-ti-icdi
endif

override_dh_auto_build:
	dh_auto_build -- $(DEB_MAKE_BUILD_TARGET)

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)

%:
	dh $@