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 # pass path to prefix path
11 -DPKGLIBDIR=\"$(pkglibdir)\" \
12 -DPKGBLDDATE=\"`date +%F-%R`\" \
13 -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh`\" \
16 # the library search path.
17 openocd_LDFLAGS = $(all_libraries)
18 SUBDIRS = helper jtag xsvf target server flash pld
21 MINGWLDADD = -lwsock32
44 FTD2XXLDADD = @WITH_FTD2XX@/FTD2XX.lib
46 FTD2XXLDADD = -lftd2xx
49 FTD2XXLDADD = -lftd2xx
53 FTD2XXLIB = $(FTD2XXLDADD)
56 FTD2XXLIB = $(FTD2XXLDADD)
62 openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a \
63 $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
64 $(top_builddir)/src/helper/libhelper.a \
65 $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
66 $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
67 $(top_builddir)/src/pld/libpld.a \
68 $(FTDI2232LIB) $(FTD2XXLIB) $(MINGWLDADD) $(LIBUSB)