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 regtests=basic.exe arrays.exe basic-float.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
33 libmono_la_LDFLAGS=-Wl,-version-script=$(srcdir)/ldscript
38 noinst_PROGRAMS = genmdesc
40 lib_LTLIBRARIES = libmono.la
104 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
107 libmono_la_SOURCES = \
108 $(common_sources) $(x86_sources)
110 arch_BURGSRC= $(srcdir)/inssel-x86.brg
114 libmono_la_SOURCES = \
115 $(common_sources) $(ppc_sources)
117 arch_BURGSRC= $(srcdir)/inssel-ppc.brg
121 libmono_la_SOURCES = \
122 $(common_sources) $(sparc_sources)
124 arch_BURGSRC= $(srcdir)/inssel-sparc.brg
127 BURGSRC= $(common_BURGSRC) $(arch_BURGSRC)
129 libmonoincludedir = $(includedir)/mono/jit
131 libmonoinclude_HEADERS = jit.h
133 libmono_la_LIBADD = \
136 %.exe: %.cs TestDriver.dll
137 $(MCS) /unsafe $< /r:TestDriver.dll
140 ilasm /OUTPUT=$*.exe $<
142 TestDriver.dll: TestDriver.cs
143 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
145 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
146 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
148 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
149 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
151 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
152 ./genmdesc $(srcdir)/cpu-sparc.md cpu-sparc.h sparc_desc
154 inssel.c inssel.h: $(BURGSRC)
155 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
158 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
160 # ensure the tests are actually correct
161 checktests: $(regtests)
162 for i in $(regtests); do $(RUNTIME) $$i; done
164 rcheck: mono $(regtests)
165 ./mono --verbose --regression $(regtests)
167 aotcheck: mono $(regtests)
168 for i in $(regtests); do ./mono --aot $$i; done
169 ./mono --verbose --regression $(regtests)
173 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
176 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
178 stat1: mono bench.exe
179 ./mono --verbose --statfile stats.pl --regression bench.exe
180 perl viewstat.pl stats.pl
182 stat2: mono basic.exe
183 ./mono --verbose --statfile stats.pl --regression basic.exe
184 perl viewstat.pl -e stats.pl
186 stat3: mono bench.exe
187 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
188 perl viewstat.pl stats.pl
194 rm -f mono a.out gmon.out *.o test.exe
196 pkgconfigdir = $(libdir)/pkgconfig
198 documents=mini-doc.txt mini-porting.txt
201 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h cpu-g4.h cpu-sparc.h
204 CLEANFILES= $(BUILT_SOURCES)
205 EXTRA_DIST = $(common_BURGSRC) $(documents) inssel-x86.brg inssel-ppc.brg \
206 $(x86_sources) $(ppc_sources) $(sparc_sources) \
207 jit-icalls.c cprop.c inssel-sparc.brg \
208 cpu-pentium.md cpu-g4.md ldscript cpu-sparc.md