1 # Makefile for blah ...
6 ## COMMON_PRE_CONFIG_FRAG
8 # These variables are given default values in COMMON_PRE_CONFIG_FRAG.
9 # We override the ones we need to here.
10 # Not all of these need to be mentioned, only the necessary ones.
12 # List of object files, less common parts.
13 SIM_OBJS
= sim-endian.o sim-bits.o sim-config.o \
14 support.o idecode.o semantics.o itable.o misc.o \
35 # List of extra dependencies.
36 # Generally this consists of simulator specific files included by sim-main.h.
37 SIM_EXTRA_DEPS
= itable.h idecode.h cpu.h alu.h
39 # List of extra libraries to link with
45 # List of flags to always pass to $(CC).
46 SIM_WARNINGS
=@sim_warnings@
47 SIM_ENDIAN
=@sim_endian@
48 SIM_HOSTENDIAN
=@sim_hostendian@
49 SIM_INLINE
=@sim_inline@
50 SIM_RESERVED_BITS
=@sim_reserved_bits@
51 SIM_ALIGNMENT
=@sim_alignment@
58 $(SIM_RESERVED_BITS
) \
59 -DWITH_TARGET_WORD_MSB
=31
61 # List of main object files for `run'.
64 # Dependency of `clean' to clean any extra files.
65 SIM_EXTRA_CLEAN
= clean-igen
68 ## COMMON_POST_CONFIG_FRAG
70 # Rules need to build $(SIM_OBJS), plus whatever else the target wants.
72 # ... target specific rules ...
74 BUILT_SRC_FROM_IGEN
= \
86 $(BUILT_SRC_FROM_IGEN
): tmp-igen
91 rm -f
$(BUILT_SRC_FROM_IGEN
)
92 rm -f tmp-igen tmp-insns
97 tmp-igen
: $(srcdir)/dc
$(srcdir)/insns
$(srcdir)/ic ..
/igen
/igen
109 -n icache.h
-hc tmp-icache.h \
110 -n icache.c
-c tmp-icache.c \
111 -n semantics.h
-hs tmp-semantics.h \
112 -n semantics.c
-s tmp-semantics.c \
113 -n idecode.h
-hd tmp-idecode.h \
114 -n idecode.c
-d tmp-idecode.c \
115 -n model.h
-hm tmp-model.h \
116 -n model.c
-m tmp-model.c \
117 -n support.h
-hf tmp-support.h \
118 -n support.c
-f tmp-support.c \
119 -n itable.h
-ht tmp-itable.h \
120 -n itable.c
-t tmp-itable.c
121 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
122 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
123 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
124 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
125 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
126 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
127 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
128 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
129 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
130 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
131 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
132 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
137 $(srcdir)/..
/common
/sim-basics.h \
139 $(srcdir)/..
/common
/sim-config.h \
140 $(srcdir)/..
/common
/sim-inline.h \
141 $(srcdir)/..
/common
/sim-types.h \
142 $(srcdir)/..
/common
/sim-bits.h \
143 $(srcdir)/..
/common
/sim-endian.h \
144 $(srcdir)/..
/common
/sim-options.h \
149 $(srcdir)/..
/common
/sim-alu.h \
150 $(srcdir)/..
/common
/sim-core.h \
151 $(srcdir)/..
/common
/sim-events.h \
152 $(srcdir)/..
/common
/sim-fpu.h \
153 $(srcdir)/..
/common
/sim-engine.h \
155 idecode.o
: $(ENGINE_H
)
156 semantics.o
: $(ENGINE_H
)
157 support.o
: $(ENGINE_H
)
158 interp.o
: interp.c
$(ENGINE_H
)
159 sim-calls.o
: sim-calls.c
$(ENGINE_H
)
160 cpu.o
: cpu.c
$(ENGINE_H
)