cmsis-dap: add initial cmsis-dap support
[openocd.git] / src / jtag / drivers / Makefile.am
1 include $(top_srcdir)/common.mk
2
3 noinst_LTLIBRARIES = libocdjtagdrivers.la
4 libocdjtagdrivers_la_LIBADD =
5
6 libocdjtagdrivers_la_SOURCES = \
7         $(DRIVERFILES)
8
9 libocdjtagdrivers_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS) \
10         $(LIBUSB0_CFLAGS) $(HIDAPI_CFLAGS)
11
12 ULINK_FIRMWARE = $(srcdir)/OpenULINK
13
14 EXTRA_DIST = $(ULINK_FIRMWARE)
15
16 DRIVERFILES =
17 SUBDIRS=
18
19 # Standard Driver: common files
20 DRIVERFILES += driver.c
21
22 if USE_LIBUSB1
23 DRIVERFILES += libusb1_common.c
24 endif
25
26 if USE_LIBUSB0
27 DRIVERFILES += usb_common.c
28 if !USE_LIBUSB1
29 DRIVERFILES += libusb0_common.c
30 endif
31 endif
32
33 if BITBANG
34 DRIVERFILES += bitbang.c
35 endif
36 if PARPORT
37 DRIVERFILES += parport.c
38 endif
39 if DUMMY
40 DRIVERFILES += dummy.c
41 endif
42 if FT2232_DRIVER
43 DRIVERFILES += ft2232.c
44 endif
45 if FTDI
46 DRIVERFILES += ftdi.c mpsse.c
47 endif
48 if JTAG_VPI
49 DRIVERFILES += jtag_vpi.c
50 endif
51 if USB_BLASTER_DRIVER
52 SUBDIRS += usb_blaster
53 libocdjtagdrivers_la_LIBADD += $(top_builddir)/src/jtag/drivers/usb_blaster/libocdusbblaster.la
54 endif
55 if AMTJTAGACCEL
56 DRIVERFILES += amt_jtagaccel.c
57 endif
58 if EP93XX
59 DRIVERFILES += ep93xx.c
60 endif
61 if AT91RM9200
62 DRIVERFILES += at91rm9200.c
63 endif
64 if GW16012
65 DRIVERFILES += gw16012.c
66 endif
67 if BITQ
68 DRIVERFILES += bitq.c
69 endif
70 if PRESTO_DRIVER
71 DRIVERFILES += presto.c
72 endif
73 if USBPROG
74 DRIVERFILES += usbprog.c
75 endif
76 if JLINK
77 DRIVERFILES += jlink.c
78 endif
79 if RLINK
80 DRIVERFILES += rlink.c rlink_speed_table.c
81 endif
82 if ULINK
83 DRIVERFILES += ulink.c
84 ulinkdir = $(pkgdatadir)/OpenULINK
85 dist_ulink_DATA = $(ULINK_FIRMWARE)/ulink_firmware.hex
86 endif
87 if VSLLINK
88 DRIVERFILES += versaloon/usbtoxxx/usbtogpio.c
89 DRIVERFILES += versaloon/usbtoxxx/usbtojtagraw.c
90 DRIVERFILES += versaloon/usbtoxxx/usbtoswd.c
91 DRIVERFILES += versaloon/usbtoxxx/usbtopwr.c
92 DRIVERFILES += versaloon/usbtoxxx/usbtoxxx.c
93 DRIVERFILES += versaloon/versaloon.c
94 DRIVERFILES += vsllink.c
95 endif
96 if ARMJTAGEW
97 DRIVERFILES += arm-jtag-ew.c
98 endif
99 if BUSPIRATE
100 DRIVERFILES += buspirate.c
101 endif
102 if REMOTE_BITBANG
103 DRIVERFILES += remote_bitbang.c
104 endif
105 if HLADAPTER
106 DRIVERFILES += stlink_usb.c
107 DRIVERFILES += ti_icdi_usb.c
108 endif
109 if OSBDM
110 DRIVERFILES += osbdm.c
111 endif
112 if OPENDOUS
113 DRIVERFILES += opendous.c
114 endif
115 if SYSFSGPIO
116 DRIVERFILES += sysfsgpio.c
117 endif
118 if BCM2835GPIO
119 DRIVERFILES += bcm2835gpio.c
120 endif
121
122 if OPENJTAG
123 DRIVERFILES += openjtag.c
124 endif
125
126 if CMSIS_DAP
127 DRIVERFILES += cmsis_dap_usb.c
128 endif
129
130 noinst_HEADERS = \
131         bitbang.h \
132         bitq.h \
133         ftd2xx_common.h \
134         libusb0_common.h \
135         libusb1_common.h \
136         libusb_common.h \
137         minidriver_imp.h \
138         mpsse.h \
139         rlink.h \
140         rlink_dtc_cmd.h \
141         rlink_ep1_cmd.h \
142         rlink_st7.h \
143         usb_common.h \
144         versaloon/usbtoxxx/usbtoxxx.h \
145         versaloon/usbtoxxx/usbtoxxx_internal.h \
146         versaloon/versaloon.h \
147         versaloon/versaloon_include.h \
148         versaloon/versaloon_internal.h
149
150 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in