1 # Makefile template for Configure for the fr30 simulator
2 # Copyright (C) 1998 Free Software Foundation, Inc.
3 # Contributed by Cygnus Support.
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 2 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 along
16 # with this program; if not, write to the Free Software Foundation, Inc.,
17 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 ## COMMON_PRE_CONFIG_FRAG
21 FR30_OBJS
= fr30.o cpu.o decode.o sem.o model.o mloop.o
23 CONFIG_DEVICES
= dv-sockser.o
27 $(SIM_NEW_COMMON_OBJS
) \
33 cgen-utils.o cgen-trace.o cgen-scache.o \
34 cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
40 # Extra headers included by sim-main.h.
42 $(CGEN_INCLUDE_DEPS
) \
43 arch.h cpuall.h fr30-sim.h
$(srcdir)/..
/..
/opcodes
/fr30-desc.h
48 SIM_EXTRA_CLEAN
= fr30-clean
50 # This selects the fr30 newlib/libgloss syscall definitions.
51 NL_TARGET
= -DNL_TARGET_fr30
53 ## COMMON_POST_CONFIG_FRAG
57 sim-if.o
: sim-if.c
$(SIM_MAIN_DEPS
) $(srcdir)/..
/common
/sim-core.h
59 arch.o
: arch.c
$(SIM_MAIN_DEPS
)
61 devices.o
: devices.c
$(SIM_MAIN_DEPS
)
65 FR30BF_INCLUDE_DEPS
= \
66 $(CGEN_MAIN_CPU_DEPS
) \
69 fr30.o
: fr30.c
$(FR30BF_INCLUDE_DEPS
)
71 # FIXME: Use of `mono' is wip.
72 mloop.c eng.h
: stamp-mloop
73 stamp-mloop
: $(srcdir)/..
/common
/genmloop.sh mloop.in Makefile
74 $(SHELL
) $(srccom
)/genmloop.sh \
75 -mono
-fast
-pbb
-switch sem-switch.c \
76 -cpu fr30bf
-infile
$(srcdir)/mloop.in
77 $(SHELL
) $(srcroot
)/move-if-change eng.hin eng.h
78 $(SHELL
) $(srcroot
)/move-if-change mloop.cin mloop.c
80 mloop.o
: mloop.c sem-switch.c
$(FR30BF_INCLUDE_DEPS
)
82 cpu.o
: cpu.c
$(FR30BF_INCLUDE_DEPS
)
83 decode.o
: decode.c
$(FR30BF_INCLUDE_DEPS
)
84 sem.o
: sem.c
$(FR30BF_INCLUDE_DEPS
)
85 model.o
: model.c
$(FR30BF_INCLUDE_DEPS
)
88 rm -f mloop.c eng.h stamp-mloop