- rlink interface support from Lou Deluxe <lou.openocd012@fixit.nospammail.net>
[openocd.git] / src / jtag / Makefile.am
1
2 if FTD2XXDIR
3 if IS_MINGW
4 FTD2XXINC = -I@WITH_FTD2XX@
5 else
6 FTD2XXINC = -I@WITH_FTD2XX@/
7 endif
8 else
9 FTD2XXINC =
10 endif
11
12 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/helper $(FTD2XXINC) $(all_includes) -I$(top_srcdir)/src/target 
13 METASOURCES = AUTO
14 noinst_LIBRARIES = libjtag.a
15
16 if BITBANG
17 BITBANGFILES = bitbang.c
18 else
19 BITBANGFILES =
20 endif
21
22 if PARPORT
23 PARPORTFILES = parport.c
24 else
25 PARPORTFILES =
26 endif
27
28 if DUMMY
29 DUMMYFILES = dummy.c
30 else
31 DUMMYFILES =
32 endif
33
34 if FT2232_LIBFTDI
35 FT2232FILES = ft2232.c
36 else
37 if FT2232_FTD2XX
38 FT2232FILES = ft2232.c
39 else
40 FT2232FILES =
41 endif
42 endif
43
44 if AMTJTAGACCEL
45 AMTJTAGACCELFILES = amt_jtagaccel.c
46 else
47 AMTJTAGACCELFILES =
48 endif
49
50 if EP93XX
51 EP93XXFILES = ep93xx.c
52 else
53 EP93XXFILES =
54 endif
55
56 if ECOSBOARD
57 ECOSBOARDFILES = zy1000.c
58 else
59 ECOSBOARDFILES =
60 endif
61
62 if AT91RM9200
63 AT91RM9200FILES = at91rm9200.c
64 else
65 AT91RM9200FILES =
66 endif
67
68 if GW16012
69 GW16012FILES = gw16012.c
70 else
71 GW16012FILES =
72 endif
73
74 if BITQ
75 BITQFILES = bitq.c
76 else
77 BITQFILES =
78 endif
79
80 if PRESTO_LIBFTDI
81 PRESTOFILES = presto.c
82 else
83 if PRESTO_FTD2XX
84 PRESTOFILES = presto.c
85 else
86 PRESTOFILES =
87 endif
88 endif
89
90 if USBPROG
91 USBPROGFILES = usbprog.c
92 else
93 USBPROGFILES =
94 endif
95
96 if JLINK
97 JLINKFILES = jlink.c
98 else
99 JLINKFILES =
100 endif
101
102 if RLINK
103 RLINKFILES = rlink/rlink.c rlink/rlink_speed_table.c
104 else
105 RLINKFILES =
106 endif
107
108 libjtag_a_SOURCES = jtag.c $(BITBANGFILES) $(PARPORTFILES) $(DUMMYFILES) $(FT2232FILES) $(AMTJTAGACCELFILES) $(EP93XXFILES) \
109         $(AT91RM9200FILES) $(GW16012FILES) $(BITQFILES) $(PRESTOFILES) $(USBPROGFILES) $(ECOSBOARDFILES) $(JLINKFILES) $(RLINKFILES)
110
111 noinst_HEADERS = bitbang.h jtag.h