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.
14 $(SIM_NEW_COMMON_OBJS
) \
15 support.o idecode.o semantics.o itable.o misc.o \
25 # List of extra dependencies.
26 # Generally this consists of simulator specific files included by sim-main.h.
27 SIM_EXTRA_DEPS
= itable.h idecode.h cpu.h alu.h
29 # List of extra libraries to link with
35 # List of flags to always pass to $(CC).
38 -DWITH_TARGET_WORD_MSB
=31
40 # List of main object files for `run'.
43 # Dependency of `clean' to clean any extra files.
44 SIM_EXTRA_CLEAN
= clean-igen
47 ## COMMON_POST_CONFIG_FRAG
49 # Rules need to build $(SIM_OBJS), plus whatever else the target wants.
51 # ... target specific rules ...
53 BUILT_SRC_FROM_IGEN
= \
65 $(BUILT_SRC_FROM_IGEN
): tmp-igen
70 rm -f
$(BUILT_SRC_FROM_IGEN
)
71 rm -f tmp-igen tmp-insns
76 tmp-igen
: $(srcdir)/tic80.dc
$(srcdir)/tic80.igen
$(srcdir)/tic80.ic ..
/igen
/igen
85 -o
$(srcdir)/tic80.dc \
86 -k
$(srcdir)/tic80.ic \
87 -i
$(srcdir)/tic80.igen \
88 -n icache.h
-hc tmp-icache.h \
89 -n icache.c
-c tmp-icache.c \
90 -n semantics.h
-hs tmp-semantics.h \
91 -n semantics.c
-s tmp-semantics.c \
92 -n idecode.h
-hd tmp-idecode.h \
93 -n idecode.c
-d tmp-idecode.c \
94 -n model.h
-hm tmp-model.h \
95 -n model.c
-m tmp-model.c \
96 -n support.h
-hf tmp-support.h \
97 -n support.c
-f tmp-support.c \
98 -n itable.h
-ht tmp-itable.h \
99 -n itable.c
-t tmp-itable.c
100 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
101 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
102 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
103 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
104 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
105 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
106 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
107 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
108 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
109 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
110 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
111 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
116 $(srcdir)/..
/common
/sim-basics.h \
118 $(srcdir)/..
/common
/sim-config.h \
119 $(srcdir)/..
/common
/sim-inline.h \
120 $(srcdir)/..
/common
/sim-types.h \
121 $(srcdir)/..
/common
/sim-bits.h \
122 $(srcdir)/..
/common
/sim-endian.h \
123 $(srcdir)/..
/common
/sim-options.h \
128 $(srcdir)/..
/common
/sim-alu.h \
129 $(srcdir)/..
/common
/sim-core.h \
130 $(srcdir)/..
/common
/sim-events.h \
131 $(srcdir)/..
/common
/sim-fpu.h \
132 $(srcdir)/..
/common
/sim-engine.h \
134 idecode.o
: $(ENGINE_H
)
135 semantics.o
: $(ENGINE_H
)
136 support.o
: $(ENGINE_H
)
137 interp.o
: interp.c
$(ENGINE_H
)
138 sim-calls.o
: sim-calls.c
$(ENGINE_H
)
139 cpu.o
: cpu.c
$(ENGINE_H
)