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
119 regtests=basic.exe arrays.exe basic-float.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
121 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
124 libmono_la_SOURCES = \
125 $(common_sources) $(x86_sources)
127 arch_BURGSRC= $(srcdir)/inssel-x86.brg
131 libmono_la_SOURCES = \
132 $(common_sources) $(ppc_sources)
134 arch_BURGSRC= $(srcdir)/inssel-ppc.brg
138 libmono_la_SOURCES = \
139 $(common_sources) $(sparc_sources)
141 arch_BURGSRC= $(srcdir)/inssel-sparc.brg
144 BURGSRC= $(common_BURGSRC) $(arch_BURGSRC)
146 libmonoincludedir = $(includedir)/mono/jit
148 libmonoinclude_HEADERS = jit.h
150 libmono_la_LIBADD = \
153 %.exe: %.cs TestDriver.dll
154 $(MCS) /unsafe $< /r:TestDriver.dll
157 ilasm /OUTPUT=$*.exe $<
159 TestDriver.dll: TestDriver.cs
160 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
162 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
163 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
165 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
166 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
168 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
169 ./genmdesc $(srcdir)/cpu-sparc.md cpu-sparc.h sparc_desc
171 inssel.c inssel.h: $(BURGSRC)
172 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
175 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
177 # ensure the tests are actually correct
178 checktests: $(regtests)
179 for i in $(regtests); do $(RUNTIME) $$i; done
181 rcheck: mono $(regtests)
182 ./mono --verbose --regression $(regtests)
184 aotcheck: mono $(regtests)
185 for i in $(regtests); do ./mono --aot $$i; done
186 ./mono --verbose --regression $(regtests)
190 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
193 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
195 stat1: mono bench.exe
196 ./mono --verbose --statfile stats.pl --regression bench.exe
197 perl viewstat.pl stats.pl
199 stat2: mono basic.exe
200 ./mono --verbose --statfile stats.pl --regression basic.exe
201 perl viewstat.pl -e stats.pl
203 stat3: mono bench.exe
204 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
205 perl viewstat.pl stats.pl
211 rm -f mono a.out gmon.out *.o test.exe
213 pkgconfigdir = $(libdir)/pkgconfig
215 documents=mini-doc.txt mini-porting.txt
218 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h cpu-g4.h cpu-sparc.h
221 CLEANFILES= $(BUILT_SOURCES)
222 EXTRA_DIST = $(common_BURGSRC) $(documents) inssel-x86.brg inssel-ppc.brg \
223 $(x86_sources) $(ppc_sources) $(sparc_sources) $(test_sources) \
224 jit-icalls.c cprop.c inssel-sparc.brg \
225 cpu-pentium.md cpu-g4.md ldscript cpu-sparc.md TestDriver.cs