target/cortex_m: try to re-examine under reset in cortex_m_assert_reset()
[openocd.git] / Makefile.am
blob41daf9522c9dd1439848e32e940d50e66b7eee88
1 # SPDX-License-Identifier: GPL-2.0-or-later
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
7 .DELETE_ON_ERROR:
9 # make sure we pass the correct jimtcl flags to distcheck
10 DISTCHECK_CONFIGURE_FLAGS = --disable-install-jim
12 # do not run Jim Tcl tests (esp. during distcheck)
13 check-recursive: SUBDIRS :=
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
22 SUBDIRS =
23 DIST_SUBDIRS =
24 bin_PROGRAMS =
25 noinst_LTLIBRARIES =
26 info_TEXINFOS =
27 dist_man_MANS =
28 EXTRA_DIST =
30 if INTERNAL_JIMTCL
31 SUBDIRS += jimtcl
32 DIST_SUBDIRS += jimtcl
33 endif
35 # common flags used in openocd build
36 AM_CFLAGS = $(GCC_WARNINGS)
38 AM_CPPFLAGS = $(HOST_CPPFLAGS)\
39                           -I$(top_srcdir)/src \
40                           -I$(top_builddir)/src \
41                           -DPKGDATADIR=\"$(pkgdatadir)\" \
42                           -DBINDIR=\"$(bindir)\"
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/BSD-Source-Code \
63         LICENSES/preferred/GFDL-1.2 \
64         LICENSES/preferred/gfdl-1.2.texi.readme \
65         LICENSES/preferred/GPL-2.0 \
66         LICENSES/preferred/MIT \
67         LICENSES/stand-alone/GPL-3.0 \
68         tools/logger.pl \
69         tools/rlink_make_speed_table \
70         tools/st7_dtc_as \
71         contrib
73 libtool: $(LIBTOOL_DEPS)
74         $(SHELL) ./config.status --recheck
76 docs: pdf html doxygen
78 Doxyfile: $(srcdir)/Doxyfile.in
79         @echo "Creating $@ from $<..."
80         @( \
81           echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
82           echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
83           sed -e 's,@srcdir\@,$(srcdir),' \
84             -e 's,@builddir\@,$(builddir),' \
85             -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
86             -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
87         ) > $@
89 THE_MANUAL = doxygen/latex/refman.pdf
91 doxygen::
92         $(MAKE) Doxyfile
93         doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
94         @if [ -f doxygen/latex/refman.tex ]; then \
95                 echo "Creating $(THE_MANUAL)..."; \
96                 $(MAKE) $(THE_MANUAL); \
97         else \
98                 echo "Skipping Doxygen PDF..."; \
99         fi
101 $(THE_MANUAL): %.pdf: %.tex
102         -cd $$(dirname $*) && pdflatex $$(basename $*)
103         -cd $$(dirname $*) && pdflatex $$(basename $*)
105 TCL_PATH = tcl
106 # command to find paths of script files, relative to TCL_PATH
107 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' -o -name '*.txt' | \
108                 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
110 dist-hook:
111         if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
112                 git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
113         fi
114         for i in $$($(TCL_FILES)); do \
115                 j="$(distdir)/$(TCL_PATH)/$$i" && \
116                 mkdir -p "$$(dirname $$j)" && \
117                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
118         done
120 install-data-hook:
121         for i in $$($(TCL_FILES)); do \
122                 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
123                 mkdir -p "$$(dirname $$j)" && \
124                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
125         done
127 uninstall-hook:
128         rm -rf $(DESTDIR)$(pkgdatadir)/scripts
130 distclean-local:
131         rm -rf Doxyfile doxygen
132         rm -f $(srcdir)/jimtcl/configure.gnu
134 DISTCLEANFILES = doxygen.log
136 METASOURCES = AUTO
138 BUILT_SOURCES =
139 CLEANFILES =
141 MAINTAINERCLEANFILES = \
142         %D%/INSTALL \
143         %D%/configure \
144         %D%/Makefile.in \
145         %D%/depcomp \
146         %D%/config.guess \
147         %D%/config.sub \
148         %D%/config.h.in \
149         %D%/config.h.in~ \
150         %D%/compile \
151         %D%/ltmain.sh \
152         %D%/missing \
153         %D%/aclocal.m4 \
154         %D%/install-sh \
155         %D%/texinfo.tex
157 include src/Makefile.am
158 include doc/Makefile.am