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 \
22 # hack for automake to have the same source file in a library and a bin
23 genmdesc_CFLAGS = $(AM_CFLAGS)
25 regtests=basic.exe arrays.exe basic-float.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
27 libmono_la_LDFLAGS=-Wl,-version-script=$(srcdir)/ldscript
29 bin_PROGRAMS = mono genmdesc
31 lib_LTLIBRARIES = libmono.la
60 libmono_la_SOURCES = \
85 %.exe: %.cs TestDriver.dll
86 $(MCS) /unsafe $< /r:TestDriver.dll
89 ilasm /OUTPUT=$*.exe $<
91 TestDriver.dll: TestDriver.cs
92 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
94 cpu-pentium.h: cpu-pentium.md genmdesc
95 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium
97 BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-x86.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
99 inssel.c inssel.h: $(BURGSRC)
100 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
103 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
105 # ensure the tests are actually correct
106 checktests: $(regtests)
107 for i in $(regtests); do $(RUNTIME) $$i; done
109 rcheck: mono $(regtests)
110 ./mono --verbose --regression $(regtests)
112 aotcheck: mono $(regtests)
113 for i in $(regtests); do ./mono --aot $$i; done
114 ./mono --verbose --regression $(regtests)
118 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
121 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
123 stat1: mono bench.exe
124 ./mono --verbose --statfile stats.pl --regression bench.exe
125 perl viewstat.pl stats.pl
127 stat2: mono basic.exe
128 ./mono --verbose --statfile stats.pl --regression basic.exe
129 perl viewstat.pl -e stats.pl
131 stat3: mono bench.exe
132 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
133 perl viewstat.pl stats.pl
139 rm -f mono a.out gmon.out *.o test.exe
141 pkgconfigdir = $(libdir)/pkgconfig
143 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h
144 CLEANFILES= $(BUILT_SOURCES)
145 EXTRA_DIST = emullong.brg inssel-float.brg inssel-long.brg \
146 inssel-long32.brg inssel-x86.brg inssel.brg jit-icalls.c cprop.c \
147 cpu-pentium.md cpu-g4.md ldscript