configure: Use same case for libjaylink as for other libs
[openocd.git] / src / Makefile.am
1 include $(top_srcdir)/common.mk
2
3 SUBDIRS = \
4 jtag \
5 helper \
6 target \
7 transport \
8 flash \
9 svf \
10 xsvf \
11 pld \
12 server \
13 rtos
14
15 noinst_LTLIBRARIES = libopenocd.la
16 bin_PROGRAMS = openocd
17
18 MAINFILE = main.c
19
20 openocd_SOURCES = $(MAINFILE)
21 openocd_LDADD = libopenocd.la
22
23 if INTERNAL_JIMTCL
24 openocd_LDADD += $(top_builddir)/jimtcl/libjim.a
25 else
26 openocd_LDADD += -ljim
27 endif
28
29 if ULINK
30 openocd_LDADD += -lm
31 endif
32
33 libopenocd_la_SOURCES = \
34 hello.c \
35 openocd.c
36
37 noinst_HEADERS = \
38 hello.h \
39 openocd.h
40
41 libopenocd_la_CPPFLAGS =
42
43 # banner output includes RELSTR appended to $VERSION from the configure script
44 # guess-rev.sh returns either a repository version ID or "-snapshot"
45 if RELEASE
46 libopenocd_la_CPPFLAGS += -DRELSTR=\"\"
47 libopenocd_la_CPPFLAGS += -DGITVERSION=\"\"
48 else
49 libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
50 libopenocd_la_CPPFLAGS += -DGITVERSION=\"`cd $(top_srcdir) && git describe`\"
51 libopenocd_la_CPPFLAGS += -DPKGBLDDATE=\"`date +%F-%R`\"
52 endif
53
54 # add default CPPFLAGS
55 libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)
56
57 # the library search path.
58 libopenocd_la_LDFLAGS = $(all_libraries)
59
60 if IS_MINGW
61 MINGWLDADD = -lws2_32
62 else
63 MINGWLDADD =
64 endif
65
66 libopenocd_la_LIBADD = \
67 $(top_builddir)/src/xsvf/libxsvf.la \
68 $(top_builddir)/src/svf/libsvf.la \
69 $(top_builddir)/src/pld/libpld.la \
70 $(top_builddir)/src/jtag/libjtag.la \
71 $(top_builddir)/src/transport/libtransport.la \
72 $(top_builddir)/src/flash/libflash.la \
73 $(top_builddir)/src/target/libtarget.la \
74 $(top_builddir)/src/server/libserver.la \
75 $(top_builddir)/src/rtos/librtos.la \
76 $(top_builddir)/src/helper/libhelper.la \
77 $(LIBFTDI_LIBS) $(MINGWLDADD) \
78 $(HIDAPI_LIBS) $(LIBUSB0_LIBS) $(LIBUSB1_LIBS)
79
80 if !INTERNAL_LIBJAYLINK
81 libopenocd_la_LIBADD += $(LIBJAYLINK_LIBS)
82 endif
83
84 STARTUP_TCL_SRCS = \
85 $(srcdir)/helper/startup.tcl \
86 $(srcdir)/jtag/startup.tcl \
87 $(srcdir)/target/startup.tcl \
88 $(srcdir)/flash/startup.tcl \
89 $(srcdir)/server/startup.tcl
90
91 EXTRA_DIST = $(STARTUP_TCL_SRCS)
92
93 BUILT_SOURCES = startup_tcl.inc
94
95 startup.tcl: $(STARTUP_TCL_SRCS)
96 cat $^ > $@
97
98 BIN2C = $(top_srcdir)/src/helper/bin2char.sh
99
100 # Convert .tcl to c-array
101 startup_tcl.inc: startup.tcl $(BIN2C)
102 $(BIN2C) < $< > $@ || { rm -f $@; false; }
103
104 # add generated files to make clean list
105 CLEANFILES = startup.tcl startup_tcl.inc
106
107 # we do not want generated file in the dist
108 dist-hook:
109 rm -f $(distdir)/startup_tcl.inc
110
111 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
112
113 # The "quick" target builds executables & reinstalls the executables
114 # Primary use: developer types to quicken the edit/compile/debug
115 # cycle. by not requiring a "full build and full install". Note the
116 # assumption is: You are only rebuilding the EXE.... and everything
117 # else is/was previously installed.
118 #
119 # use at your own risk
120 quick: all install-binPROGRAMS
121

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)