Fix gdbsupport build on compilers that don't default to C++11 or above
[deliverable/binutils-gdb.git] / gdbsupport / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2 #
3 # Copyright (C) 2020 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 AM_CPPFLAGS = -I$(srcdir)/../include -I$(srcdir)/../gdb \
24 -I../gnulib/import -I$(srcdir)/../gnulib/import \
25 -I.. -I$(srcdir)/.. $(INCINTL) -I../bfd -I$(srcdir)/../bfd
26
27 override CXX += $(CXX_DIALECT)
28
29 override CC := $(CXX)
30 override CFLAGS := $(CXXFLAGS)
31
32 noinst_LIBRARIES = libgdbsupport.a
33
34 if SELFTEST
35 selftest = selftest.c
36 endif
37
38 libgdbsupport_a_SOURCES = \
39 agent.c \
40 btrace-common.c \
41 buffer.c \
42 cleanups.c \
43 common-debug.c \
44 common-exceptions.c \
45 common-inferior.c \
46 common-regcache.c \
47 common-utils.c \
48 environ.c \
49 errors.c \
50 fileio.c \
51 filestuff.c \
52 format.c \
53 gdb-dlfcn.c \
54 gdb_tilde_expand.c \
55 gdb_wait.c \
56 gdb_vecs.c \
57 job-control.c \
58 netstuff.c \
59 new-op.c \
60 pathstuff.c \
61 print-utils.c \
62 ptid.c \
63 rsp-low.c \
64 run-time-clock.c \
65 safe-strerror.c \
66 scoped_mmap.c \
67 signals.c \
68 signals-state-save-restore.c \
69 tdesc.c \
70 thread-pool.c \
71 xml-utils.c \
72 $(selftest)
73
74 # Double-check that no defines are missing from our configury.
75 check-defines:
76 cd $(srcdir) && emacs --script check-defines.el
This page took 0.040075 seconds and 5 git commands to generate.