Move minidummy source file, as was supposed to happen in last commit.
[openocd.git] / src / jtag / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/helper \
3         -I$(top_srcdir)/src/target
4
5 METASOURCES = AUTO
6 noinst_LTLIBRARIES = libjtag.la
7
8 if BITBANG
9 BITBANGFILES = bitbang.c
10 else
11 BITBANGFILES =
12 endif
13
14 if PARPORT
15 PARPORTFILES = parport.c
16 else
17 PARPORTFILES =
18 endif
19
20 if DUMMY
21 DUMMYFILES = dummy.c
22 else
23 DUMMYFILES =
24 endif
25
26 if FT2232_LIBFTDI
27 FT2232FILES = ft2232.c
28 else
29 if FT2232_FTD2XX
30 FT2232FILES = ft2232.c
31 else
32 FT2232FILES =
33 endif
34 endif
35
36 if AMTJTAGACCEL
37 AMTJTAGACCELFILES = amt_jtagaccel.c
38 else
39 AMTJTAGACCELFILES =
40 endif
41
42 if EP93XX
43 EP93XXFILES = ep93xx.c
44 else
45 EP93XXFILES =
46 endif
47
48 if ECOSBOARD
49 ECOSBOARDFILES = zy1000.c
50 else
51 ECOSBOARDFILES =
52 endif
53
54 if MINIDRIVER_DUMMY
55 MINIDUMMYFILES = minidummy/minidummy.c commands.c
56 AM_CPPFLAGS += -I$(srcdir)/minidummy
57 else
58 MINIDUMMYFILES =
59 endif
60
61 if MINIDRIVER
62 DRIVERFILES = $(MINIDUMMYFILES)
63 else
64 DRIVERFILES = jtag_driver.c commands.c
65 endif
66
67 if AT91RM9200
68 AT91RM9200FILES = at91rm9200.c
69 else
70 AT91RM9200FILES =
71 endif
72
73 if GW16012
74 GW16012FILES = gw16012.c
75 else
76 GW16012FILES =
77 endif
78
79 if BITQ
80 BITQFILES = bitq.c
81 else
82 BITQFILES =
83 endif
84
85 if PRESTO_LIBFTDI
86 PRESTOFILES = presto.c
87 else
88 if PRESTO_FTD2XX
89 PRESTOFILES = presto.c
90 else
91 PRESTOFILES =
92 endif
93 endif
94
95 if USBPROG
96 USBPROGFILES = usbprog.c
97 else
98 USBPROGFILES =
99 endif
100
101 if JLINK
102 JLINKFILES = jlink.c
103 else
104 JLINKFILES =
105 endif
106
107 if RLINK
108 RLINKFILES = rlink/rlink.c rlink/rlink_speed_table.c
109 else
110 RLINKFILES =
111 endif
112
113 if VSLLINK
114 VSLLINKFILES = vsllink.c
115 else
116 VSLLINKFILES =
117 endif
118
119 if ARMJTAGEW
120 ARMJTAGEWFILES = arm-jtag-ew.c
121 else
122 ARMJTAGEWFILES =
123 endif
124
125 libjtag_la_SOURCES = \
126         jtag.c \
127         interface.c \
128         $(DRIVERFILES) \
129         $(BITBANGFILES) \
130         $(PARPORTFILES) \
131         $(DUMMYFILES) \
132         $(FT2232FILES) \
133         $(AMTJTAGACCELFILES) \
134         $(EP93XXFILES) \
135         $(AT91RM9200FILES) \
136         $(GW16012FILES) \
137         $(BITQFILES) \
138         $(PRESTOFILES) \
139         $(USBPROGFILES) \
140         $(ECOSBOARDFILES) \
141         $(JLINKFILES) \
142         $(RLINKFILES) \
143         $(VSLLINKFILES) \
144         $(ARMJTAGEWFILES)
145
146 noinst_HEADERS = \
147         interface.h \
148         commands.h \
149         minidriver.h \
150         bitbang.h \
151         jtag.h \
152         bitq.h \
153         rlink/dtc_cmd.h \
154         rlink/ep1_cmd.h \
155         rlink/rlink.h \
156         rlink/st7.h \
157         minidummy/jtag_minidriver.h
158
159 MAINTAINERCLEANFILES = Makefile.in