3f1c432c3720e472e3671fb28e7862e64e87d8f9
1 # Makefile template for configure for the or1k simulator
2 # Copyright (C) 2017-2021 Free Software Foundation, Inc.
4 # This file is part of GDB, the GNU debugger.
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 ## COMMON_PRE_CONFIG_FRAG
33 $(SIM_NEW_COMMON_OBJS
) \
41 SIM_OBJS
+= $(OR1K_OBJS
)
43 # Extra headers included by sim-main.h.
45 $(CGEN_INCLUDE_DEPS
) \
47 $(srcdir)/..
/..
/opcodes
/or1k-desc.h \
56 ## COMMON_POST_CONFIG_FRAG
62 OR1K32BF_INCLUDE_DEPS
= \
63 $(CGEN_MAIN_CPU_DEPS
) \
68 or1k.o
: or1k.c
$(OR1K32BF_INCLUDE_DEPS
)
72 sim-if.o
: sim-if.c
$(SIM_MAIN_DEPS
) $(srcdir)/..
/common
/sim-core.h eng.h
76 traps.o
: traps.c
$(SIM_MAIN_DEPS
) eng.h
80 stamps
: stamp-arch stamp-cpu
82 # NOTE: Generated source files are specified as full paths,
83 # e.g. $(srcdir)/arch.c, because make may decide the files live
84 # in objdir otherwise.
89 $(CPU_DIR
)/or1kcommon.cpu \
90 $(CPU_DIR
)/or1korbis.cpu \
91 $(CPU_DIR
)/or1korfpx.cpu \
94 stamp-arch
: $(CGEN_READ_SCM
) $(CGEN_ARCH_SCM
) $(OR1K_CGEN_DEPS
)
95 $(MAKE
) cgen-arch
$(CGEN_FLAGS_TO_PASS
) \
97 archfile
=$(CPU_DIR
)/or1k.cpu \
100 $(srcdir)/arch.h
$(srcdir)/arch.c
$(srcdir)/cpuall.h
: $(CGEN_MAINT
) stamp-arch
103 stamp-cpu
: $(CGEN_READ_SCM
) $(CGEN_CPU_SCM
) $(OR1K_CGEN_DEPS
)
104 $(MAKE
) cgen-cpu-decode
$(CGEN_FLAGS_TO_PASS
) \
107 archfile
=$(CPU_DIR
)/or1k.cpu \
108 FLAGS
="with-scache" \
109 EXTRAFILES
="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
111 $(srcdir)/cpu.h
$(srcdir)/cpu.c
$(srcdir)/model.c
$(srcdir)/sem.c
$(srcdir)/sem-switch.c
$(srcdir)/decode.c
$(srcdir)/decode.h
: $(CGEN_MAINT
) stamp-cpu