2 openocd_SOURCES = openocd.c
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)
9 # the library search path.
10 openocd_LDFLAGS = $(all_libraries)
11 SUBDIRS = helper jtag xsvf target server flash pld
14 MINGWLDADD = -lwsock32
37 FTD2XXLDADD = @WITH_FTD2XX@/FTD2XX.lib
39 FTD2XXLDADD = -lftd2xx
42 FTD2XXLDADD = -lftd2xx
46 FTD2XXLIB = $(FTD2XXLDADD)
49 FTD2XXLIB = $(FTD2XXLDADD)
55 openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a \
56 $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
57 $(top_builddir)/src/helper/libhelper.a \
58 $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
59 $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
60 $(top_builddir)/src/pld/libpld.a \
61 $(FTDI2232LIB) $(FTD2XXLIB) $(MINGWLDADD) $(LIBUSB)