sim: remove use of PTR
[binutils-gdb.git] / sim / m32r / Makefile.in
1 # Makefile template for Configure for the m32r simulator
2 # Copyright (C) 1996-2022 Free Software Foundation, Inc.
3 # Contributed by Cygnus Support.
4 #
5 # This file is part of GDB, the GNU debugger.
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 ## COMMON_PRE_CONFIG_FRAG
21
22 M32R_OBJS = m32r.o cpu.o decode.o sem.o model.o mloop.o
23 M32RX_OBJS = m32rx.o cpux.o decodex.o modelx.o mloopx.o
24 M32R2_OBJS = m32r2.o cpu2.o decode2.o model2.o mloop2.o
25
26 SIM_OBJS = \
27 $(SIM_NEW_COMMON_OBJS) \
28 cgen-utils.o cgen-trace.o cgen-scache.o \
29 cgen-run.o \
30 sim-if.o arch.o \
31 $(M32R_OBJS) \
32 $(M32RX_OBJS) \
33 $(M32R2_OBJS) \
34 traps.o
35
36 SIM_EXTRA_HW_DEVICES = m32r_cache m32r_uart
37
38 # Extra headers included by sim-main.h.
39 SIM_EXTRA_DEPS = \
40 $(CGEN_INCLUDE_DEPS) \
41 arch.h cpuall.h m32r-sim.h $(srcdir)/../../opcodes/m32r-desc.h \
42 eng.h engx.h eng2.h
43
44 SIM_EXTRA_CLEAN = m32r-clean
45
46 # Some modules don't build cleanly yet.
47 cpu.o cpu2.o cpux.o m32r.o m32r2.o m32rx.o mloop.o mloop2.o mloopx.o sem.o sim-if.o traps.o: SIM_WERROR_CFLAGS =
48
49 ## COMMON_POST_CONFIG_FRAG
50
51 arch = m32r
52
53 m32r-clean:
54 rm -f stamp-arch stamp-cpu stamp-xcpu stamp-2cpu
55 rm -f tmp-*
56
57 # NOTE: Generated source files are specified as full paths,
58 # e.g. $(srcdir)/arch.c, because make may decide the files live
59 # in objdir otherwise.
60
61 stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CPU_DIR)/m32r.cpu Makefile
62 $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
63 archfile=$(CPU_DIR)/m32r.cpu \
64 FLAGS="with-scache with-profile=fn"
65 $(SILENCE) touch $@
66 $(srcdir)/arch.h $(srcdir)/arch.c $(srcdir)/cpuall.h: $(CGEN_MAINT) stamp-arch
67 @true
68
69 stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/m32r.cpu Makefile
70 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
71 cpu=m32rbf mach=m32r SUFFIX= \
72 archfile=$(CPU_DIR)/m32r.cpu \
73 FLAGS="with-scache with-profile=fn" \
74 EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
75 $(SILENCE) touch $@
76 $(srcdir)/cpu.h $(srcdir)/sem.c $(srcdir)/sem-switch.c $(srcdir)/model.c $(srcdir)/decode.c $(srcdir)/decode.h: $(CGEN_MAINT) stamp-cpu
77 @true
78
79 stamp-xcpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/m32r.cpu Makefile
80 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
81 cpu=m32rxf mach=m32rx SUFFIX=x \
82 archfile=$(CPU_DIR)/m32r.cpu \
83 FLAGS="with-scache with-profile=fn" \
84 EXTRAFILES="$(CGEN_CPU_SEMSW)"
85 $(SILENCE) touch $@
86 $(srcdir)/cpux.h $(srcdir)/semx-switch.c $(srcdir)/modelx.c $(srcdir)/decodex.c $(srcdir)/decodex.h: $(CGEN_MAINT) stamp-xcpu
87 @true
88
89 stamp-2cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/m32r.cpu Makefile
90 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
91 cpu=m32r2f mach=m32r2 SUFFIX=2 \
92 archfile=$(CPU_DIR)/m32r.cpu \
93 FLAGS="with-scache with-profile=fn" \
94 EXTRAFILES="$(CGEN_CPU_SEMSW)"
95 $(SILENCE) touch $@
96 $(srcdir)/cpu2.h $(srcdir)/sem2-switch.c $(srcdir)/model2.c $(srcdir)/decode2.c $(srcdir)/decode2.h: $(CGEN_MAINT) stamp-2cpu
97 @true