arm_adi_v5: remove useless cast to int
[openocd.git] / src / Makefile.am
blob07981aa67ec2faea9f58fdd19d3081d9396b14c1
1 noinst_LTLIBRARIES += %D%/libopenocd.la
2 bin_PROGRAMS += %D%/openocd
4 %C%_openocd_SOURCES = \
5         %D%/main.c
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)
15 if INTERNAL_JIMTCL
16 %C%_openocd_LDADD += $(top_builddir)/jimtcl/libjim.a
17 else
18 %C%_openocd_LDADD += -ljim
19 endif
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"
25 if RELEASE
26 %C%_libopenocd_la_CPPFLAGS += -DRELSTR=\"\"
27 %C%_libopenocd_la_CPPFLAGS += -DGITVERSION=\"\"
28 else
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`\"
32 endif
34 # add default CPPFLAGS
35 %C%_libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)
37 # the library search path.
38 %C%_libopenocd_la_LDFLAGS = $(all_libraries)
40 if IS_MINGW
41 MINGWLDADD = -lws2_32
42 else
43 MINGWLDADD =
44 endif
46 %C%_libopenocd_la_LIBADD = \
47         %D%/xsvf/libxsvf.la \
48         %D%/svf/libsvf.la \
49         %D%/pld/libpld.la \
50         %D%/jtag/libjtag.la \
51         %D%/transport/libtransport.la \
52         %D%/flash/libflash.la \
53         %D%/target/libtarget.la \
54         %D%/server/libserver.la \
55         %D%/rtos/librtos.la \
56         %D%/helper/libhelper.la
58 BIN2C = $(srcdir)/%D%/helper/bin2char.sh
60 STARTUP_TCL_SRCS =
61 EXTRA_DIST += $(STARTUP_TCL_SRCS)
63 BUILT_SOURCES += %D%/startup_tcl.inc
65 # Convert .tcl to c-array
66 %D%/startup_tcl.inc: $(STARTUP_TCL_SRCS)
67         cat $^ | $(BIN2C) > $@ || { rm -f $@; false; }
69 # add generated files to make clean list
70 CLEANFILES += %D%/startup_tcl.inc
72 # we do not want generated file in the dist
73 #dist-hook:
74 #       rm -f $(distdir)/%D%/startup_tcl.inc
76 include %D%/helper/Makefile.am
77 include %D%/jtag/Makefile.am
78 include %D%/transport/Makefile.am
79 include %D%/xsvf/Makefile.am
80 include %D%/svf/Makefile.am
81 include %D%/target/Makefile.am
82 include %D%/rtos/Makefile.am
83 include %D%/server/Makefile.am
84 include %D%/flash/Makefile.am
85 include %D%/pld/Makefile.am