- added support for Asix Presto JTAG interface (thanks to Pavel Chromy and Asix for...
[fw/openocd] / src / Makefile.am
1 bin_PROGRAMS = openocd
2 openocd_SOURCES = openocd.c
3
4 # set the include path found by configure
5 INCLUDES = -I$(top_srcdir)/src/helper \
6         -I$(top_srcdir)/src/jtag -I$(top_srcdir)/src/target -I$(top_srcdir)/src/xsvf -I$(top_srcdir)/src/server \
7         -I$(top_srcdir)/src/flash -I$(top_srcdir)/src/pld $(all_includes)
8
9 # the library search path.
10 openocd_LDFLAGS = $(all_libraries) 
11 SUBDIRS = helper jtag xsvf target server flash pld
12
13 if IS_MINGW
14 MINGWLDADD = -lwsock32
15 else
16 MINGWLDADD =
17 endif
18
19 if FT2232_LIBFTDI
20 FTDI2232LIB = -lftdi
21 else
22 FTDI2232LIB =
23 endif
24
25 if USBPROG
26 LIBUSB = -lusb
27 else
28 LIBUSB =
29 endif
30
31 if IS_WIN32
32 if FTD2XXDIR
33 FTD2XXLDADD = @WITH_FTD2XX@/FTD2XX.lib
34 else
35 FTD2XXLDADD = -lftd2xx
36 endif
37 else
38 FTD2XXLDADD = -lftd2xx 
39 endif
40   
41 if FT2232_FTD2XX
42 FTD2XXLIB = $(FTD2XXLDADD)
43 else
44 if PRESTO
45 FTD2XXLIB = $(FTD2XXLDADD)
46 else
47 FTD2XXLIB =
48 endif
49 endif
50
51 openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a \
52         $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
53         $(top_builddir)/src/helper/libhelper.a \
54         $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
55         $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
56         $(top_builddir)/src/pld/libpld.a \
57         $(FTDI2232LIB) $(FTD2XXLIB) $(MINGWLDADD) $(LIBUSB)