1include $(top_srcdir)/Makefile.tool.am 2 3EXTRA_DIST = \ 4 docs/callgrind_annotate-manpage.xml \ 5 docs/callgrind_control-manpage.xml \ 6 docs/cl-manual.xml \ 7 docs/cl-format.xml 8 9#---------------------------------------------------------------------------- 10# Headers, etc 11#---------------------------------------------------------------------------- 12 13pkginclude_HEADERS = callgrind.h 14 15bin_SCRIPTS = \ 16 callgrind_annotate \ 17 callgrind_control 18 19noinst_HEADERS = \ 20 costs.h \ 21 events.h \ 22 global.h 23 24#---------------------------------------------------------------------------- 25# callgrind-<platform> 26#---------------------------------------------------------------------------- 27 28noinst_PROGRAMS = callgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@ 29if VGCONF_HAVE_PLATFORM_SEC 30noinst_PROGRAMS += callgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@ 31endif 32 33CALLGRIND_SOURCES_COMMON = \ 34 bb.c \ 35 bbcc.c \ 36 callstack.c \ 37 clo.c \ 38 command.c \ 39 context.c \ 40 costs.c \ 41 debug.c \ 42 dump.c \ 43 events.c \ 44 fn.c \ 45 jumps.c \ 46 main.c \ 47 sim.c \ 48 threads.c \ 49 ../cachegrind/cg-arch.c \ 50 ../cachegrind/cg-x86-amd64.c \ 51 ../cachegrind/cg-ppc32.c \ 52 ../cachegrind/cg-ppc64.c \ 53 ../cachegrind/cg-arm.c \ 54 ../cachegrind/cg-s390x.c 55 56CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind 57 58callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \ 59 $(CALLGRIND_SOURCES_COMMON) 60callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \ 61 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 62callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \ 63 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(CALLGRIND_CFLAGS_COMMON) 64callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \ 65 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) 66callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \ 67 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@) 68callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \ 69 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 70callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \ 71 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 72 @VALT_LOAD_ADDRESS_PRI@ \ 73 $(LINK) \ 74 $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \ 75 $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS) 76 77if VGCONF_HAVE_PLATFORM_SEC 78callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \ 79 $(CALLGRIND_SOURCES_COMMON) 80callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \ 81 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 82callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \ 83 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(CALLGRIND_CFLAGS_COMMON) 84callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \ 85 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) 86callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \ 87 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@) 88callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \ 89 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 90callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \ 91 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 92 @VALT_LOAD_ADDRESS_SEC@ \ 93 $(LINK) \ 94 $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \ 95 $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS) 96endif 97 98