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 \
22 # The mingw math.h has "extern inline" functions that dont appear in libs, so
23 # optimisation is required to actually inline them
27 # hack for automake to have the same source file in a library and a bin
28 genmdesc_CFLAGS = $(AM_CFLAGS)
30 regtests=basic.exe arrays.exe basic-float.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
32 libmono_la_LDFLAGS=-Wl,-version-script=$(srcdir)/ldscript
37 noinst_PROGRAMS = genmdesc
39 lib_LTLIBRARIES = libmono.la
100 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
103 libmono_la_SOURCES = \
104 $(common_sources) $(x86_sources)
106 arch_BURGSRC= $(srcdir)/inssel-x86.brg
110 libmono_la_SOURCES = \
111 $(common_sources) $(ppc_sources)
113 arch_BURGSRC= $(srcdir)/inssel-ppc.brg
117 libmono_la_SOURCES = \
118 $(common_sources) $(sparc_sources)
120 arch_BURGSRC= $(srcdir)/inssel-sparc.brg
123 BURGSRC= $(common_BURGSRC) $(arch_BURGSRC)
125 libmonoincludedir = $(includedir)/mono/jit
127 libmonoinclude_HEADERS = jit.h
129 libmono_la_LIBADD = \
132 %.exe: %.cs TestDriver.dll
133 $(MCS) /unsafe $< /r:TestDriver.dll
136 ilasm /OUTPUT=$*.exe $<
138 TestDriver.dll: TestDriver.cs
139 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
141 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
142 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
144 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
145 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
147 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
148 ./genmdesc $(srcdir)/cpu-sparc.md cpu-sparc.h sparc_desc
150 inssel.c inssel.h: $(BURGSRC)
151 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
154 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
156 # ensure the tests are actually correct
157 checktests: $(regtests)
158 for i in $(regtests); do $(RUNTIME) $$i; done
160 rcheck: mono $(regtests)
161 ./mono --verbose --regression $(regtests)
163 aotcheck: mono $(regtests)
164 for i in $(regtests); do ./mono --aot $$i; done
165 ./mono --verbose --regression $(regtests)
169 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
172 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
174 stat1: mono bench.exe
175 ./mono --verbose --statfile stats.pl --regression bench.exe
176 perl viewstat.pl stats.pl
178 stat2: mono basic.exe
179 ./mono --verbose --statfile stats.pl --regression basic.exe
180 perl viewstat.pl -e stats.pl
182 stat3: mono bench.exe
183 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
184 perl viewstat.pl stats.pl
190 rm -f mono a.out gmon.out *.o test.exe
192 pkgconfigdir = $(libdir)/pkgconfig
194 documents=mini-doc.txt mini-porting.txt
197 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h cpu-g4.h cpu-sparc.h
200 CLEANFILES= $(BUILT_SOURCES)
201 EXTRA_DIST = $(common_BURGSRC) $(documents) inssel-x86.brg inssel-ppc.brg \
202 $(x86_sources) $(ppc_sources) $(sparc_sources) \
203 jit-icalls.c cprop.c inssel-sparc.brg \
204 cpu-pentium.md cpu-g4.md ldscript cpu-sparc.md