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
12 WARN=-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations \
13 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs \
14 -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings
17 $(WARN) -fexceptions -DMONO_USE_EXC_TABLES \
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
34 bin_PROGRAMS = mono genmdesc
36 lib_LTLIBRARIES = libmono.la
91 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
94 libmono_la_SOURCES = \
95 $(common_sources) $(x86_sources)
97 BURGSRC= $(common_BURGSRC) $(srcdir)/inssel-x86.brg
101 libmono_la_SOURCES = \
102 $(common_sources) $(ppc_sources)
104 BURGSRC= $(common_BURGSRC) $(srcdir)/inssel-ppc.brg
107 libmono_la_LIBADD = \
110 %.exe: %.cs TestDriver.dll
111 $(MCS) /unsafe $< /r:TestDriver.dll
114 ilasm /OUTPUT=$*.exe $<
116 TestDriver.dll: TestDriver.cs
117 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
119 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
120 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium
122 inssel.c inssel.h: $(BURGSRC)
123 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
126 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
128 # ensure the tests are actually correct
129 checktests: $(regtests)
130 for i in $(regtests); do $(RUNTIME) $$i; done
132 rcheck: mono $(regtests)
133 ./mono --verbose --regression $(regtests)
135 aotcheck: mono $(regtests)
136 for i in $(regtests); do ./mono --aot $$i; done
137 ./mono --verbose --regression $(regtests)
141 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
144 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
146 stat1: mono bench.exe
147 ./mono --verbose --statfile stats.pl --regression bench.exe
148 perl viewstat.pl stats.pl
150 stat2: mono basic.exe
151 ./mono --verbose --statfile stats.pl --regression basic.exe
152 perl viewstat.pl -e stats.pl
154 stat3: mono bench.exe
155 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
156 perl viewstat.pl stats.pl
162 rm -f mono a.out gmon.out *.o test.exe
164 pkgconfigdir = $(libdir)/pkgconfig
166 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h
167 CLEANFILES= $(BUILT_SOURCES)
168 EXTRA_DIST = $(common_BURGSRC) inssel-x86.brg \
169 jit-icalls.c cprop.c \
170 cpu-pentium.md cpu-g4.md ldscript