* objcopy.c (parse_flags): Make flag check case insensitive.
[deliverable/binutils-gdb.git] / sim / tic80 / Makefile.in
1 # Makefile for blah ...
2 # Copyright blah ...
3
4
5
6 ## COMMON_PRE_CONFIG_FRAG
7
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.
11
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 \
15 sim-calls.o \
16 sim-events.o \
17 sim-core.o \
18 sim-hload.o \
19 sim-hrw.o \
20 sim-io.o \
21 sim-utils.o \
22 sim-load.o \
23 sim-memopt.o \
24 sim-module.o \
25 sim-options.o \
26 sim-trace.o \
27 sim-profile.o \
28 sim-fpu.o \
29 sim-engine.o \
30 sim-run.o \
31 sim-resume.o \
32 sim-stop.o \
33 sim-reason.o \
34 sim-watch.o
35
36 # List of extra dependencies.
37 # Generally this consists of simulator specific files included by sim-main.h.
38 SIM_EXTRA_DEPS = itable.h idecode.h cpu.h alu.h
39
40 # List of extra libraries to link with
41 SIM_EXTRA_LIBS = -lm
42
43 # List of generators
44 SIM_GEN=tmp-igen
45
46 # List of flags to always pass to $(CC).
47
48 SIM_EXTRA_CFLAGS = \
49 -DWITH_TARGET_WORD_MSB=31
50
51 # List of main object files for `run'.
52 SIM_RUN_OBJS = nrun.o
53
54 # Dependency of `clean' to clean any extra files.
55 SIM_EXTRA_CLEAN = clean-igen
56
57
58 ## COMMON_POST_CONFIG_FRAG
59
60 # Rules need to build $(SIM_OBJS), plus whatever else the target wants.
61
62 # ... target specific rules ...
63
64 BUILT_SRC_FROM_IGEN = \
65 icache.h \
66 icache.c \
67 idecode.h \
68 idecode.c \
69 semantics.h \
70 semantics.c \
71 model.h \
72 model.c \
73 support.h \
74 support.c \
75 itable.h itable.c
76 $(BUILT_SRC_FROM_IGEN): tmp-igen
77 #
78
79 .PHONY: clean-igen
80 clean-igen:
81 rm -f $(BUILT_SRC_FROM_IGEN)
82 rm -f tmp-igen tmp-insns
83
84 ../igen/igen:
85 cd ../igen && $(MAKE)
86
87 tmp-igen: $(srcdir)/dc $(srcdir)/insns $(srcdir)/ic ../igen/igen
88 cd ../igen && $(MAKE)
89 ../igen/igen \
90 -F f \
91 -G direct-access \
92 -G delayed-branch \
93 -G zero-r0 \
94 -F short,emul \
95 -B 32 -H 31 \
96 -o $(srcdir)/dc \
97 -k $(srcdir)/ic \
98 -i $(srcdir)/insns \
99 -n icache.h -hc tmp-icache.h \
100 -n icache.c -c tmp-icache.c \
101 -n semantics.h -hs tmp-semantics.h \
102 -n semantics.c -s tmp-semantics.c \
103 -n idecode.h -hd tmp-idecode.h \
104 -n idecode.c -d tmp-idecode.c \
105 -n model.h -hm tmp-model.h \
106 -n model.c -m tmp-model.c \
107 -n support.h -hf tmp-support.h \
108 -n support.c -f tmp-support.c \
109 -n itable.h -ht tmp-itable.h \
110 -n itable.c -t tmp-itable.c
111 $(srcdir)/../../move-if-change tmp-icache.h icache.h
112 $(srcdir)/../../move-if-change tmp-icache.c icache.c
113 $(srcdir)/../../move-if-change tmp-idecode.h idecode.h
114 $(srcdir)/../../move-if-change tmp-idecode.c idecode.c
115 $(srcdir)/../../move-if-change tmp-semantics.h semantics.h
116 $(srcdir)/../../move-if-change tmp-semantics.c semantics.c
117 $(srcdir)/../../move-if-change tmp-model.h model.h
118 $(srcdir)/../../move-if-change tmp-model.c model.c
119 $(srcdir)/../../move-if-change tmp-support.h support.h
120 $(srcdir)/../../move-if-change tmp-support.c support.c
121 $(srcdir)/../../move-if-change tmp-itable.h itable.h
122 $(srcdir)/../../move-if-change tmp-itable.c itable.c
123 touch tmp-igen
124
125 ENGINE_H = \
126 sim-main.h \
127 $(srcdir)/../common/sim-basics.h \
128 config.h \
129 $(srcdir)/../common/sim-config.h \
130 $(srcdir)/../common/sim-inline.h \
131 $(srcdir)/../common/sim-types.h \
132 $(srcdir)/../common/sim-bits.h \
133 $(srcdir)/../common/sim-endian.h \
134 $(srcdir)/../common/sim-options.h \
135 itable.h \
136 idecode.h \
137 cpu.h \
138 alu.h \
139 $(srcdir)/../common/sim-alu.h \
140 $(srcdir)/../common/sim-core.h \
141 $(srcdir)/../common/sim-events.h \
142 $(srcdir)/../common/sim-fpu.h \
143 $(srcdir)/../common/sim-engine.h \
144
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)
151 misc.o: $(ENGINE_H)
This page took 0.036955 seconds and 4 git commands to generate.