-DRIVERFILES += sysfsgpio.c
-endif
-
-noinst_HEADERS = \
- bitbang.h \
- bitq.h \
- ftd2xx_common.h \
- libusb0_common.h \
- libusb1_common.h \
- libusb_common.h \
- minidriver_imp.h \
- mpsse.h \
- rlink.h \
- rlink_dtc_cmd.h \
- rlink_ep1_cmd.h \
- rlink_st7.h \
- usb_common.h \
- versaloon/usbtoxxx/usbtoxxx.h \
- versaloon/usbtoxxx/usbtoxxx_internal.h \
- versaloon/versaloon.h \
- versaloon/versaloon_include.h \
- versaloon/versaloon_internal.h
-
-MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
+DRIVERFILES += %D%/sysfsgpio.c
+endif
+if XLNX_PCIE_XVC
+DRIVERFILES += %D%/xlnx-pcie-xvc.c
+endif
+if BCM2835GPIO
+DRIVERFILES += %D%/bcm2835gpio.c
+endif
+if OPENJTAG
+DRIVERFILES += %D%/openjtag.c
+endif
+if CMSIS_DAP
+DRIVERFILES += %D%/cmsis_dap_usb.c
+endif
+if IMX_GPIO
+DRIVERFILES += %D%/imx_gpio.c
+endif
+if KITPROG
+DRIVERFILES += %D%/kitprog.c
+endif
+if XDS110
+DRIVERFILES += %D%/xds110.c
+endif
+
+DRIVERHEADERS = \
+ %D%/bitbang.h \
+ %D%/bitq.h \
+ %D%/jtag_usb_common.h \
+ %D%/libusb_helper.h \
+ %D%/minidriver_imp.h \
+ %D%/mpsse.h \
+ %D%/rlink.h \
+ %D%/rlink_dtc_cmd.h \
+ %D%/rlink_ep1_cmd.h \
+ %D%/rlink_st7.h \
+ %D%/usb_common.h \
+ %D%/versaloon/usbtoxxx/usbtoxxx.h \
+ %D%/versaloon/usbtoxxx/usbtoxxx_internal.h \
+ %D%/versaloon/versaloon.h \
+ %D%/versaloon/versaloon_include.h \
+ %D%/versaloon/versaloon_internal.h