]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/data-directory/Makefile.in
Implement DAP breakpointLocations request
[thirdparty/binutils-gdb.git] / gdb / data-directory / Makefile.in
CommitLineData
213516ef 1# Copyright (C) 2010-2023 Free Software Foundation, Inc.
aa2e2d8d
DE
2
3# Makefile for building a staged copy of the data-directory.
4# This file is part of GDB.
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
b593ecca
SM
19# Please keep lists in this file sorted alphabetically, with one item per line.
20# See gdb/Makefile.in for guidelines on ordering files and directories.
21
aa2e2d8d
DE
22srcdir = @srcdir@
23SYSCALLS_SRCDIR = $(srcdir)/../syscalls
24PYTHON_SRCDIR = $(srcdir)/../python/lib
ed3ef339 25GUILE_SRCDIR = $(srcdir)/../guile/lib
776af39e 26SYSTEM_GDBINIT_SRCDIR = $(srcdir)/../system-gdbinit
ed3ef339 27VPATH = $(srcdir):$(SYSCALLS_SRCDIR):$(PYTHON_SRCDIR):$(GUILE_SRCDIR):$(SYSTEM_GDBINIT_SRCDIR)
e3487908 28XSLTPROC = @XSLTPROC@
aa2e2d8d
DE
29
30top_srcdir = @top_srcdir@
31top_builddir = @top_builddir@
32
33prefix = @prefix@
34exec_prefix = @exec_prefix@
35
36datarootdir = @datarootdir@
37datadir = @datadir@
38
39SHELL = @SHELL@
40
41LN_S = @LN_S@
42
43INSTALL = @INSTALL@
44INSTALL_DATA = @INSTALL_DATA@
45INSTALL_DIR = $(SHELL) $(srcdir)/../../mkinstalldirs
46
47GDB_DATADIR = @GDB_DATADIR@
48
49SYSCALLS_DIR = syscalls
1bfda48e 50SYSCALLS_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSCALLS_DIR)
b593ecca
SM
51GEN_SYSCALLS_FILES = \
52 aarch64-linux.xml \
53 amd64-linux.xml \
54 arm-linux.xml \
55 i386-linux.xml \
56 mips-n32-linux.xml \
57 mips-n64-linux.xml \
58 mips-o32-linux.xml \
59 ppc-linux.xml \
60 ppc64-linux.xml \
61 s390-linux.xml \
62 s390x-linux.xml \
63 sparc-linux.xml \
64 sparc64-linux.xml
e3487908 65
4498ef4f 66SYSCALLS_FILES = gdb-syscalls.dtd freebsd.xml netbsd.xml $(GEN_SYSCALLS_FILES)
aa2e2d8d
DE
67
68PYTHON_DIR = python
1bfda48e 69PYTHON_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(PYTHON_DIR)
4df42755 70PYTHON_FILE_LIST = \
0e3509db 71 gdb/__init__.py \
15e15b2d 72 gdb/disassembler.py \
1e611234 73 gdb/FrameDecorator.py \
b593ecca
SM
74 gdb/FrameIterator.py \
75 gdb/frames.py \
7b51bc51 76 gdb/printing.py \
fa3a4f15 77 gdb/prompt.py \
7b8c55af 78 gdb/styling.py \
b593ecca
SM
79 gdb/types.py \
80 gdb/unwinder.py \
883964a7 81 gdb/xmethod.py \
7b51bc51 82 gdb/command/__init__.py \
b593ecca 83 gdb/command/explore.py \
1e611234 84 gdb/command/frame_filters.py \
fa3a4f15 85 gdb/command/pretty_printers.py \
06fc020f 86 gdb/command/prompt.py \
b593ecca
SM
87 gdb/command/type_printers.py \
88 gdb/command/unwinders.py \
89 gdb/command/xmethods.py \
de7d7cb5
TT
90 gdb/dap/breakpoint.py \
91 gdb/dap/bt.py \
92 gdb/dap/disassemble.py \
93 gdb/dap/evaluate.py \
94 gdb/dap/events.py \
95 gdb/dap/frames.py \
96 gdb/dap/__init__.py \
97 gdb/dap/io.py \
98 gdb/dap/launch.py \
3c453cfb 99 gdb/dap/locations.py \
d466f749 100 gdb/dap/memory.py \
de7d7cb5
TT
101 gdb/dap/next.py \
102 gdb/dap/pause.py \
103 gdb/dap/scopes.py \
104 gdb/dap/server.py \
a0b70d99 105 gdb/dap/sources.py \
de7d7cb5
TT
106 gdb/dap/startup.py \
107 gdb/dap/state.py \
108 gdb/dap/threads.py \
51058658 109 gdb/dap/typecheck.py \
8900a92e 110 gdb/dap/varref.py \
a72c3253 111 gdb/function/__init__.py \
f2f3ccb9 112 gdb/function/as_string.py \
faa42425 113 gdb/function/caller_is.py \
6979730b
DE
114 gdb/function/strfns.py \
115 gdb/printer/__init__.py \
116 gdb/printer/bound_registers.py
aa2e2d8d 117
4df42755
DE
118@HAVE_PYTHON_TRUE@PYTHON_FILES = $(PYTHON_FILE_LIST)
119@HAVE_PYTHON_FALSE@PYTHON_FILES =
120
ed3ef339
DE
121GUILE_DIR = guile
122GUILE_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(GUILE_DIR)
e76c5d17
DE
123
124GUILE_SOURCE_FILES = \
ed3ef339
DE
125 ./gdb.scm \
126 gdb/boot.scm \
127 gdb/experimental.scm \
128 gdb/init.scm \
129 gdb/iterator.scm \
130 gdb/printing.scm \
186fcde0 131 gdb/support.scm \
ed3ef339
DE
132 gdb/types.scm
133
e76c5d17
DE
134GUILE_COMPILED_FILES = \
135 ./gdb.go \
136 gdb/experimental.go \
137 gdb/iterator.go \
138 gdb/printing.go \
139 gdb/support.go \
140 gdb/types.go
141
142@HAVE_GUILE_TRUE@GUILE_FILES = $(GUILE_SOURCE_FILES) $(GUILE_COMPILED_FILES)
4df42755
DE
143@HAVE_GUILE_FALSE@GUILE_FILES =
144
e76c5d17
DE
145GUILD = @GUILD@
146GUILD_TARGET_FLAG = @GUILD_TARGET_FLAG@
147
148# Flags passed to 'guild compile'.
149# Note: We can't use -Wunbound-variable because all the variables
150# defined in C aren't visible when we compile.
151# Note: To work around a guile 2.0.5 issue (it can't find gdb/init.scm even if
152# we pass -L <dir>) we have to compile in the directory containing gdb.scm.
153# We still need to pass "-L ." so that other modules are found.
154GUILD_COMPILE_FLAGS = \
155 $(GUILD_TARGET_FLAG) \
156 -Warity-mismatch -Wformat -Wunused-toplevel \
157 -L .
158
776af39e
JB
159SYSTEM_GDBINIT_DIR = system-gdbinit
160SYSTEM_GDBINIT_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSTEM_GDBINIT_DIR)
161SYSTEM_GDBINIT_FILES = \
162 elinos.py \
163 wrs-linux.py
164
f474844c
JZ
165FLAGS_TO_PASS = \
166 "prefix=$(prefix)" \
167 "exec_prefix=$(exec_prefix)" \
168 "infodir=$(infodir)" \
169 "datarootdir=$(datarootdir)" \
170 "docdir=$(docdir)" \
171 "htmldir=$(htmldir)" \
172 "pdfdir=$(pdfdir)" \
173 "libdir=$(libdir)" \
174 "mandir=$(mandir)" \
175 "datadir=$(datadir)" \
176 "includedir=$(includedir)" \
177 "against=$(against)" \
178 "DESTDIR=$(DESTDIR)" \
179 "AR=$(AR)" \
180 "AR_FLAGS=$(AR_FLAGS)" \
181 "CC=$(CC)" \
182 "CFLAGS=$(CFLAGS)" \
183 "CXX=$(CXX)" \
184 "CXXFLAGS=$(CXXFLAGS)" \
185 "DLLTOOL=$(DLLTOOL)" \
186 "LDFLAGS=$(LDFLAGS)" \
187 "RANLIB=$(RANLIB)" \
188 "MAKEINFO=$(MAKEINFO)" \
189 "MAKEHTML=$(MAKEHTML)" \
190 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
191 "INSTALL=$(INSTALL)" \
192 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
193 "INSTALL_DATA=$(INSTALL_DATA)" \
194 "RUNTEST=$(RUNTEST)" \
195 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
196
aa2e2d8d 197.PHONY: all
ed3ef339 198all: stamp-syscalls stamp-python stamp-guile stamp-system-gdbinit
aa2e2d8d 199
e3487908
GKB
200%.xml: @MAINTAINER_MODE_TRUE@ %.xml.in apply-defaults.xsl linux-defaults.xml.in
201 $(XSLTPROC) -o $(SYSCALLS_SRCDIR)/$@ $(SYSCALLS_SRCDIR)/apply-defaults.xsl\
202 $(SYSCALLS_SRCDIR)/$@.in
203
204.PHONY: syscall-xml
205syscall-xml: $(GEN_SYSCALLS_FILES)
206
207.PHONY: clean-syscall-xml
208# Only clean files generated XML files.
209clean-syscall-xml:
210 files='$(GEN_SYSCALLS_FILES)' ; \
211 for file in $$files; do \
212 rm -f "$(SYSCALLS_SRCDIR)/$$file"; \
213 done
214
aa2e2d8d
DE
215# For portability's sake, we need to handle systems that don't have
216# symbolic links.
217stamp-syscalls: Makefile $(SYSCALLS_FILES)
218 rm -rf ./$(SYSCALLS_DIR)
219 mkdir ./$(SYSCALLS_DIR)
220 files='$(SYSCALLS_FILES)' ; \
221 for file in $$files ; do \
222 f=$(SYSCALLS_SRCDIR)/$$file ; \
223 if test -f $$f ; then \
224 $(INSTALL_DATA) $$f ./$(SYSCALLS_DIR) ; \
225 fi ; \
226 done
227 touch $@
228
229.PHONY: clean-syscalls
230clean-syscalls:
231 rm -rf $(SYSCALLS_DIR)
232 rm -f stamp-syscalls
233
234# This target is responsible for properly installing the syscalls'
235# XML files in the system.
236.PHONY: install-syscalls
237install-syscalls:
238 $(INSTALL_DIR) $(SYSCALLS_INSTALL_DIR)
239 files='$(SYSCALLS_FILES)' ; \
240 for file in $$files; do \
241 f=$(SYSCALLS_SRCDIR)/$$file ; \
242 if test -f $$f ; then \
243 $(INSTALL_DATA) $$f $(SYSCALLS_INSTALL_DIR) ; \
244 fi ; \
245 done
246
247.PHONY: uninstall-syscalls
248uninstall-syscalls:
249 files='$(SYSCALLS_FILES)' ; \
250 for file in $$files ; do \
251 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
252 rm -f $(SYSCALLS_INSTALL_DIR)/$$file ; \
253 while test "x$$file" != "x$$slashdir" ; do \
254 rmdir 2>/dev/null "$(SYSCALLS_INSTALL_DIR)$$slashdir" ; \
255 file="$$slashdir" ; \
256 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
257 done \
258 done
259
260stamp-python: Makefile $(PYTHON_FILES)
261 rm -rf ./$(PYTHON_DIR)
262 files='$(PYTHON_FILES)' ; \
4df42755
DE
263 if test "x$$files" != x ; then \
264 for file in $$files ; do \
265 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
266 $(INSTALL_DIR) ./$(PYTHON_DIR)/$$dir ; \
267 $(INSTALL_DATA) $(PYTHON_SRCDIR)/$$file ./$(PYTHON_DIR)/$$dir ; \
268 done ; \
269 fi
aa2e2d8d
DE
270 touch $@
271
272.PHONY: clean-python
273clean-python:
274 rm -rf $(PYTHON_DIR)
275 rm -f stamp-python
276
277.PHONY: install-python
278install-python:
279 files='$(PYTHON_FILES)' ; \
4df42755
DE
280 if test "x$$files" != x ; then \
281 for file in $$files ; do \
282 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
283 $(INSTALL_DIR) $(PYTHON_INSTALL_DIR)/$$dir ; \
284 $(INSTALL_DATA) ./$(PYTHON_DIR)/$$file $(PYTHON_INSTALL_DIR)/$$dir ; \
285 done ; \
286 fi
aa2e2d8d
DE
287
288.PHONY: uninstall-python
289uninstall-python:
290 files='$(PYTHON_FILES)' ; \
4df42755
DE
291 if test "x$$files" != x ; then \
292 for file in $$files ; do \
293 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
294 rm -f $(PYTHON_INSTALL_DIR)/$$file ; \
295 while test "x$$file" != "x$$slashdir" ; do \
296 rmdir 2>/dev/null "$(PYTHON_INSTALL_DIR)$$slashdir" ; \
297 file="$$slashdir" ; \
298 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
299 done \
300 done ; \
301 fi
aa2e2d8d 302
e76c5d17 303stamp-guile: Makefile $(GUILE_SOURCE_FILES)
ed3ef339 304 rm -rf ./$(GUILE_DIR)
e76c5d17
DE
305 if test "x$(GUILE_FILES)" != x ; then \
306 files='$(GUILE_SOURCE_FILES)' ; \
4df42755
DE
307 for file in $$files ; do \
308 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
309 $(INSTALL_DIR) ./$(GUILE_DIR)/$$dir ; \
310 $(INSTALL_DATA) $(GUILE_SRCDIR)/$$file ./$(GUILE_DIR)/$$dir ; \
311 done ; \
e76c5d17
DE
312 files='$(GUILE_COMPILED_FILES)' ; \
313 cd ./$(GUILE_DIR) ; \
314 for go in $$files ; do \
315 source="`echo $$go | sed 's/\.go$$/.scm/'`" ; \
316 echo $(GUILD) compile $(GUILD_COMPILE_FLAGS) -o "$$go" "$$source" ; \
317 $(GUILD) compile $(GUILD_COMPILE_FLAGS) -o "$$go" "$$source" || exit 1 ; \
318 done ; \
4df42755 319 fi
ed3ef339
DE
320 touch $@
321
322.PHONY: clean-guile
323clean-guile:
324 rm -rf $(GUILE_DIR)
325 rm -f stamp-guile
326
327.PHONY: install-guile
328install-guile:
329 files='$(GUILE_FILES)' ; \
4df42755
DE
330 if test "x$$files" != x ; then \
331 for file in $$files ; do \
332 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
333 $(INSTALL_DIR) $(GUILE_INSTALL_DIR)/$$dir ; \
334 $(INSTALL_DATA) ./$(GUILE_DIR)/$$file $(GUILE_INSTALL_DIR)/$$dir ; \
335 done ; \
336 fi
ed3ef339
DE
337
338.PHONY: uninstall-guile
339uninstall-guile:
340 files='$(GUILE_FILES)' ; \
4df42755
DE
341 if test "x$$files" != x ; then \
342 for file in $$files ; do \
343 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
344 rm -f $(GUILE_INSTALL_DIR)/$$file ; \
345 while test "x$$file" != "x$$slashdir" ; do \
346 rmdir 2>/dev/null "$(GUILE_INSTALL_DIR)$$slashdir" ; \
347 file="$$slashdir" ; \
348 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
349 done \
350 done ; \
351 fi
ed3ef339 352
776af39e
JB
353stamp-system-gdbinit: Makefile $(SYSTEM_GDBINIT_FILES)
354 rm -rf ./$(SYSTEM_GDBINIT_DIR)
355 mkdir ./$(SYSTEM_GDBINIT_DIR)
356 files='$(SYSTEM_GDBINIT_FILES)' ; \
357 for file in $$files ; do \
358 f=$(SYSTEM_GDBINIT_SRCDIR)/$$file ; \
359 if test -f $$f ; then \
360 $(INSTALL_DATA) $$f ./$(SYSTEM_GDBINIT_DIR) ; \
361 fi ; \
362 done
363 touch $@
364
365.PHONY: clean-system-gdbinit
366clean-system-gdbinit:
367 rm -rf $(SYSTEM_GDBINIT_DIR)
368 rm -f stamp-system-gdbinit
369
370.PHONY: install-system-gdbinit
371install-system-gdbinit:
372 $(INSTALL_DIR) $(SYSTEM_GDBINIT_INSTALL_DIR)
373 files='$(SYSTEM_GDBINIT_FILES)' ; \
374 for file in $$files; do \
375 f=$(SYSTEM_GDBINIT_SRCDIR)/$$file ; \
376 if test -f $$f ; then \
377 $(INSTALL_DATA) $$f $(SYSTEM_GDBINIT_INSTALL_DIR) ; \
378 fi ; \
379 done
380
381.PHONY: uninstall-system-gdbinit
382uninstall-system-gdbinit:
383 files='$(SYSTEM_GDBINIT_FILES)' ; \
384 for file in $$files ; do \
385 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
386 rm -f $(SYSTEM_GDBINIT_INSTALL_DIR)/$$file ; \
387 while test "x$$file" != "x$$slashdir" ; do \
388 rmdir 2>/dev/null "$(SYSTEM_GDBINIT_INSTALL_DIR)$$slashdir" ; \
389 file="$$slashdir" ; \
390 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
391 done \
392 done
393
aa2e2d8d
DE
394# Traditionally "install" depends on "all". But it may be useful
395# not to; for example, if the user has made some trivial change to a
396# source file and doesn't care about rebuilding or just wants to save the
397# time it takes for make to check that all is up to date.
398# install-only is intended to address that need.
399.PHONY: install
400install: all
f474844c 401 @$(MAKE) $(FLAGS_TO_PASS) install-only
aa2e2d8d
DE
402
403.PHONY: install-only
ed3ef339
DE
404install-only: install-syscalls install-python install-guile \
405 install-system-gdbinit
aa2e2d8d
DE
406
407.PHONY: uninstall
ed3ef339
DE
408uninstall: uninstall-syscalls uninstall-python uninstall-guile \
409 uninstall-system-gdbinit
aa2e2d8d
DE
410
411.PHONY: clean
ed3ef339 412clean: clean-syscalls clean-python clean-guile clean-system-gdbinit
aa2e2d8d
DE
413
414.PHONY: maintainer-clean realclean distclean
415maintainer-clean realclean distclean: clean
416 rm -f Makefile
417
418.PHONY: check installcheck info dvi pdf html
419.PHONY: install-info install-pdf install-html clean-info
420check installcheck:
421info dvi pdf html:
422install-info install-pdf install-html:
423clean-info:
424
425# GNU Make has an annoying habit of putting *all* the Makefile variables
426# into the environment, unless you include this target as a circumvention.
427# Rumor is that this will be fixed (and this target can be removed)
428# in GNU Make 4.0.
429.NOEXPORT:
430
431# GNU Make 3.63 has a different problem: it keeps tacking command line
432# overrides onto the definition of $(MAKE). This variable setting
433# will remove them.
434MAKEOVERRIDES=
435
543ecec7 436Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
8ff8c543 437 cd .. && $(SHELL) ./config.status data-directory/Makefile
ad02e4fe
SM
438
439# Disable implicit make rules.
440include $(srcdir)/../disable-implicit-rules.mk