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 = \
83 %.exe: %.cs TestDriver.dll
84 $(MCS) /unsafe $< /r:TestDriver.dll
87 ilasm /OUTPUT=$*.exe $<
89 TestDriver.dll: TestDriver.cs
90 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
92 cpu-pentium.h: cpu-pentium.md genmdesc
93 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium
95 BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-x86.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
97 inssel.c inssel.h: $(BURGSRC)
98 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
101 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
103 # ensure the tests are actually correct
104 checktests: $(regtests)
105 for i in $(regtests); do $(RUNTIME) $$i; done
107 rcheck: mono $(regtests)
108 ./mono --verbose --regression $(regtests)
110 aotcheck: mono $(regtests)
111 for i in $(regtests); do ./mono --aot $$i; done
112 ./mono --verbose --regression $(regtests)
116 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
119 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
121 stat1: mono bench.exe
122 ./mono --verbose --statfile stats.pl --regression bench.exe
123 perl viewstat.pl stats.pl
125 stat2: mono basic.exe
126 ./mono --verbose --statfile stats.pl --regression basic.exe
127 perl viewstat.pl -e stats.pl
129 stat3: mono bench.exe
130 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
131 perl viewstat.pl stats.pl
137 rm -f mono a.out gmon.out *.o test.exe
139 pkgconfigdir = $(libdir)/pkgconfig
141 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h
142 CLEANFILES= $(BUILT_SOURCES)
143 EXTRA_DIST = emullong.brg inssel-float.brg inssel-long.brg \
144 inssel-long32.brg inssel-x86.brg inssel.brg jit-icalls.c cprop.c \
145 cpu-pentium.md cpu-g4.md ldscript