README* refactoring
[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 ULINK_FIRMWARE = $(srcdir)/OpenULINK
10
11 EXTRA_DIST = $(ULINK_FIRMWARE)
12
13 DRIVERFILES =
14 SUBDIRS=
15
16 # Standard Driver: common files
17 DRIVERFILES += driver.c
18
19 if USE_LIBUSB1
20 DRIVERFILES += libusb1_common.c
21 endif
22
23 if USE_LIBUSB0
24 DRIVERFILES += usb_common.c
25 if !USE_LIBUSB1
26 DRIVERFILES += libusb0_common.c
27 endif
28 endif
29
30 if BITBANG
31 DRIVERFILES += bitbang.c
32 endif
33 if PARPORT
34 DRIVERFILES += parport.c
35 endif
36 if DUMMY
37 DRIVERFILES += dummy.c
38 endif
39 if FT2232_DRIVER
40 DRIVERFILES += ft2232.c
41 endif
42 if FTDI_DRIVER
43 DRIVERFILES += ftdi.c mpsse.c
44 endif
45 if JTAG_VPI
46 DRIVERFILES += jtag_vpi.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 ulinkdir = $(pkgdatadir)/OpenULINK
82 dist_ulink_DATA = $(ULINK_FIRMWARE)/ulink_firmware.hex
83 endif
84 if VSLLINK
85 DRIVERFILES += versaloon/usbtoxxx/usbtogpio.c
86 DRIVERFILES += versaloon/usbtoxxx/usbtojtagraw.c
87 DRIVERFILES += versaloon/usbtoxxx/usbtoswd.c
88 DRIVERFILES += versaloon/usbtoxxx/usbtopwr.c
89 DRIVERFILES += versaloon/usbtoxxx/usbtoxxx.c
90 DRIVERFILES += versaloon/versaloon.c
91 DRIVERFILES += vsllink.c
92 endif
93 if ARMJTAGEW
94 DRIVERFILES += arm-jtag-ew.c
95 endif
96 if BUSPIRATE
97 DRIVERFILES += buspirate.c
98 endif
99 if REMOTE_BITBANG
100 DRIVERFILES += remote_bitbang.c
101 endif
102 if HLADAPTER
103 DRIVERFILES += stlink_usb.c
104 DRIVERFILES += ti_icdi_usb.c
105 endif
106 if OSBDM
107 DRIVERFILES += osbdm.c
108 endif
109 if OPENDOUS
110 DRIVERFILES += opendous.c
111 endif
112 if SYSFSGPIO
113 DRIVERFILES += sysfsgpio.c
114 endif
115 if BCM2835GPIO
116 DRIVERFILES += bcm2835gpio.c
117 endif
118
119 if OPENJTAG
120 DRIVERFILES += openjtag.c
121 endif
122
123 noinst_HEADERS = \
124         bitbang.h \
125         bitq.h \
126         ftd2xx_common.h \
127         libusb0_common.h \
128         libusb1_common.h \
129         libusb_common.h \
130         minidriver_imp.h \
131         mpsse.h \
132         rlink.h \
133         rlink_dtc_cmd.h \
134         rlink_ep1_cmd.h \
135         rlink_st7.h \
136         usb_common.h \
137         versaloon/usbtoxxx/usbtoxxx.h \
138         versaloon/usbtoxxx/usbtoxxx_internal.h \
139         versaloon/versaloon.h \
140         versaloon/versaloon_include.h \
141         versaloon/versaloon_internal.h
142
143 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in