- reworked presto.c to allow use of either FTD2XX or libftdi (libftdi not functional...
[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/helper $(FTD2XXINC) $(all_includes)
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 FT2232_LIBFTDI
29 FT2232FILES = ft2232.c
30 else
31 if FT2232_FTD2XX
32 FT2232FILES = ft2232.c
33 else
34 FT2232FILES =
35 endif
36 endif
37
38 if AMTJTAGACCEL
39 AMTJTAGACCELFILES = amt_jtagaccel.c
40 else
41 AMTJTAGACCELFILES =
42 endif
43
44 if EP93XX
45 EP93XXFILES = ep93xx.c
46 else
47 EP93XXFILES =
48 endif
49
50 if AT91RM9200
51 AT91RM9200FILES = at91rm9200.c
52 else
53 AT91RM9200FILES =
54 endif
55
56 if GW16012
57 GW16012FILES = gw16012.c
58 else
59 GW16012FILES =
60 endif
61
62 if BITQ
63 BITQFILES = bitq.c
64 else
65 BITQFILES =
66 endif
67
68 if PRESTO_LIBFTDI
69 PRESTOFILES = presto.c
70 else
71 if PRESTO_FTD2XX
72 PRESTOFILES = presto.c
73 endif
74 PRESTOFILES =
75 endif
76
77 if USBPROG
78 USBPROGFILES = usbprog.c
79 else
80 USBPROGFILES =
81 endif
82
83 libjtag_a_SOURCES = jtag.c $(BITBANGFILES) $(PARPORTFILES) $(FT2232FILES) $(AMTJTAGACCELFILES) $(EP93XXFILES) \
84         $(AT91RM9200FILES) $(GW16012FILES) $(BITQFILES) $(PRESTOFILES) $(USBPROGFILES)
85
86 noinst_HEADERS = bitbang.h jtag.h