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 \
34 # List of extra dependencies.
35 # Generally this consists of simulator specific files included by sim-main.h.
36 SIM_EXTRA_DEPS
= itable.h idecode.h cpu.h alu.h
38 # List of extra libraries to link with
44 # List of flags to always pass to $(CC).
45 SIM_WARNINGS
=@sim_warnings@
46 SIM_ENDIAN
=@sim_endian@
47 SIM_HOSTENDIAN
=@sim_hostendian@
48 SIM_INLINE
=@sim_inline@
49 SIM_RESERVED_BITS
=@sim_reserved_bits@
50 SIM_ALIGNMENT
=@sim_alignment@
57 $(SIM_RESERVED_BITS
) \
58 -DWITH_TARGET_WORD_MSB
=31
60 # List of main object files for `run'.
63 # Dependency of `clean' to clean any extra files.
64 SIM_EXTRA_CLEAN
= clean-igen
67 ## COMMON_POST_CONFIG_FRAG
69 # Rules need to build $(SIM_OBJS), plus whatever else the target wants.
71 # ... target specific rules ...
73 BUILT_SRC_FROM_IGEN
= \
85 $(BUILT_SRC_FROM_IGEN
): tmp-igen
90 rm -f
$(BUILT_SRC_FROM_IGEN
)
91 rm -f tmp-igen tmp-insns
96 tmp-igen
: $(srcdir)/dc
$(srcdir)/insns
$(srcdir)/ic ..
/igen
/igen
108 -n icache.h
-hc tmp-icache.h \
109 -n icache.c
-c tmp-icache.c \
110 -n semantics.h
-hs tmp-semantics.h \
111 -n semantics.c
-s tmp-semantics.c \
112 -n idecode.h
-hd tmp-idecode.h \
113 -n idecode.c
-d tmp-idecode.c \
114 -n model.h
-hm tmp-model.h \
115 -n model.c
-m tmp-model.c \
116 -n support.h
-hf tmp-support.h \
117 -n support.c
-f tmp-support.c \
118 -n itable.h
-ht tmp-itable.h \
119 -n itable.c
-t tmp-itable.c
120 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
121 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
122 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
123 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
124 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
125 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
126 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
127 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
128 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
129 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
130 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
131 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
136 $(srcdir)/..
/common
/sim-basics.h \
138 $(srcdir)/..
/common
/sim-config.h \
139 $(srcdir)/..
/common
/sim-inline.h \
140 $(srcdir)/..
/common
/sim-types.h \
141 $(srcdir)/..
/common
/sim-bits.h \
142 $(srcdir)/..
/common
/sim-endian.h \
143 $(srcdir)/..
/common
/sim-options.h \
148 $(srcdir)/..
/common
/sim-alu.h \
149 $(srcdir)/..
/common
/sim-core.h \
150 $(srcdir)/..
/common
/sim-events.h \
151 $(srcdir)/..
/common
/sim-fpu.h \
152 $(srcdir)/..
/common
/sim-engine.h \
154 idecode.o
: $(ENGINE_H
)
155 semantics.o
: $(ENGINE_H
)
156 support.o
: $(ENGINE_H
)
157 interp.o
: interp.c
$(ENGINE_H
)
158 sim-calls.o
: sim-calls.c
$(ENGINE_H
)
159 cpu.o
: cpu.c
$(ENGINE_H
)