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

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)