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
56 $(static_flags) -export-dynamic $(monoldflags)
142 regtests=basic.exe arrays.exe basic-float.exe basic-math.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
144 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-float.brg
147 libmono_la_SOURCES = \
148 $(common_sources) $(x86_sources)
150 arch_BURGSRC= $(srcdir)/inssel-long32.brg $(srcdir)/inssel-x86.brg
151 arch_built=cpu-pentium.h
155 libmono_la_SOURCES = \
156 $(common_sources) $(amd64_sources)
157 arch_BURGSRC= $(srcdir)/inssel-long.brg $(srcdir)/inssel-amd64.brg
158 arch_built=cpu-amd64.h
162 libmono_la_SOURCES = \
163 $(common_sources) $(ppc_sources)
165 arch_BURGSRC= $(srcdir)/inssel-long32.brg $(srcdir)/inssel-ppc.brg
170 libmono_la_SOURCES = \
171 $(common_sources) $(sparc_sources)
173 arch_BURGSRC= $(srcdir)/inssel-long32.brg $(srcdir)/inssel-sparc.brg
174 arch_built=cpu-sparc.h
178 libmono_la_SOURCES = \
179 $(common_sources) $(sparc_sources)
181 arch_BURGSRC= $(srcdir)/inssel-long.brg $(srcdir)/inssel-sparc.brg
182 arch_built=cpu-sparc.h
186 libmono_la_SOURCES = \
187 $(common_sources) $(s390_sources)
189 arch_BURGSRC= $(srcdir)/inssel-long32.brg $(srcdir)/inssel-s390.brg
190 arch_built=cpu-s390.h
194 libmono_la_SOURCES = \
195 $(common_sources) $(s390x_sources)
197 arch_BURGSRC= $(srcdir)/inssel-long.brg $(srcdir)/inssel-s390x.brg
198 arch_built=cpu-s390x.h
201 nodist_libmono_la_SOURCES = inssel.c inssel.h
203 BURGSRC= $(common_BURGSRC) $(arch_BURGSRC)
205 libmonoincludedir = $(includedir)/mono/jit
207 libmonoinclude_HEADERS = jit.h
209 libmono_la_LIBADD = \
212 %.exe: %.cs TestDriver.dll
213 $(MCS) /unsafe $< /r:TestDriver.dll
216 ilasm /output=$*.exe $<
218 TestDriver.dll: TestDriver.cs
219 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
221 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
222 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
224 cpu-amd64.h: cpu-amd64.md genmdesc$(EXEEXT)
225 ./genmdesc $(srcdir)/cpu-amd64.md cpu-amd64.h amd64_desc
227 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
228 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
230 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
231 ./genmdesc $(srcdir)/cpu-sparc.md cpu-sparc.h sparc_desc
233 cpu-s390.h: cpu-s390.md genmdesc$(EXEEXT)
234 ./genmdesc $(srcdir)/cpu-s390.md cpu-s390.h s390
236 cpu-s390x.h: cpu-s390x.md genmdesc$(EXEEXT)
237 ./genmdesc $(srcdir)/cpu-s390x.md cpu-s390x.h s390x
239 inssel.c inssel.h: $(BURGSRC)
240 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
243 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
245 # ensure the tests are actually correct
246 checktests: $(regtests)
247 for i in $(regtests); do $(RUNTIME) $$i; done
249 rcheck: mono $(regtests)
250 ./mono --regression $(regtests)
252 aotcheck: mono $(regtests)
253 for i in $(regtests); do ./mono --aot $$i; done
254 ./mono --verbose --regression $(regtests)
258 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
261 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
263 stat1: mono bench.exe
264 ./mono --verbose --statfile stats.pl --regression bench.exe
265 perl viewstat.pl stats.pl
267 stat2: mono basic.exe
268 ./mono --verbose --statfile stats.pl --regression basic.exe
269 perl viewstat.pl -e stats.pl
271 stat3: mono bench.exe
272 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
273 perl viewstat.pl stats.pl
279 rm -f mono a.out gmon.out *.o test.exe
281 pkgconfigdir = $(libdir)/pkgconfig
284 BUILT_SOURCES= inssel.c inssel.h $(arch_built)
287 CLEANFILES= $(BUILT_SOURCES)
288 EXTRA_DIST = $(common_BURGSRC) jit-icalls.c cprop.c TestDriver.cs ldscript $(test_sources) \
289 inssel-long.brg inssel-long32.brg \
290 $(x86_sources) inssel-x86.brg cpu-pentium.md \
291 $(amd64_sources) inssel-amd64.brg cpu-amd64.md \
292 $(ppc_sources) inssel-ppc.brg cpu-g4.md \
293 $(sparc_sources) inssel-sparc.brg cpu-sparc.md \
294 $(s390_sources) inssel-s390.brg cpu-s390.md \
295 $(s390x_sources) inssel-s390x.brg cpu-s390x.md