22bc89bbcad443556a74ad21ddb5685ffd017d81
[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 ocddatadir = $(pkglibdir)
10 nobase_dist_ocddata_DATA =
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_DRIVER
46 DRIVERFILES += ftdi.c mpsse.c
47 endif
48 if USB_BLASTER_DRIVER
49 SUBDIRS += usb_blaster
50 libocdjtagdrivers_la_LIBADD += $(top_builddir)/src/jtag/drivers/usb_blaster/libocdusbblaster.la
51 endif
52 if AMTJTAGACCEL
53 DRIVERFILES += amt_jtagaccel.c
54 endif
55 if EP93XX
56 DRIVERFILES += ep93xx.c
57 endif
58 if AT91RM9200
59 DRIVERFILES += at91rm9200.c
60 endif
61 if GW16012
62 DRIVERFILES += gw16012.c
63 endif
64 if BITQ
65 DRIVERFILES += bitq.c
66 endif
67 if PRESTO_DRIVER
68 DRIVERFILES += presto.c
69 endif
70 if USBPROG
71 DRIVERFILES += usbprog.c
72 endif
73 if JLINK
74 DRIVERFILES += jlink.c
75 endif
76 if RLINK
77 DRIVERFILES += rlink.c rlink_speed_table.c
78 endif
79 if ULINK
80 DRIVERFILES += ulink.c
81 nobase_dist_ocddata_DATA += $(ULINK_FIRMWARE)/ulink_firmware.hex
82 endif
83 if VSLLINK
84 DRIVERFILES += versaloon/usbtoxxx/usbtogpio.c
85 DRIVERFILES += versaloon/usbtoxxx/usbtojtagraw.c
86 DRIVERFILES += versaloon/usbtoxxx/usbtoswd.c
87 DRIVERFILES += versaloon/usbtoxxx/usbtopwr.c
88 DRIVERFILES += versaloon/usbtoxxx/usbtoxxx.c
89 DRIVERFILES += versaloon/versaloon.c
90 DRIVERFILES += vsllink.c
91 endif
92 if ARMJTAGEW
93 DRIVERFILES += arm-jtag-ew.c
94 endif
95 if BUSPIRATE
96 DRIVERFILES += buspirate.c
97 endif
98 if REMOTE_BITBANG
99 DRIVERFILES += remote_bitbang.c
100 endif
101 if HLADAPTER
102 DRIVERFILES += stlink_usb.c
103 DRIVERFILES += ti_icdi_usb.c
104 endif
105 if OSBDM
106 DRIVERFILES += osbdm.c
107 endif
108 if OPENDOUS
109 DRIVERFILES += opendous.c
110 endif
111 if SYSFSGPIO
112 DRIVERFILES += sysfsgpio.c
113 endif
114 if BCM2835GPIO
115 DRIVERFILES += bcm2835gpio.c
116 endif
117
118 if OPENJTAG
119 DRIVERFILES += openjtag.c
120 endif
121
122 noinst_HEADERS = \
123         bitbang.h \
124         bitq.h \
125         ftd2xx_common.h \
126         libusb0_common.h \
127         libusb1_common.h \
128         libusb_common.h \
129         minidriver_imp.h \
130         mpsse.h \
131         rlink.h \
132         rlink_dtc_cmd.h \
133         rlink_ep1_cmd.h \
134         rlink_st7.h \
135         usb_common.h \
136         versaloon/usbtoxxx/usbtoxxx.h \
137         versaloon/usbtoxxx/usbtoxxx_internal.h \
138         versaloon/versaloon.h \
139         versaloon/versaloon_include.h \
140         versaloon/versaloon_internal.h
141
142 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in