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

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)