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
36 noinst_PROGRAMS = genmdesc
38 lib_LTLIBRARIES = libmono.la
93 common_BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
96 libmono_la_SOURCES = \
97 $(common_sources) $(x86_sources)
99 BURGSRC= $(common_BURGSRC) $(srcdir)/inssel-x86.brg
103 libmono_la_SOURCES = \
104 $(common_sources) $(ppc_sources)
106 BURGSRC= $(common_BURGSRC) $(srcdir)/inssel-ppc.brg
109 libmonoincludedir = $(includedir)/mono/jit
111 libmonoinclude_HEADERS = jit.h
113 libmono_la_LIBADD = \
116 %.exe: %.cs TestDriver.dll
117 $(MCS) /unsafe $< /r:TestDriver.dll
120 ilasm /OUTPUT=$*.exe $<
122 TestDriver.dll: TestDriver.cs
123 $(MCS) /out:TestDriver.dll /target:library TestDriver.cs
125 cpu-pentium.h: cpu-pentium.md genmdesc$(EXEEXT)
126 ./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium_desc
128 cpu-g4.h: cpu-g4.md genmdesc$(EXEEXT)
129 ./genmdesc $(srcdir)/cpu-g4.md cpu-g4.h ppcg4
131 inssel.c inssel.h: $(BURGSRC)
132 $(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s inssel.c
135 ./mono -v -v --ncompile 1 --compile Test:$(mtest) test.exe
137 # ensure the tests are actually correct
138 checktests: $(regtests)
139 for i in $(regtests); do $(RUNTIME) $$i; done
141 rcheck: mono $(regtests)
142 ./mono --verbose --regression $(regtests)
144 aotcheck: mono $(regtests)
145 for i in $(regtests); do ./mono --aot $$i; done
146 ./mono --verbose --regression $(regtests)
150 time ./mono --ncompile $(count) --compile Test:$(mtest) test.exe
153 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
155 stat1: mono bench.exe
156 ./mono --verbose --statfile stats.pl --regression bench.exe
157 perl viewstat.pl stats.pl
159 stat2: mono basic.exe
160 ./mono --verbose --statfile stats.pl --regression basic.exe
161 perl viewstat.pl -e stats.pl
163 stat3: mono bench.exe
164 ./mono --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
165 perl viewstat.pl stats.pl
171 rm -f mono a.out gmon.out *.o test.exe
173 pkgconfigdir = $(libdir)/pkgconfig
175 documents=mini-doc.txt mini-porting.txt
177 BUILT_SOURCES= inssel.c inssel.h cpu-pentium.h cpu-g4.h
178 CLEANFILES= $(BUILT_SOURCES)
179 EXTRA_DIST = $(common_BURGSRC) $(documents) inssel-x86.brg inssel-ppc.brg \
180 jit-icalls.c cprop.c \
181 cpu-pentium.md cpu-g4.md ldscript