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