Fix: symbols eliminated by --gc-sections still trigger warnings for gnu.warning.SYM
[binutils-gdb.git] / sim / ppc / local.mk
blob9f55629dfe162e3d5ef8af91810bdf866b547df1
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 1994-2023 Free Software Foundation, Inc.
4 ##
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.
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.
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 %C%_run_SOURCES =
19 %C%_run_LDADD = \
20 %D%/main.o \
21 %D%/libsim.a \
22 $(SIM_COMMON_LIBS)
24 ## This makes sure common parts are available before building the arch-subdirs
25 ## which will refer to these.
26 SIM_ALL_RECURSIVE_DEPS += common/libcommon.a
27 %D%/libsim.a: common/libcommon.a
28 $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
30 ## Helper targets for running make from the top-level due to run's sis.o.
31 %D%/%.o: %D%/%.c | %D%/libsim.a $(SIM_ALL_RECURSIVE_DEPS)
32 $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
34 noinst_PROGRAMS += %D%/run
36 %D%/spreg.c: @MAINT@ %D%/ppc-spr-table %D%/spreg-gen.py %D%/$(am__dirstamp)
37 $(AM_V_GEN)$(srcdir)/%D%/spreg-gen.py --source $@.tmp
38 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $(srcdir)/%D%/spreg.c
39 $(AM_V_at)touch $(srcdir)/%D%/spreg.c
41 %D%/spreg.h: @MAINT@ %D%/ppc-spr-table %D%/spreg-gen.py %D%/$(am__dirstamp)
42 $(AM_V_GEN)$(srcdir)/%D%/spreg-gen.py --header $@.tmp
43 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $(srcdir)/%D%/spreg.h
44 $(AM_V_at)touch $(srcdir)/%D%/spreg.h
46 %C%docdir = $(docdir)/%C%
47 %C%doc_DATA = %D%/BUGS %D%/INSTALL %D%/README %D%/RUN