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