e3adaad843ecddcfbedd0a1112c61ef65fa26daa
[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 lib_LTLIBRARIES = libopenocd.la
16 bin_PROGRAMS = openocd
17
18 if ECOSBOARD
19 MAINFILE = ecosboard.c
20 else
21 MAINFILE = main.c
22 endif
23
24 openocd_SOURCES = $(MAINFILE)
25 openocd_LDADD = libopenocd.la
26
27 if INTERNAL_JIMTCL
28 openocd_LDADD += $(top_builddir)/jimtcl/libjim.a
29 else
30 openocd_LDADD += -ljim
31 endif
32
33 libopenocd_la_SOURCES = \
34 hello.c \
35 openocd.c \
36 startup_tcl.c
37
38 noinst_HEADERS = \
39 hello.h \
40 openocd.h
41
42 libopenocd_la_CPPFLAGS = -DPKGBLDDATE=\"`date +%F-%R`\"
43
44 # banner output includes RELSTR appended to $VERSION from the configure script
45 # guess-rev.sh returns either a repository version ID or "-snapshot"
46 if RELEASE
47 libopenocd_la_CPPFLAGS += -DRELSTR=\"\"
48 else
49 libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
50 endif
51 libopenocd_la_CPPFLAGS += -DGITVERSION=\"`cd $(top_srcdir) && git describe`\"
52
53 # add default CPPFLAGS
54 libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)
55
56 # the library search path.
57 libopenocd_la_LDFLAGS = $(all_libraries)
58
59 if IS_MINGW
60 MINGWLDADD = -lws2_32
61 else
62 MINGWLDADD =
63 endif
64
65 if FT2232_LIBFTDI
66 FTDI2232LIB = -lftdi -lusb
67 else
68 if USB_BLASTER_LIBFTDI
69 FTDI2232LIB = -lftdi -lusb
70 else
71 if PRESTO_LIBFTDI
72 FTDI2232LIB = -lftdi -lusb
73 else
74 FTDI2232LIB =
75 endif
76 endif
77 endif
78
79 if USBPROG
80 LIBUSB = -lusb
81 else
82 if JLINK
83 LIBUSB = -lusb
84 else
85 if RLINK
86 LIBUSB = -lusb
87 else
88 if VSLLINK
89 LIBUSB = -lusb
90 else
91 LIBUSB =
92 endif
93 endif
94 endif
95 endif
96
97 libopenocd_la_LIBADD = \
98 $(top_builddir)/src/xsvf/libxsvf.la \
99 $(top_builddir)/src/svf/libsvf.la \
100 $(top_builddir)/src/pld/libpld.la \
101 $(top_builddir)/src/jtag/libjtag.la \
102 $(top_builddir)/src/transport/libtransport.la \
103 $(top_builddir)/src/flash/libflash.la \
104 $(top_builddir)/src/target/libtarget.la \
105 $(top_builddir)/src/server/libserver.la \
106 $(top_builddir)/src/rtos/librtos.la \
107 $(top_builddir)/src/helper/libhelper.la \
108 $(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB)
109
110 STARTUP_TCL_SRCS = \
111 $(srcdir)/helper/startup.tcl \
112 $(srcdir)/jtag/startup.tcl \
113 $(srcdir)/target/startup.tcl \
114 $(srcdir)/flash/startup.tcl \
115 $(srcdir)/server/startup.tcl
116
117 EXTRA_DIST = $(STARTUP_TCL_SRCS)
118
119 BUILT_SOURCES = startup.tcl
120
121 startup.tcl: $(STARTUP_TCL_SRCS)
122 cat $^ > $@
123
124 BIN2C = $(top_builddir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
125
126 # Convert .tcl to cfile
127 startup_tcl.c: startup.tcl $(BIN2C)
128 $(BIN2C) openocd_startup_tcl < $< > $@ || rm -f $@
129
130 # add startup_tcl.c to make clean list
131 CLEANFILES = startup.tcl startup_tcl.c
132
133 # we do not want generated file in the dist
134 dist-hook:
135 rm -f $(distdir)/startup_tcl.c
136
137 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
138
139 # The "quick" target builds executables & reinstalls the executables
140 # Primary use: developer types to quicken the edit/compile/debug
141 # cycle. by not requiring a "full build and full install". Note the
142 # assumption is: You are only rebuilding the EXE.... and everything
143 # else is/was previously installed.
144 #
145 # use at your own risk
146 quick: all install-binPROGRAMS
147

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)