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 interp.o \
14 support.o idecode.o semantics.o itable.o misc.o \
27 # List of extra dependencies.
28 # Generally this consists of simulator specific files included by sim-main.h.
29 SIM_EXTRA_DEPS
= itable.h idecode.h cpu.h alu.h
31 # List of extra libraries to link with
37 # List of flags to always pass to $(CC).
38 SIM_WARNINGS
=@sim_warnings@
39 SIM_ENDIAN
=@sim_endian@
40 SIM_HOSTENDIAN
=@sim_hostendian@
41 SIM_INLINE
=@sim_inline@
42 SIM_RESERVED_BITS
=@sim_reserved_bits@
43 SIM_ALIGNMENT
=@sim_alignment@
50 $(SIM_RESERVED_BITS
) \
51 -DWITH_TARGET_WORD_MSB
=31
53 # List of main object files for `run'.
56 # Dependency of `clean' to clean any extra files.
57 SIM_EXTRA_CLEAN
= clean-igen
60 ## COMMON_POST_CONFIG_FRAG
62 # Rules need to build $(SIM_OBJS), plus whatever else the target wants.
64 # ... target specific rules ...
66 BUILT_SRC_FROM_IGEN
= \
78 $(BUILT_SRC_FROM_IGEN
): tmp-igen
83 rm -f
$(BUILT_SRC_FROM_IGEN
)
84 rm -f tmp-igen tmp-insns
89 tmp-igen
: $(srcdir)/dc
$(srcdir)/insns
$(srcdir)/ic ..
/igen
/igen
100 -n icache.h
-hc tmp-icache.h \
101 -n icache.c
-c tmp-icache.c \
102 -n semantics.h
-hs tmp-semantics.h \
103 -n semantics.c
-s tmp-semantics.c \
104 -n idecode.h
-hd tmp-idecode.h \
105 -n idecode.c
-d tmp-idecode.c \
106 -n model.h
-hm tmp-model.h \
107 -n model.c
-m tmp-model.c \
108 -n support.h
-hf tmp-support.h \
109 -n support.c
-f tmp-support.c \
110 -n itable.h
-ht tmp-itable.h \
111 -n itable.c
-t tmp-itable.c
112 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
113 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
114 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
115 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
116 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
117 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
118 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
119 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
120 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
121 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
122 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
123 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
128 $(srcdir)/..
/common
/sim-basics.h \
130 $(srcdir)/..
/common
/sim-config.h \
131 $(srcdir)/..
/common
/sim-inline.h \
132 $(srcdir)/..
/common
/sim-types.h \
133 $(srcdir)/..
/common
/sim-bits.h \
134 $(srcdir)/..
/common
/sim-endian.h \
135 $(srcdir)/..
/common
/sim-options.h \
140 $(srcdir)/..
/common
/sim-alu.h \
141 $(srcdir)/..
/common
/sim-core.h \
142 $(srcdir)/..
/common
/sim-events.h \
143 $(srcdir)/..
/common
/sim-fpu.h \
145 idecode.o
: $(ENGINE_H
)
146 semantics.o
: $(ENGINE_H
)
147 support.o
: $(ENGINE_H
)
148 interp.o
: interp.c
$(ENGINE_H
)
149 sim-calls.o
: sim-calls.c
$(ENGINE_H
)
150 cpu.o
: cpu.c
$(ENGINE_H
)