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)
31 libmono_la_LDFLAGS=-Wl,-version-script=$(srcdir)/ldscript
36 noinst_PROGRAMS = genmdesc
38 lib_LTLIBRARIES = libmono.la
114 regtests=basic.exe arrays.exe basic-float.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
116 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
119 libmono_la_SOURCES = \
120 $(common_sources) $(x86_sources)
122 arch_BURGSRC= $(srcdir)/inssel-x86.brg
126 libmono_la_SOURCES = \
127 $(common_sources) $(ppc_sources)
129 arch_BURGSRC= $(srcdir)/inssel-ppc.brg
133 libmono_la_SOURCES = \
134 $(common_sources) $(sparc_sources)
136 arch_BURGSRC= $(srcdir)/inssel-sparc.brg
139 BURGSRC= $(common_BURGSRC) $(arch_BURGSRC)
141 libmonoincludedir = $(includedir)/mono/jit
143 libmonoinclude_HEADERS = jit.h
145 libmono_la_LIBADD = \
148 %.exe: %.cs TestDriver.dll
149 $(MCS) /unsafe $< /r:TestDriver.dll
152 ilasm /OUTPUT=$*.exe $<
154 TestDriver.dll: TestDriver.cs
155 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
157 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
158 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
160 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
161 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
163 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
164 ./genmdesc $(srcdir)/cpu-sparc.md cpu-sparc.h sparc_desc
166 inssel.c inssel.h: $(BURGSRC)
167 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
170 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
172 # ensure the tests are actually correct
173 checktests: $(regtests)
174 for i in $(regtests); do $(RUNTIME) $$i; done
176 rcheck: mono $(regtests)
177 ./mono --verbose --regression $(regtests)
179 aotcheck: mono $(regtests)
180 for i in $(regtests); do ./mono --aot $$i; done
181 ./mono --verbose --regression $(regtests)
185 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
188 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
190 stat1: mono bench.exe
191 ./mono --verbose --statfile stats.pl --regression bench.exe
192 perl viewstat.pl stats.pl
194 stat2: mono basic.exe
195 ./mono --verbose --statfile stats.pl --regression basic.exe
196 perl viewstat.pl -e stats.pl
198 stat3: mono bench.exe
199 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
200 perl viewstat.pl stats.pl
206 rm -f mono a.out gmon.out *.o test.exe
208 pkgconfigdir = $(libdir)/pkgconfig
210 documents=mini-doc.txt mini-porting.txt
213 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h cpu-g4.h cpu-sparc.h
216 CLEANFILES= $(BUILT_SOURCES)
217 EXTRA_DIST = $(common_BURGSRC) $(documents) inssel-x86.brg inssel-ppc.brg \
218 $(x86_sources) $(ppc_sources) $(sparc_sources) $(test_sources) \
219 jit-icalls.c cprop.c inssel-sparc.brg \
220 cpu-pentium.md cpu-g4.md ldscript cpu-sparc.md TestDriver.cs