]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdbsupport/Makefile.am
Finalized intl-update patches
[thirdparty/binutils-gdb.git] / gdbsupport / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2 #
3 # Copyright (C) 2020-2023 Free Software Foundation, Inc.
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
18 #
19
20 AUTOMAKE_OPTIONS = no-dist foreign
21 ACLOCAL_AMFLAGS = -I . -I ../config
22
23 # Suppress 'configure.ac: error: AM_GNU_GETTEXT used but SUBDIRS not defined'
24 # from Automake, as gdbsupport uses AM_GNU_GETTEXT through
25 # ZW_GNU_GETTEXT_SISTER_DIR, but doesn't have any translations (currently).
26 SUBDIRS =
27
28 AM_CPPFLAGS = -I$(srcdir)/../include -I$(srcdir)/../gdb \
29 -I../gnulib/import -I$(srcdir)/../gnulib/import \
30 -I.. -I$(srcdir)/.. $(INCINTL) -I../bfd -I$(srcdir)/../bfd \
31 @LARGEFILE_CPPFLAGS@
32
33 override CXX += $(CXX_DIALECT)
34
35 AM_CXXFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
36
37 noinst_LIBRARIES = libgdbsupport.a
38
39 if SELFTEST
40 selftest = selftest.cc
41 endif
42
43 if HAVE_PIPE_OR_PIPE2
44 eventpipe = event-pipe.cc
45 endif
46
47 libgdbsupport_a_SOURCES = \
48 agent.cc \
49 btrace-common.cc \
50 cleanups.cc \
51 common-debug.cc \
52 common-exceptions.cc \
53 common-inferior.cc \
54 common-regcache.cc \
55 common-utils.cc \
56 environ.cc \
57 errors.cc \
58 event-loop.cc \
59 fileio.cc \
60 filestuff.cc \
61 format.cc \
62 gdb-dlfcn.cc \
63 gdb-hashtab.cc \
64 gdb_obstack.cc \
65 gdb_regex.cc \
66 gdb_tilde_expand.cc \
67 gdb_wait.cc \
68 gdb_vecs.cc \
69 job-control.cc \
70 netstuff.cc \
71 new-op.cc \
72 pathstuff.cc \
73 print-utils.cc \
74 ptid.cc \
75 rsp-low.cc \
76 run-time-clock.cc \
77 safe-strerror.cc \
78 scoped_mmap.cc \
79 search.cc \
80 signals.cc \
81 signals-state-save-restore.cc \
82 tdesc.cc \
83 thread-pool.cc \
84 xml-utils.cc \
85 ${eventpipe} \
86 $(selftest)
87
88 # Double-check that no defines are missing from our configury.
89 check-defines:
90 cd $(srcdir) && emacs --script check-defines.el