3 monodir=$(top_builddir)
5 $(monodir)/mono/metadata/libmonoruntime.la \
6 $(monodir)/mono/metadata/libmetadata.la \
7 $(monodir)/mono/io-layer/libwapi.la \
8 $(monodir)/mono/utils/libmonoutils.la \
23 # The mingw math.h has "extern inline" functions that dont appear in libs, so
24 # optimisation is required to actually inline them
28 # hack for automake to have the same source file in a library and a bin
29 genmdesc_CFLAGS = $(AM_CFLAGS)
34 monoldflags=-Wl,-version-script=$(srcdir)/ldscript
36 libmono_la_LDFLAGS=$(monoldflags)
41 noinst_PROGRAMS = genmdesc
43 lib_LTLIBRARIES = libmono.la
128 regtests=basic.exe arrays.exe basic-float.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
130 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
133 libmono_la_SOURCES = \
134 $(common_sources) $(x86_sources)
136 arch_BURGSRC= $(srcdir)/inssel-x86.brg
137 arch_built=cpu-pentium.h
141 libmono_la_SOURCES = \
142 $(common_sources) $(ppc_sources)
144 arch_BURGSRC= $(srcdir)/inssel-ppc.brg
149 libmono_la_SOURCES = \
150 $(common_sources) $(sparc_sources)
152 arch_BURGSRC= $(srcdir)/inssel-sparc.brg
153 arch_built=cpu-sparc.h
157 libmono_la_SOURCES = \
158 $(common_sources) $(s390_sources)
160 arch_BURGSRC= $(srcdir)/inssel-s390.brg
161 arch_built=cpu-s390.h
164 nodist_libmono_la_SOURCES = inssel.c inssel.h
166 BURGSRC= $(common_BURGSRC) $(arch_BURGSRC)
168 libmonoincludedir = $(includedir)/mono/jit
170 libmonoinclude_HEADERS = jit.h
172 libmono_la_LIBADD = \
175 %.exe: %.cs TestDriver.dll
176 $(MCS) /unsafe $< /r:TestDriver.dll
179 ilasm /output=$*.exe $<
181 TestDriver.dll: TestDriver.cs
182 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
184 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
185 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
187 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
188 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
190 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
191 ./genmdesc $(srcdir)/cpu-sparc.md cpu-sparc.h sparc_desc
193 cpu-s390.h: cpu-s390.md genmdesc$(EXEEXT)
194 ./genmdesc $(srcdir)/cpu-s390.md cpu-s390.h s390
196 inssel.c inssel.h: $(BURGSRC)
197 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
200 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
202 # ensure the tests are actually correct
203 checktests: $(regtests)
204 for i in $(regtests); do $(RUNTIME) $$i; done
206 rcheck: mono $(regtests)
207 ./mono --regression $(regtests)
209 aotcheck: mono $(regtests)
210 for i in $(regtests); do ./mono --aot $$i; done
211 ./mono --verbose --regression $(regtests)
215 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
218 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
220 stat1: mono bench.exe
221 ./mono --verbose --statfile stats.pl --regression bench.exe
222 perl viewstat.pl stats.pl
224 stat2: mono basic.exe
225 ./mono --verbose --statfile stats.pl --regression basic.exe
226 perl viewstat.pl -e stats.pl
228 stat3: mono bench.exe
229 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
230 perl viewstat.pl stats.pl
236 rm -f mono a.out gmon.out *.o test.exe
238 pkgconfigdir = $(libdir)/pkgconfig
241 BUILT_SOURCES= inssel.c inssel.h $(arch_built)
244 CLEANFILES= $(BUILT_SOURCES)
245 EXTRA_DIST = $(common_BURGSRC) jit-icalls.c cprop.c TestDriver.cs ldscript $(test_sources) \
246 propagated_relations_table.def build_relations_propagation_table.pl \
247 $(x86_sources) inssel-x86.brg cpu-pentium.md \
248 $(ppc_sources) inssel-ppc.brg cpu-g4.md \
249 $(sparc_sources) inssel-sparc.brg cpu-sparc.md \
250 $(s390_sources) inssel-s390.brg cpu-s390.md