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