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 = \
19 # set the include path found by configure
22 -I$(top_srcdir)/src/helper \
23 -I$(top_srcdir)/src/jtag \
24 -I$(top_srcdir)/src/target \
25 -I$(top_srcdir)/src/xsvf \
26 -I$(top_srcdir)/src/svf \
27 -I$(top_srcdir)/src/server \
28 -I$(top_srcdir)/src/flash \
29 -I$(top_srcdir)/src/pld
31 libopenocd_la_CPPFLAGS = -DPKGBLDDATE=\"`date +%F-%R`\"
33 # banner output includes RELSTR appended to $VERSION from the configure script
34 # guess-rev.sh returns either a repository version ID or "-snapshot"
36 libopenocd_la_CPPFLAGS += -DRELSTR=\"\"
38 libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
41 # add default CPPFLAGS
42 libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)
44 # the library search path.
45 libopenocd_la_LDFLAGS = $(all_libraries)
54 FTDI2232LIB = -lftdi -lusb
57 FTDI2232LIB = -lftdi -lusb
81 libopenocd_la_LIBADD = \
82 $(top_builddir)/src/xsvf/libxsvf.la \
83 $(top_builddir)/src/svf/libsvf.la \
84 $(top_builddir)/src/pld/libpld.la \
85 $(top_builddir)/src/jtag/libjtag.la \
86 $(top_builddir)/src/flash/libflash.la \
87 $(top_builddir)/src/target/libtarget.la \
88 $(top_builddir)/src/server/libserver.la \
89 $(top_builddir)/src/helper/libhelper.la \
90 $(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB)
93 libopenocd_la_LIBADD += -lmicrohttpd
96 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
98 # The "quick" target builds executables & reinstalls the executables
99 # Primary use: developer types to quicken the edit/compile/debug
100 # cycle. by not requiring a "full build and full install". Note the
101 # assumption is: You are only rebuilding the EXE.... and everything
102 # else is/was previously installed.
104 # use at your own risk
105 quick: all install-binPROGRAMS