8 -fexceptions -DMONO_USE_EXC_TABLES \
9 -DSUPPRESSION_DIR=\""$(datadir)/mono-$(API_VER)/mono/profiler"\" \
16 bin_PROGRAMS = mprof-report
19 vtune_lib = libmono-profiler-vtune.la
22 lib_LTLIBRARIES = libmono-profiler-aot.la libmono-profiler-iomap.la libmono-profiler-log.la $(vtune_lib)
25 libmono_profiler_log_la_LDFLAGS = -Wl,-undefined -Wl,suppress -Wl,-flat_namespace
28 libmono_profiler_log_la_LDFLAGS = -avoid-version
35 # Do something that uses OPROFILE_CFLAGS and OPROFILE_LIBS
39 if DISABLE_EXECUTABLES
40 LIBMONO=$(top_builddir)/mono/mini/$(LIBMONO_LA)
44 $(top_builddir)/mono/metadata/libmonoruntime-static.la \
45 $(top_builddir)/mono/io-layer/libwapi.la \
46 $(top_builddir)/mono/utils/libmonoutils.la \
47 $(GLIB_LIBS) $(LIBICONV) \
50 LIBMONO=$(top_builddir)/mono/mini/$(LIBMONO_LA) $(static_libs)
52 LIBMONO=$(top_builddir)/mono/mini/$(LIBMONO_LA)
56 LIBMONO=$(top_builddir)/mono/mini/libmonosgen-$(API_VER).la
59 libmono_profiler_aot_la_SOURCES = mono-profiler-aot.c
60 libmono_profiler_aot_la_LIBADD = $(LIBMONO) $(GLIB_LIBS) $(LIBICONV)
61 libmono_profiler_iomap_la_SOURCES = mono-profiler-iomap.c
62 libmono_profiler_iomap_la_LIBADD = $(LIBMONO) $(GLIB_LIBS) $(LIBICONV)
63 libmono_profiler_log_la_SOURCES = proflog.c
64 libmono_profiler_log_la_LIBADD = $(LIBMONO) $(GLIB_LIBS) $(Z_LIBS)
66 libmono_profiler_vtune_la_SOURCES = mono-profiler-vtune.c
67 libmono_profiler_vtune_la_CFLAGS = $(VTUNE_CFLAGS)
68 libmono_profiler_vtune_la_LIBADD = $(VTUNE_LIBS) $(LIBMONO) $(GLIB_LIBS) $(LIBICONV)
71 mprof_report_SOURCES = decode.c
72 mprof_report_LDADD = $(Z_LIBS) $(GLIB_LIBS) $(LIBICONV)
74 PLOG_TESTS_SRC=test-alloc.cs test-busy.cs test-monitor.cs test-excleave.cs \
75 test-heapshot.cs test-traces.cs
76 PLOG_TESTS=$(PLOG_TESTS_SRC:.cs=.exe)
78 with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/net_4_5
80 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
81 MCS = $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219 -debug
86 testlog: $(PLOG_TESTS)
87 $(with_mono_path) perl $(srcdir)/ptestrunner.pl $(top_builddir)
95 suppressiondir = $(datadir)/mono-$(API_VER)/mono/profiler
96 suppression_DATA = mono-profiler-log.suppression
98 EXTRA_DIST=utils.c utils.h proflog.h perf_event.h \
99 $(PLOG_TESTS_SRC) ptestrunner.pl