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