11 lib_LTLIBRARIES = libopenocd.la
12 bin_PROGRAMS = openocd
15 MAINFILE = ecosboard.c
20 openocd_SOURCES = $(MAINFILE)
21 openocd_LDADD = libopenocd.la -ljim
23 libopenocd_la_SOURCES = \
33 # set the include path found by configure
38 libopenocd_la_CPPFLAGS = -DPKGBLDDATE=\"`date +%F-%R`\"
40 # banner output includes RELSTR appended to $VERSION from the configure script
41 # guess-rev.sh returns either a repository version ID or "-snapshot"
43 libopenocd_la_CPPFLAGS += -DRELSTR=\"\"
45 libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
47 libopenocd_la_CPPFLAGS += -DGITVERSION=\"`cd $(top_srcdir) && git describe`\"
49 # add default CPPFLAGS
50 libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)
52 # the library search path.
53 libopenocd_la_LDFLAGS = $(all_libraries)
62 FTDI2232LIB = -lftdi -lusb
64 if USB_BLASTER_LIBFTDI
65 FTDI2232LIB = -lftdi -lusb
68 FTDI2232LIB = -lftdi -lusb
93 libopenocd_la_LIBADD = \
94 $(top_builddir)/src/xsvf/libxsvf.la \
95 $(top_builddir)/src/svf/libsvf.la \
96 $(top_builddir)/src/pld/libpld.la \
97 $(top_builddir)/src/jtag/libjtag.la \
98 $(top_builddir)/src/flash/libflash.la \
99 $(top_builddir)/src/target/libtarget.la \
100 $(top_builddir)/src/server/libserver.la \
101 $(top_builddir)/src/helper/libhelper.la \
102 $(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB)
105 $(srcdir)/helper/startup.tcl \
106 $(srcdir)/jtag/startup.tcl \
107 $(srcdir)/target/startup.tcl \
108 $(srcdir)/flash/startup.tcl \
109 $(srcdir)/server/startup.tcl
111 EXTRA_DIST = $(STARTUP_TCL_SRCS)
113 BUILT_SOURCES = startup.tcl
115 startup.tcl: $(STARTUP_TCL_SRCS)
118 BIN2C = $(top_builddir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
120 # Convert .tcl to cfile
121 startup_tcl.c: startup.tcl $(BIN2C)
122 $(BIN2C) openocd_startup_tcl < $< > $@ || rm -f $@
124 # add startup_tcl.c to make clean list
125 CLEANFILES = startup.tcl startup_tcl.c
128 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
130 # The "quick" target builds executables & reinstalls the executables
131 # Primary use: developer types to quicken the edit/compile/debug
132 # cycle. by not requiring a "full build and full install". Note the
133 # assumption is: You are only rebuilding the EXE.... and everything
134 # else is/was previously installed.
136 # use at your own risk
137 quick: all install-binPROGRAMS