1 SUBDIRS = helper jtag xsvf svf target server flash pld
3 lib_LTLIBRARIES = libopenocd.la
12 openocd_SOURCES = $(MAINFILE)
13 openocd_LDADD = libopenocd.la
15 libopenocd_la_SOURCES = openocd.c
17 # set the include path found by configure
20 -I$(top_srcdir)/src/helper \
21 -I$(top_srcdir)/src/jtag \
22 -I$(top_srcdir)/src/target \
23 -I$(top_srcdir)/src/xsvf \
24 -I$(top_srcdir)/src/svf \
25 -I$(top_srcdir)/src/server \
26 -I$(top_srcdir)/src/flash \
27 -I$(top_srcdir)/src/pld
29 libopenocd_la_CPPFLAGS = -DPKGBLDDATE=\"`date +%F-%R`\"
32 libopenocd_la_CPPFLAGS += -DRELSTR=\"Release\" -DPKGBLDREV=\"\"
34 libopenocd_la_CPPFLAGS += -DRELSTR=\"svn:\" -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
37 # add default CPPFLAGS
38 libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)
40 # the library search path.
41 libopenocd_la_LDFLAGS = $(all_libraries)
44 MINGWLDADD = -lwsock32
50 FTDI2232LIB = -lftdi -lusb
53 FTDI2232LIB = -lftdi -lusb
77 libopenocd_la_LIBADD = \
78 $(top_builddir)/src/xsvf/libxsvf.la \
79 $(top_builddir)/src/svf/libsvf.la \
80 $(top_builddir)/src/pld/libpld.la \
81 $(top_builddir)/src/jtag/libjtag.la \
82 $(top_builddir)/src/flash/libflash.la \
83 $(top_builddir)/src/target/libtarget.la \
84 $(top_builddir)/src/server/libserver.la \
85 $(top_builddir)/src/helper/libhelper.la \
86 $(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB)
89 libopenocd_la_LIBADD += -lmicrohttpd
92 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
94 # The "quick" target builds executables & reinstalls the executables
95 # Primary use: developer types to quicken the edit/compile/debug
96 # cycle. by not requiring a "full build and full install". Note the
97 # assumption is: You are only rebuilding the EXE.... and everything
98 # else is/was previously installed.
100 # use at your own risk
101 quick: all install-binPROGRAMS