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
125 regtests=basic.exe arrays.exe basic-float.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
127 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
130 libmono_la_SOURCES = \
131 $(common_sources) $(x86_sources)
133 arch_BURGSRC= $(srcdir)/inssel-x86.brg
137 libmono_la_SOURCES = \
138 $(common_sources) $(ppc_sources)
140 arch_BURGSRC= $(srcdir)/inssel-ppc.brg
144 libmono_la_SOURCES = \
145 $(common_sources) $(sparc_sources)
147 arch_BURGSRC= $(srcdir)/inssel-sparc.brg
151 libmono_la_SOURCES = \
152 $(common_sources) $(s390_sources)
154 arch_BURGSRC= $(srcdir)/inssel-s390.brg
157 BURGSRC= $(common_BURGSRC) $(arch_BURGSRC)
159 libmonoincludedir = $(includedir)/mono/jit
161 libmonoinclude_HEADERS = jit.h
163 libmono_la_LIBADD = \
166 %.exe: %.cs TestDriver.dll
167 $(MCS) /unsafe $< /r:TestDriver.dll
170 ilasm /OUTPUT=$*.exe $<
172 TestDriver.dll: TestDriver.cs
173 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
175 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
176 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
178 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
179 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
181 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
182 ./genmdesc $(srcdir)/cpu-sparc.md cpu-sparc.h sparc_desc
184 cpu-s390.h: cpu-s390.md genmdesc$(EXEEXT)
185 ./genmdesc $(srcdir)/cpu-s390.md cpu-s390.h s390
187 inssel.c inssel.h: $(BURGSRC)
188 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
191 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
193 # ensure the tests are actually correct
194 checktests: $(regtests)
195 for i in $(regtests); do $(RUNTIME) $$i; done
197 rcheck: mono $(regtests)
198 ./mono --verbose --regression $(regtests)
200 aotcheck: mono $(regtests)
201 for i in $(regtests); do ./mono --aot $$i; done
202 ./mono --verbose --regression $(regtests)
206 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
209 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
211 stat1: mono bench.exe
212 ./mono --verbose --statfile stats.pl --regression bench.exe
213 perl viewstat.pl stats.pl
215 stat2: mono basic.exe
216 ./mono --verbose --statfile stats.pl --regression basic.exe
217 perl viewstat.pl -e stats.pl
219 stat3: mono bench.exe
220 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
221 perl viewstat.pl stats.pl
227 rm -f mono a.out gmon.out *.o test.exe
229 pkgconfigdir = $(libdir)/pkgconfig
232 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h cpu-g4.h cpu-sparc.h cpu-s390.h
235 CLEANFILES= $(BUILT_SOURCES)
236 EXTRA_DIST = $(common_BURGSRC) inssel-x86.brg inssel-ppc.brg inssel-s390.brg \
237 $(x86_sources) $(ppc_sources) $(sparc_sources) $(test_sources) \
238 jit-icalls.c cprop.c inssel-sparc.brg \
239 cpu-pentium.md cpu-g4.md ldscript cpu-sparc.md cpu-s390.md TestDriver.cs