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 \
24 # List of extra dependencies.
25 # Generally this consists of simulator specific files included by sim-main.h.
26 SIM_EXTRA_DEPS
= itable.h idecode.h cpu.h alu.h
31 # List of flags to always pass to $(CC).
32 SIM_WARNINGS
=@sim_warnings@
33 SIM_ENDIAN
=@sim_endian@
34 SIM_HOSTENDIAN
=@sim_hostendian@
35 SIM_INLINE
=@sim_inline@
36 SIM_RESERVED_BITS
=@sim_reserved_bits@
43 $(SIM_RESERVED_BITS
) \
44 -DWITH_TARGET_WORD_MSB
=31
46 # List of main object files for `run'.
49 # Dependency of `clean' to clean any extra files.
50 SIM_EXTRA_CLEAN
= clean-igen
53 ## COMMON_POST_CONFIG_FRAG
55 # Rules need to build $(SIM_OBJS), plus whatever else the target wants.
57 # ... target specific rules ...
59 BUILT_SRC_FROM_IGEN
= \
71 $(BUILT_SRC_FROM_IGEN
): tmp-igen
76 rm -f
$(BUILT_SRC_FROM_IGEN
)
77 rm -f tmp-igen tmp-insns
82 tmp-igen
: $(srcdir)/dc
$(srcdir)/insns
$(srcdir)/ic ..
/igen
/igen
84 @echo
"Generating short version ..."
88 -G omit-line-numbers \
94 -n icache.h
-hc tmp-icache.h \
95 -n icache.c
-c tmp-icache.c \
96 -n semantics.h
-hs tmp-semantics.h \
97 -n semantics.c
-s tmp-semantics.c \
98 -n idecode.h
-hd tmp-idecode.h \
99 -n idecode.c
-d tmp-idecode.c \
100 -n model.h
-hm tmp-model.h \
101 -n model.c
-m tmp-model.c \
102 -n support.h
-hf tmp-support.h \
103 -n support.c
-f tmp-support.c \
104 -n itable.h
-ht tmp-itable.h \
105 -n itable.c
-t tmp-itable.c
106 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
107 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
108 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
109 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
110 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
111 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
112 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
113 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
114 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
115 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
116 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
117 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
122 $(srcdir)/..
/common
/sim-basics.h \
124 $(srcdir)/..
/common
/sim-config.h \
125 $(srcdir)/..
/common
/sim-inline.h \
126 $(srcdir)/..
/common
/sim-types.h \
127 $(srcdir)/..
/common
/sim-bits.h \
128 $(srcdir)/..
/common
/sim-endian.h \
133 $(srcdir)/..
/common
/sim-alu.h \
134 $(srcdir)/..
/common
/sim-core.h \
135 $(srcdir)/..
/common
/sim-events.h \
137 idecode.o
: $(ENGINE_H
)
138 semantics.o
: $(ENGINE_H
)
139 interp.o
: interp.c
$(ENGINE_H
)
140 sim-calls.o
: sim-calls.c
$(ENGINE_H
)
141 cpu.o
: cpu.c
$(ENGINE_H
)