Regenerate configure in sim
[deliverable/binutils-gdb.git] / sim / lm32 / Makefile.in
CommitLineData
c28c63d8
JB
1# Makefile for Lattice Mico32 simulator.
2# Contributed by Jon Beniston <jon@beniston.com>
3
4## COMMON_PRE_CONFIG_FRAG
5
6# List of object files, less common parts.
7SIM_OBJS = \
8 $(SIM_NEW_COMMON_OBJS) \
9 sim-cpu.o \
10 sim-hload.o \
11 sim-hrw.o \
12 sim-model.o \
13 sim-reg.o \
14 sim-signal.o \
15 cgen-utils.o cgen-trace.o cgen-scache.o \
16 cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
17 sim-if.o arch.o \
18 cpu.o decode.o sem.o model.o mloop.o \
19 lm32.o traps.o user.o
b97514f2 20
c28c63d8
JB
21# List of extra dependencies.
22# Generally this consists of simulator specific files included by sim-main.h.
23SIM_EXTRA_DEPS = $(CGEN_INCLUDE_DEPS) $(srcdir)/../../opcodes/lm32-desc.h
24
25# List of flags to always pass to $(CC).
26#SIM_EXTRA_CFLAGS =
27
c28c63d8
JB
28SIM_EXTRA_CLEAN = lm32-clean
29
30# This selects the lm32 newlib/libgloss syscall definitions.
31NL_TARGET = -DNL_TARGET_lm32
32
33## COMMON_POST_CONFIG_FRAG
34
35arch = lm32
36
37arch.o: arch.c $(SIM_MAIN_DEPS)
38
b97514f2
DE
39traps.o: traps.c targ-vals.h $(SIM_MAIN_DEPS)
40
c28c63d8
JB
41sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h
42
43LM32BF_INCLUDE_DEPS = \
44 $(CGEN_MAIN_CPU_DEPS) \
45 cpu.h decode.h eng.h
46
47lm32.o: lm32.c $(LM32BF_INCLUDE_DEPS)
48
49# FIXME: Use of `mono' is wip.
50mloop.c eng.h: stamp-mloop
51stamp-mloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile
52 $(SHELL) $(srccom)/genmloop.sh \
53 -mono -fast -pbb -switch sem-switch.c \
54 -cpu lm32bf -infile $(srcdir)/mloop.in
55 $(SHELL) $(srcroot)/move-if-change eng.hin eng.h
56 $(SHELL) $(srcroot)/move-if-change mloop.cin mloop.c
57 touch stamp-mloop
58mloop.o: mloop.c sem-switch.c
59
60cpu.o: cpu.c $(LM32BF_INCLUDE_DEPS)
61decode.o: decode.c $(LM32BF_INCLUDE_DEPS)
62sem.o: sem.c $(LM32BF_INCLUDE_DEPS)
63model.o: model.c $(LM32BF_INCLUDE_DEPS)
64
65lm32-clean:
66 rm -f mloop.c eng.h stamp-mloop
67 rm -f stamp-arch stamp-cpu
68 rm -f tmp-*
69
70# cgen support, enable with --enable-cgen-maint
71CGEN_MAINT = ; @true
72# The following line is commented in or out depending upon --enable-cgen-maint.
73@CGEN_MAINT@CGEN_MAINT =
74
c92e840b 75stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CPU_DIR)/lm32.cpu
c28c63d8 76 $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
c92e840b 77 archfile=$(CPU_DIR)/lm32.cpu \
c28c63d8
JB
78 FLAGS="with-scache with-profile=fn"
79 touch stamp-arch
80arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
81
c92e840b 82stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/lm32.cpu
c28c63d8
JB
83 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
84 cpu=lm32bf mach=lm32 SUFFIX= \
c92e840b 85 archfile=$(CPU_DIR)/lm32.cpu \
c28c63d8
JB
86 FLAGS="with-scache with-profile=fn" \
87 EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
88 touch stamp-cpu
89cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
This page took 0.27203 seconds and 4 git commands to generate.