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 \
13 WARN=-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations \
14 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs \
15 -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings
18 $(WARN) -fexceptions -DMONO_USE_EXC_TABLES \
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
94 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
97 libmono_la_SOURCES = \
98 $(common_sources) $(x86_sources)
100 BURGSRC= $(common_BURGSRC) $(srcdir)/inssel-x86.brg
104 libmono_la_SOURCES = \
105 $(common_sources) $(ppc_sources)
107 BURGSRC= $(common_BURGSRC) $(srcdir)/inssel-ppc.brg
110 libmonoincludedir = $(includedir)/mono/jit
112 libmonoinclude_HEADERS = jit.h
114 libmono_la_LIBADD = \
117 %.exe: %.cs TestDriver.dll
118 $(MCS) /unsafe $< /r:TestDriver.dll
121 ilasm /OUTPUT=$*.exe $<
123 TestDriver.dll: TestDriver.cs
124 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
126 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
127 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
129 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
130 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
132 inssel.c inssel.h: $(BURGSRC)
133 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
136 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
138 # ensure the tests are actually correct
139 checktests: $(regtests)
140 for i in $(regtests); do $(RUNTIME) $$i; done
142 rcheck: mono $(regtests)
143 ./mono --verbose --regression $(regtests)
145 aotcheck: mono $(regtests)
146 for i in $(regtests); do ./mono --aot $$i; done
147 ./mono --verbose --regression $(regtests)
151 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
154 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
156 stat1: mono bench.exe
157 ./mono --verbose --statfile stats.pl --regression bench.exe
158 perl viewstat.pl stats.pl
160 stat2: mono basic.exe
161 ./mono --verbose --statfile stats.pl --regression basic.exe
162 perl viewstat.pl -e stats.pl
164 stat3: mono bench.exe
165 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
166 perl viewstat.pl stats.pl
172 rm -f mono a.out gmon.out *.o test.exe
174 pkgconfigdir = $(libdir)/pkgconfig
176 documents=mini-doc.txt mini-porting.txt
178 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h cpu-g4.h
179 CLEANFILES= $(BUILT_SOURCES)
180 EXTRA_DIST = $(common_BURGSRC) $(documents) inssel-x86.brg inssel-ppc.brg \
181 jit-icalls.c cprop.c \
182 cpu-pentium.md cpu-g4.md ldscript