Remove path name from test case
[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 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 @LARGEFILE_CPPFLAGS@
27
28 override CXX += $(CXX_DIALECT)
29
30 AM_CXXFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
31
32 noinst_LIBRARIES = libgdbsupport.a
33
34 if SELFTEST
35 selftest = selftest.cc
36 endif
37
38 if HAVE_PIPE_OR_PIPE2
39 eventpipe = event-pipe.cc
40 endif
41
42 libgdbsupport_a_SOURCES = \
43 agent.cc \
44 btrace-common.cc \
45 cleanups.cc \
46 common-debug.cc \
47 common-exceptions.cc \
48 common-inferior.cc \
49 common-regcache.cc \
50 common-utils.cc \
51 environ.cc \
52 errors.cc \
53 event-loop.cc \
54 fileio.cc \
55 filestuff.cc \
56 format.cc \
57 gdb-dlfcn.cc \
58 gdb-hashtab.cc \
59 gdb_obstack.cc \
60 gdb_regex.cc \
61 gdb_tilde_expand.cc \
62 gdb_wait.cc \
63 gdb_vecs.cc \
64 job-control.cc \
65 netstuff.cc \
66 new-op.cc \
67 pathstuff.cc \
68 print-utils.cc \
69 ptid.cc \
70 rsp-low.cc \
71 run-time-clock.cc \
72 safe-strerror.cc \
73 scoped_mmap.cc \
74 search.cc \
75 signals.cc \
76 signals-state-save-restore.cc \
77 tdesc.cc \
78 thread-pool.cc \
79 xml-utils.cc \
80 ${eventpipe} \
81 $(selftest)
82
83 # Double-check that no defines are missing from our configury.
84 check-defines:
85 cd $(srcdir) && emacs --script check-defines.el