arm: Support pac_key_* register operand for MRS/MSR in Armv8.1-M Mainline
[binutils-gdb.git] / sim / moxie / local.mk
blob1aa207a1b4fd0fe6ef2a1fa0d69a103f02184dce
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 2008-2024 Free Software Foundation, Inc.
4 ## Written by Anthony Green
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 3 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
19 AM_CPPFLAGS_%C% = -DDTB="\"$(dtbdir)/moxie-gdb.dtb\""
21 nodist_%C%_libsim_a_SOURCES = \
22 %D%/modules.c
23 %C%_libsim_a_SOURCES = \
24 $(common_libcommon_a_SOURCES)
25 %C%_libsim_a_LIBADD = \
26 $(patsubst %,%D%/%,$(SIM_NEW_COMMON_OBJS)) \
27 $(patsubst %,%D%/dv-%.o,$(SIM_HW_DEVICES)) \
28 %D%/interp.o \
29 %D%/sim-resume.o
30 $(%C%_libsim_a_OBJECTS) $(%C%_libsim_a_LIBADD): %D%/hw-config.h
32 noinst_LIBRARIES += %D%/libsim.a
34 ## Override wildcards that trigger common/modules.c to be (incorrectly) used.
35 %D%/modules.o: %D%/modules.c
37 %D%/%.o: common/%.c ; $(SIM_COMPILE)
38 -@am__include@ %D%/$(DEPDIR)/*.Po
40 %C%_run_SOURCES =
41 %C%_run_LDADD = \
42 %D%/nrun.o \
43 %D%/libsim.a \
44 $(SIM_COMMON_LIBS)
46 noinst_PROGRAMS += %D%/run
48 dtbdir = $(datadir)/gdb/dtb
50 dtb_DATA = %D%/moxie-gdb.dtb
52 %D%/moxie-gdb.dtb: @MAINT@ %D%/moxie-gdb.dts %D%/$(am__dirstamp)
53 $(AM_V_GEN) \
54 if test "x$(DTC)" != x; then \
55 $(DTC) -O dtb -o $@.tmp ${srcdir}/%D%/moxie-gdb.dts || exit 1; \
56 $(SHELL) $(srcroot)/move-if-change $@.tmp ${srcdir}/%D%/moxie-gdb.dtb || exit 1; \
57 touch ${srcdir}/%D%/moxie-gdb.dtb; \
58 else \
59 echo "Could not update the moxie-gdb.dtb file because the device "; \
60 echo "tree compiler tool (dtc) is missing. Install the tool to "; \
61 echo "update the device tree blob."; \