sim: nltvals: unify common syscall tables
[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 cgen-utils.o cgen-trace.o cgen-scache.o \
10 cgen-run.o \
11 sim-if.o arch.o \
12 cpu.o decode.o sem.o model.o mloop.o \
13 lm32.o traps.o user.o
14
15 # List of extra dependencies.
16 # Generally this consists of simulator specific files included by sim-main.h.
17 SIM_EXTRA_DEPS = $(CGEN_INCLUDE_DEPS) $(srcdir)/../../opcodes/lm32-desc.h \
18 eng.h
19
20 # List of flags to always pass to $(CC).
21 #SIM_EXTRA_CFLAGS =
22
23 SIM_EXTRA_CLEAN = lm32-clean
24
25 ## COMMON_POST_CONFIG_FRAG
26
27 arch = lm32
28
29 LM32BF_INCLUDE_DEPS = \
30 $(CGEN_MAIN_CPU_DEPS) \
31 cpu.h decode.h eng.h
32
33 # FIXME: Use of `mono' is wip.
34 mloop.c eng.h: stamp-mloop
35 stamp-mloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile
36 $(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
37 -mono -fast -pbb -switch sem-switch.c \
38 -cpu lm32bf -infile $(srcdir)/mloop.in
39 $(SHELL) $(srcroot)/move-if-change eng.hin eng.h
40 $(SHELL) $(srcroot)/move-if-change mloop.cin mloop.c
41 touch stamp-mloop
42
43 lm32-clean:
44 rm -f mloop.c eng.h stamp-mloop
45 rm -f stamp-arch stamp-cpu
46 rm -f tmp-*
47
48 # cgen support, enable with --enable-cgen-maint
49 CGEN_MAINT = ; @true
50 # The following line is commented in or out depending upon --enable-cgen-maint.
51 @CGEN_MAINT@CGEN_MAINT =
52
53 stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CPU_DIR)/lm32.cpu
54 $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
55 archfile=$(CPU_DIR)/lm32.cpu \
56 FLAGS="with-scache with-profile=fn"
57 touch stamp-arch
58 arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
59
60 stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/lm32.cpu
61 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
62 cpu=lm32bf mach=lm32 SUFFIX= \
63 archfile=$(CPU_DIR)/lm32.cpu \
64 FLAGS="with-scache with-profile=fn" \
65 EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
66 touch stamp-cpu
67 cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu