You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

205 lines
4.3 KiB

  1. noinst_LTLIBRARIES += %D%/libocdjtagdrivers.la
  2. %C%_libocdjtagdrivers_la_LIBADD =
  3. %C%_libocdjtagdrivers_la_SOURCES = \
  4. $(DRIVERFILES) \
  5. $(DRIVERHEADERS)
  6. %C%_libocdjtagdrivers_la_CPPFLAGS = $(AM_CPPFLAGS)
  7. ULINK_FIRMWARE = %D%/OpenULINK
  8. EXTRA_DIST += $(ULINK_FIRMWARE) \
  9. %D%/usb_blaster/README.CheapClone \
  10. %D%/Makefile.rlink \
  11. %D%/rlink_call.m4 \
  12. %D%/rlink_init.m4
  13. DRIVERFILES =
  14. # Standard Driver: common files
  15. DRIVERFILES += %D%/driver.c
  16. DRIVERFILES += %D%/jtag_usb_common.c
  17. if USE_LIBUSB1
  18. DRIVERFILES += %D%/libusb_helper.c
  19. %C%_libocdjtagdrivers_la_CPPFLAGS += $(LIBUSB1_CFLAGS)
  20. %C%_libocdjtagdrivers_la_LIBADD += $(LIBUSB1_LIBS)
  21. endif
  22. if USE_LIBFTDI
  23. %C%_libocdjtagdrivers_la_CPPFLAGS += $(LIBFTDI_CFLAGS)
  24. %C%_libocdjtagdrivers_la_LIBADD += $(LIBFTDI_LIBS)
  25. endif
  26. if USE_LIBGPIOD
  27. %C%_libocdjtagdrivers_la_CPPFLAGS += $(LIBGPIOD_CFLAGS)
  28. %C%_libocdjtagdrivers_la_LIBADD += $(LIBGPIOD_LIBS)
  29. endif
  30. if USE_HIDAPI
  31. %C%_libocdjtagdrivers_la_CPPFLAGS += $(HIDAPI_CFLAGS)
  32. %C%_libocdjtagdrivers_la_LIBADD += $(HIDAPI_LIBS)
  33. endif
  34. if USE_LIBJAYLINK
  35. %C%_libocdjtagdrivers_la_CPPFLAGS += $(LIBJAYLINK_CFLAGS)
  36. %C%_libocdjtagdrivers_la_LIBADD += $(LIBJAYLINK_LIBS)
  37. endif
  38. if JLINK
  39. DRIVERFILES += %D%/jlink.c
  40. if INTERNAL_LIBJAYLINK
  41. SUBDIRS += %D%/libjaylink
  42. DIST_SUBDIRS += %D%/libjaylink
  43. %C%_libocdjtagdrivers_la_LIBADD += %D%/libjaylink/libjaylink/libjaylink.la
  44. %C%_libocdjtagdrivers_la_CPPFLAGS += -I$(builddir)/%D%/libjaylink/libjaylink -I$(srcdir)/%D%/libjaylink
  45. endif
  46. endif
  47. if BITBANG
  48. DRIVERFILES += %D%/bitbang.c
  49. endif
  50. if PARPORT
  51. DRIVERFILES += %D%/parport.c
  52. endif
  53. if DUMMY
  54. DRIVERFILES += %D%/dummy.c
  55. endif
  56. if FTDI
  57. DRIVERFILES += %D%/ftdi.c %D%/mpsse.c
  58. endif
  59. if LINUXGPIOD
  60. DRIVERFILES += %D%/linuxgpiod.c
  61. endif
  62. if JTAG_VPI
  63. DRIVERFILES += %D%/jtag_vpi.c
  64. endif
  65. if JTAG_DPI
  66. DRIVERFILES += %D%/jtag_dpi.c
  67. endif
  68. if USB_BLASTER_DRIVER
  69. %C%_libocdjtagdrivers_la_LIBADD += %D%/usb_blaster/libocdusbblaster.la
  70. include %D%/usb_blaster/Makefile.am
  71. endif
  72. if FT232R
  73. DRIVERFILES += %D%/ft232r.c
  74. endif
  75. if AMTJTAGACCEL
  76. DRIVERFILES += %D%/amt_jtagaccel.c
  77. endif
  78. if EP93XX
  79. DRIVERFILES += %D%/ep93xx.c
  80. endif
  81. if AT91RM9200
  82. DRIVERFILES += %D%/at91rm9200.c
  83. endif
  84. if GW16012
  85. DRIVERFILES += %D%/gw16012.c
  86. endif
  87. if BITQ
  88. DRIVERFILES += %D%/bitq.c
  89. endif
  90. if PRESTO
  91. DRIVERFILES += %D%/presto.c
  92. endif
  93. if USBPROG
  94. DRIVERFILES += %D%/usbprog.c
  95. endif
  96. if RLINK
  97. DRIVERFILES += %D%/rlink.c %D%/rlink_speed_table.c
  98. endif
  99. if ULINK
  100. DRIVERFILES += %D%/ulink.c
  101. ulinkdir = $(pkgdatadir)/OpenULINK
  102. dist_ulink_DATA = $(ULINK_FIRMWARE)/ulink_firmware.hex
  103. %C%_libocdjtagdrivers_la_LIBADD += -lm
  104. endif
  105. if VSLLINK
  106. DRIVERFILES += %D%/versaloon/usbtoxxx/usbtogpio.c
  107. DRIVERFILES += %D%/versaloon/usbtoxxx/usbtojtagraw.c
  108. DRIVERFILES += %D%/versaloon/usbtoxxx/usbtoswd.c
  109. DRIVERFILES += %D%/versaloon/usbtoxxx/usbtopwr.c
  110. DRIVERFILES += %D%/versaloon/usbtoxxx/usbtoxxx.c
  111. DRIVERFILES += %D%/versaloon/versaloon.c
  112. DRIVERFILES += %D%/vsllink.c
  113. endif
  114. if ARMJTAGEW
  115. DRIVERFILES += %D%/arm-jtag-ew.c
  116. endif
  117. if BUSPIRATE
  118. DRIVERFILES += %D%/buspirate.c
  119. endif
  120. if REMOTE_BITBANG
  121. DRIVERFILES += %D%/remote_bitbang.c
  122. endif
  123. if HLADAPTER_STLINK
  124. DRIVERFILES += %D%/stlink_usb.c
  125. endif
  126. if HLADAPTER_ICDI
  127. DRIVERFILES += %D%/ti_icdi_usb.c
  128. endif
  129. if HLADAPTER_NULINK
  130. DRIVERFILES += %D%/nulink_usb.c
  131. endif
  132. if RSHIM
  133. DRIVERFILES += %D%/rshim.c
  134. endif
  135. if OSBDM
  136. DRIVERFILES += %D%/osbdm.c
  137. endif
  138. if OPENDOUS
  139. DRIVERFILES += %D%/opendous.c
  140. endif
  141. if SYSFSGPIO
  142. DRIVERFILES += %D%/sysfsgpio.c
  143. endif
  144. if XLNX_PCIE_XVC
  145. DRIVERFILES += %D%/xlnx-pcie-xvc.c
  146. endif
  147. if BCM2835GPIO
  148. DRIVERFILES += %D%/bcm2835gpio.c
  149. endif
  150. if OPENJTAG
  151. DRIVERFILES += %D%/openjtag.c
  152. endif
  153. if CMSIS_DAP_HID
  154. DRIVERFILES += %D%/cmsis_dap_usb_hid.c
  155. DRIVERFILES += %D%/cmsis_dap.c
  156. endif
  157. if CMSIS_DAP_USB
  158. DRIVERFILES += %D%/cmsis_dap_usb_bulk.c
  159. if !CMSIS_DAP_HID
  160. DRIVERFILES += %D%/cmsis_dap.c
  161. endif
  162. endif
  163. if IMX_GPIO
  164. DRIVERFILES += %D%/imx_gpio.c
  165. endif
  166. if KITPROG
  167. DRIVERFILES += %D%/kitprog.c
  168. endif
  169. if XDS110
  170. DRIVERFILES += %D%/xds110.c
  171. endif
  172. DRIVERHEADERS = \
  173. %D%/bitbang.h \
  174. %D%/bitq.h \
  175. %D%/jtag_usb_common.h \
  176. %D%/libftdi_helper.h \
  177. %D%/libusb_helper.h \
  178. %D%/cmsis_dap.h \
  179. %D%/minidriver_imp.h \
  180. %D%/mpsse.h \
  181. %D%/rlink.h \
  182. %D%/rlink_dtc_cmd.h \
  183. %D%/rlink_ep1_cmd.h \
  184. %D%/rlink_st7.h \
  185. %D%/versaloon/usbtoxxx/usbtoxxx.h \
  186. %D%/versaloon/usbtoxxx/usbtoxxx_internal.h \
  187. %D%/versaloon/versaloon.h \
  188. %D%/versaloon/versaloon_include.h \
  189. %D%/versaloon/versaloon_internal.h