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 = \
24 # set the include path found by configure
27 -I$(top_srcdir)/src/helper \
28 -I$(top_srcdir)/src/jtag \
29 -I$(top_srcdir)/src/target \
30 -I$(top_srcdir)/src/xsvf \
31 -I$(top_srcdir)/src/svf \
32 -I$(top_srcdir)/src/server \
33 -I$(top_srcdir)/src/flash \
34 -I$(top_srcdir)/src/pld
36 libopenocd_la_CPPFLAGS = -DPKGBLDDATE=\"`date +%F-%R`\"
38 # banner output includes RELSTR appended to $VERSION from the configure script
39 # guess-rev.sh returns either a repository version ID or "-snapshot"
41 libopenocd_la_CPPFLAGS += -DRELSTR=\"\"
43 libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
46 # add default CPPFLAGS
47 libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)
49 # the library search path.
50 libopenocd_la_LDFLAGS = $(all_libraries)
59 FTDI2232LIB = -lftdi -lusb
62 FTDI2232LIB = -lftdi -lusb
86 libopenocd_la_LIBADD = \
87 $(top_builddir)/src/xsvf/libxsvf.la \
88 $(top_builddir)/src/svf/libsvf.la \
89 $(top_builddir)/src/pld/libpld.la \
90 $(top_builddir)/src/jtag/libjtag.la \
91 $(top_builddir)/src/flash/libflash.la \
92 $(top_builddir)/src/target/libtarget.la \
93 $(top_builddir)/src/server/libserver.la \
94 $(top_builddir)/src/helper/libhelper.la \
95 $(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB)
98 libopenocd_la_LIBADD += -lmicrohttpd
102 $(srcdir)/helper/startup.tcl
104 EXTRA_DIST = $(STARTUP_TCL_SRCS)
106 BUILT_SOURCES = startup.tcl
108 startup.tcl: $(STARTUP_TCL_SRCS)
111 BIN2C = $(builddir)/helper/bin2char$(EXEEXT_FOR_BUILD)
113 # Convert .tcl to cfile
114 startup_tcl.c: startup.tcl $(BIN2C)
115 $(BIN2C) startup_tcl < $< > $@ || rm -f $@
117 # add startup_tcl.c to make clean list
118 CLEANFILES = startup.tcl startup_tcl.c
121 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
123 # The "quick" target builds executables & reinstalls the executables
124 # Primary use: developer types to quicken the edit/compile/debug
125 # cycle. by not requiring a "full build and full install". Note the
126 # assumption is: You are only rebuilding the EXE.... and everything
127 # else is/was previously installed.
129 # use at your own risk
130 quick: all install-binPROGRAMS