8 -fexceptions -DMONO_USE_EXC_TABLES \
14 bin_PROGRAMS = mprof-report
15 lib_LTLIBRARIES = libmono-profiler-cov.la libmono-profiler-aot.la libmono-profiler-iomap.la libmono-profiler-log.la
17 libmono_profiler_log_la_LDFLAGS = -Wl,-undefined -Wl,suppress -Wl,-flat_namespace
23 # Do something that uses OPROFILE_CFLAGS and OPROFILE_LIBS
27 LIBMONO=$(top_builddir)/mono/mini/libmono-$(API_VER).la
29 LIBMONO=$(top_builddir)/mono/mini/libmonosgen-$(API_VER).la
32 libmono_profiler_cov_la_SOURCES = mono-cov.c
33 libmono_profiler_cov_la_LIBADD = $(LIBMONO) $(GLIB_LIBS) $(LIBICONV)
34 libmono_profiler_aot_la_SOURCES = mono-profiler-aot.c
35 libmono_profiler_aot_la_LIBADD = $(LIBMONO) $(GLIB_LIBS) $(LIBICONV)
36 #libmono_profiler_logging_la_SOURCES = mono-profiler-logging.c
37 #libmono_profiler_logging_la_LIBADD = $(LIBMONO) $(GLIB_LIBS) $(LIBICONV)
38 libmono_profiler_iomap_la_SOURCES = mono-profiler-iomap.c
39 libmono_profiler_iomap_la_LIBADD = $(LIBMONO) $(GLIB_LIBS) $(LIBICONV)
40 libmono_profiler_log_la_SOURCES = proflog.c
41 libmono_profiler_log_la_LIBADD = $(LIBMONO) $(Z_LIBS)
43 mprof_report_SOURCES = decode.c
44 mprof_report_LDADD = $(Z_LIBS)
46 PLOG_TESTS_SRC=test-alloc.cs test-busy.cs test-monitor.cs test-excleave.cs \
47 test-heapshot.cs test-traces.cs
48 PLOG_TESTS=$(PLOG_TESTS_SRC:.cs=.exe)
50 with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/net_4_0
52 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
53 MCS = $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219 -debug
58 testlog: $(PLOG_TESTS)
59 $(with_mono_path) perl $(srcdir)/ptestrunner.pl $(top_builddir)
63 EXTRA_DIST=utils.c utils.h proflog.h log-profiler.txt perf_event.h \
64 $(PLOG_TESTS_SRC) ptestrunner.pl