openocd: src: replace the GPL with eCos exception 2.0 license tag
[openocd.git] / Makefile.am
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # not a GNU package. You can remove this line, if
4 # have all needed files, that a GNU package needs
5 AUTOMAKE_OPTIONS = gnu 1.6
6
7 .DELETE_ON_ERROR:
8
9 # make sure we pass the correct jimtcl flags to distcheck
10 DISTCHECK_CONFIGURE_FLAGS = --disable-install-jim
11
12 # do not run Jim Tcl tests (esp. during distcheck)
13 check-recursive: SUBDIRS :=
14
15 nobase_dist_pkgdata_DATA = \
16 contrib/libdcc/dcc_stdio.c \
17 contrib/libdcc/dcc_stdio.h \
18 contrib/libdcc/example.c \
19 contrib/libdcc/README \
20 contrib/60-openocd.rules
21
22 SUBDIRS =
23 DIST_SUBDIRS =
24 bin_PROGRAMS =
25 noinst_LTLIBRARIES =
26 info_TEXINFOS =
27 dist_man_MANS =
28 EXTRA_DIST =
29
30 if INTERNAL_JIMTCL
31 SUBDIRS += jimtcl
32 DIST_SUBDIRS += jimtcl
33 endif
34
35 # common flags used in openocd build
36 AM_CFLAGS = $(GCC_WARNINGS)
37
38 AM_CPPFLAGS = $(HOST_CPPFLAGS)\
39 -I$(top_srcdir)/src \
40 -I$(top_builddir)/src \
41 -DPKGDATADIR=\"$(pkgdatadir)\" \
42 -DBINDIR=\"$(bindir)\"
43
44 if INTERNAL_JIMTCL
45 AM_CPPFLAGS += -I$(top_srcdir)/jimtcl \
46 -I$(top_builddir)/jimtcl
47 endif
48 EXTRA_DIST += \
49 BUGS \
50 HACKING \
51 NEWTAPS \
52 README.Windows \
53 README.macOS \
54 $(EXTRA_DIST_NEWS) \
55 Doxyfile.in \
56 LICENSES/license-rules.txt \
57 LICENSES/exceptions/eCos-exception-2.0 \
58 LICENSES/preferred/BSD-1-Clause \
59 LICENSES/preferred/BSD-2-Clause \
60 LICENSES/preferred/BSD-2-Clause-Views \
61 LICENSES/preferred/BSD-3-Clause \
62 LICENSES/preferred/GFDL-1.2 \
63 LICENSES/preferred/gfdl-1.2.texi.readme \
64 LICENSES/preferred/GPL-2.0 \
65 LICENSES/preferred/MIT \
66 LICENSES/stand-alone/GPL-3.0 \
67 tools/logger.pl \
68 tools/rlink_make_speed_table \
69 tools/st7_dtc_as \
70 contrib
71
72 libtool: $(LIBTOOL_DEPS)
73 $(SHELL) ./config.status --recheck
74
75 docs: pdf html doxygen
76
77 Doxyfile: $(srcdir)/Doxyfile.in
78 @echo "Creating $@ from $<..."
79 @( \
80 echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
81 echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
82 sed -e 's,@srcdir\@,$(srcdir),' \
83 -e 's,@builddir\@,$(builddir),' \
84 -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
85 -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
86 ) > $@
87
88 THE_MANUAL = doxygen/latex/refman.pdf
89
90 doxygen::
91 $(MAKE) Doxyfile
92 doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
93 @if [ -f doxygen/latex/refman.tex ]; then \
94 echo "Creating $(THE_MANUAL)..."; \
95 $(MAKE) $(THE_MANUAL); \
96 else \
97 echo "Skipping Doxygen PDF..."; \
98 fi
99
100 $(THE_MANUAL): %.pdf: %.tex
101 -cd $$(dirname $*) && pdflatex $$(basename $*)
102 -cd $$(dirname $*) && pdflatex $$(basename $*)
103
104 TCL_PATH = tcl
105 # command to find paths of script files, relative to TCL_PATH
106 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' -o -name '*.txt' | \
107 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
108
109 dist-hook:
110 if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
111 git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
112 fi
113 for i in $$($(TCL_FILES)); do \
114 j="$(distdir)/$(TCL_PATH)/$$i" && \
115 mkdir -p "$$(dirname $$j)" && \
116 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
117 done
118
119 install-data-hook:
120 for i in $$($(TCL_FILES)); do \
121 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
122 mkdir -p "$$(dirname $$j)" && \
123 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
124 done
125
126 uninstall-hook:
127 rm -rf $(DESTDIR)$(pkgdatadir)/scripts
128
129 distclean-local:
130 rm -rf Doxyfile doxygen
131 rm -f $(srcdir)/jimtcl/configure.gnu
132
133 DISTCLEANFILES = doxygen.log
134
135 METASOURCES = AUTO
136
137 BUILT_SOURCES =
138 CLEANFILES =
139
140 MAINTAINERCLEANFILES = \
141 %D%/INSTALL \
142 %D%/configure \
143 %D%/Makefile.in \
144 %D%/depcomp \
145 %D%/config.guess \
146 %D%/config.sub \
147 %D%/config.h.in \
148 %D%/config.h.in~ \
149 %D%/compile \
150 %D%/ltmain.sh \
151 %D%/missing \
152 %D%/aclocal.m4 \
153 %D%/install-sh \
154 %D%/texinfo.tex
155
156 include src/Makefile.am
157 include doc/Makefile.am

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)