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