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