1f04f0172e42c19b0316deeeaa4e4000d11a13fa
[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
55 DRIVERFILES =
56 else
57 DRIVERFILES = jtag_driver.c
58 endif
59
60 if AT91RM9200
61 AT91RM9200FILES = at91rm9200.c
62 else
63 AT91RM9200FILES =
64 endif
65
66 if GW16012
67 GW16012FILES = gw16012.c
68 else
69 GW16012FILES =
70 endif
71
72 if BITQ
73 BITQFILES = bitq.c
74 else
75 BITQFILES =
76 endif
77
78 if PRESTO_LIBFTDI
79 PRESTOFILES = presto.c
80 else
81 if PRESTO_FTD2XX
82 PRESTOFILES = presto.c
83 else
84 PRESTOFILES =
85 endif
86 endif
87
88 if USBPROG
89 USBPROGFILES = usbprog.c
90 else
91 USBPROGFILES =
92 endif
93
94 if JLINK
95 JLINKFILES = jlink.c
96 else
97 JLINKFILES =
98 endif
99
100 if RLINK
101 RLINKFILES = rlink/rlink.c rlink/rlink_speed_table.c
102 else
103 RLINKFILES =
104 endif
105
106 if VSLLINK
107 VSLLINKFILES = vsllink.c
108 else
109 VSLLINKFILES =
110 endif
111
112 if ARMJTAGEW
113 ARMJTAGEWFILES = arm-jtag-ew.c
114 else
115 ARMJTAGEWFILES =
116 endif
117
118 libjtag_la_SOURCES = \
119         jtag.c \
120         $(DRIVERFILES) \
121         $(BITBANGFILES) \
122         $(PARPORTFILES) \
123         $(DUMMYFILES) \
124         $(FT2232FILES) \
125         $(AMTJTAGACCELFILES) \
126         $(EP93XXFILES) \
127         $(AT91RM9200FILES) \
128         $(GW16012FILES) \
129         $(BITQFILES) \
130         $(PRESTOFILES) \
131         $(USBPROGFILES) \
132         $(ECOSBOARDFILES) \
133         $(JLINKFILES) \
134         $(RLINKFILES) \
135         $(VSLLINKFILES) \
136         $(ARMJTAGEWFILES)
137
138 noinst_HEADERS = \
139         minidriver.h \
140         bitbang.h \
141         jtag.h \
142         bitq.h \
143         rlink/dtc_cmd.h \
144         rlink/ep1_cmd.h \
145         rlink/rlink.h \
146         rlink/st7.h
147
148 MAINTAINERCLEANFILES = Makefile.in