]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/common/local.mk
1 ## See sim/Makefile.am.
3 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
5 # This program 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.
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.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Parts of the common/ sim code that have been unified.
19 # Most still lives in common/Make-common.in.
21 AM_CPPFLAGS
+= -I
$(srcdir)/%D
%
23 # This makes sure common parts are available before building the arch-subdirs
24 # which will refer to these.
25 SIM_ALL_RECURSIVE_DEPS
+= \
28 # NB: libcommon.a isn't used directly by ports. We need a target for common
29 # objects to be a part of, and ports use the individual objects directly.
30 noinst_LIBRARIES
+= %D
%/libcommon.a
31 %C
%_libcommon_a_CPPFLAGS
= \
36 %C
%_libcommon_a_SOURCES
= \
39 %D
%/target-newlib-errno.c \
40 %D
%/target-newlib-open.c \
41 %D
%/target-newlib-signal.c \
44 %D
%/version.c
: %D
%/version.c-stamp
; @true
45 %D
%/version.c-stamp
: $(srcroot
)/gdb
/version.in
$(srcroot
)/bfd
/version.h
$(srcdir)/%D
%/create-version.sh
46 $(AM_V_GEN
)$(SHELL
) $(srcdir)/%D
%/create-version.sh
$(srcroot
)/gdb
$@.tmp
47 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
$@.tmp
$(@
:-stamp
=)
51 %D
%/version.c
%D
%/version.c-stamp