1 noinst_LTLIBRARIES += %D%/libopenocd.la
2 bin_PROGRAMS += %D%/openocd
4 %C%_openocd_SOURCES = \
7 %C%_libopenocd_la_SOURCES = \
8 %D%/hello.c %D%/hello.h \
9 %D%/openocd.c %D%/openocd.h
11 %C%_openocd_LDADD = %D%/libopenocd.la
13 %C%_openocd_LDADD += $(MINGWLDADD)
16 %C%_openocd_LDADD += $(top_builddir)/jimtcl/libjim.a
18 %C%_openocd_LDADD += -ljim
21 %C%_libopenocd_la_CPPFLAGS =
23 # banner output includes RELSTR appended to $VERSION from the configure script
24 # guess-rev.sh returns either a repository version ID or "-snapshot"
26 %C%_libopenocd_la_CPPFLAGS += -DRELSTR=\"\"
27 %C%_libopenocd_la_CPPFLAGS += -DGITVERSION=\"\"
29 %C%_libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
30 %C%_libopenocd_la_CPPFLAGS += -DGITVERSION=\"`cd $(top_srcdir) && git describe`\"
31 %C%_libopenocd_la_CPPFLAGS += -DPKGBLDDATE=\"`date +%F-%R`\"
34 # add default CPPFLAGS
35 %C%_libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)
37 # the library search path.
38 %C%_libopenocd_la_LDFLAGS = $(all_libraries)
46 %C%_libopenocd_la_LIBADD = \
51 %D%/transport/libtransport.la \
52 %D%/flash/libflash.la \
53 %D%/target/libtarget.la \
54 %D%/server/libserver.la \
56 %D%/helper/libhelper.la \
59 BIN2C = $(srcdir)/%D%/helper/bin2char.sh
62 EXTRA_DIST += $(STARTUP_TCL_SRCS)
64 BUILT_SOURCES += %D%/startup_tcl.inc
66 # Convert .tcl to c-array
67 %D%/startup_tcl.inc: $(STARTUP_TCL_SRCS)
69 cat $^ | $(BIN2C) > $@ || { rm -f $@; false; }
71 # add generated files to make clean list
72 CLEANFILES += %D%/startup_tcl.inc
74 # we do not want generated file in the dist
76 # rm -f $(distdir)/%D%/startup_tcl.inc
78 include %D%/helper/Makefile.am
79 include %D%/jtag/Makefile.am
80 include %D%/transport/Makefile.am
81 include %D%/xsvf/Makefile.am
82 include %D%/svf/Makefile.am
83 include %D%/target/Makefile.am
84 include %D%/rtos/Makefile.am
85 include %D%/server/Makefile.am
86 include %D%/flash/Makefile.am
87 include %D%/pld/Makefile.am
88 include %D%/rtt/Makefile.am