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 \
21 # The mingw math.h has "extern inline" functions that dont appear in libs, so
22 # optimisation is required to actually inline them
26 # hack for automake to have the same source file in a library and a bin
27 genmdesc_CFLAGS = $(AM_CFLAGS)
29 regtests=basic.exe arrays.exe basic-float.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
31 libmono_la_LDFLAGS=-Wl,-version-script=$(srcdir)/ldscript
36 noinst_PROGRAMS = genmdesc
38 lib_LTLIBRARIES = libmono.la
99 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
102 libmono_la_SOURCES = \
103 $(common_sources) $(x86_sources)
105 arch_BURGSRC= $(srcdir)/inssel-x86.brg
109 libmono_la_SOURCES = \
110 $(common_sources) $(ppc_sources)
112 arch_BURGSRC= $(srcdir)/inssel-ppc.brg
116 libmono_la_SOURCES = \
117 $(common_sources) $(sparc_sources)
119 arch_BURGSRC= $(srcdir)/inssel-sparc.brg
122 BURGSRC= $(common_BURGSRC) $(arch_BURGSRC)
124 libmonoincludedir = $(includedir)/mono/jit
126 libmonoinclude_HEADERS = jit.h
128 libmono_la_LIBADD = \
131 %.exe: %.cs TestDriver.dll
132 $(MCS) /unsafe $< /r:TestDriver.dll
135 ilasm /OUTPUT=$*.exe $<
137 TestDriver.dll: TestDriver.cs
138 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
140 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
141 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
143 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
144 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
146 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
147 ./genmdesc $(srcdir)/cpu-sparc.md cpu-sparc.h sparc_desc
149 inssel.c inssel.h: $(BURGSRC)
150 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
153 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
155 # ensure the tests are actually correct
156 checktests: $(regtests)
157 for i in $(regtests); do $(RUNTIME) $$i; done
159 rcheck: mono $(regtests)
160 ./mono --verbose --regression $(regtests)
162 aotcheck: mono $(regtests)
163 for i in $(regtests); do ./mono --aot $$i; done
164 ./mono --verbose --regression $(regtests)
168 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
171 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
173 stat1: mono bench.exe
174 ./mono --verbose --statfile stats.pl --regression bench.exe
175 perl viewstat.pl stats.pl
177 stat2: mono basic.exe
178 ./mono --verbose --statfile stats.pl --regression basic.exe
179 perl viewstat.pl -e stats.pl
181 stat3: mono bench.exe
182 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
183 perl viewstat.pl stats.pl
189 rm -f mono a.out gmon.out *.o test.exe
191 pkgconfigdir = $(libdir)/pkgconfig
193 documents=mini-doc.txt mini-porting.txt
195 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h cpu-g4.h cpu-sparc.h
196 CLEANFILES= $(BUILT_SOURCES)
197 EXTRA_DIST = $(common_BURGSRC) $(documents) inssel-x86.brg inssel-ppc.brg \
198 jit-icalls.c cprop.c inssel-sparc.brg \
199 cpu-pentium.md cpu-g4.md ldscript cpu-sparc.md