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