1 include $(top_srcdir)/Makefile.tool.am 2 3 EXTRA_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 13 pkginclude_HEADERS = callgrind.h 14 15 bin_SCRIPTS = \ 16 callgrind_annotate \ 17 callgrind_control 18 19 noinst_HEADERS = \ 20 costs.h \ 21 events.h \ 22 global.h 23 24 #---------------------------------------------------------------------------- 25 # callgrind-<platform> 26 #---------------------------------------------------------------------------- 27 28 noinst_PROGRAMS = callgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@ 29 if VGCONF_HAVE_PLATFORM_SEC 30 noinst_PROGRAMS += callgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@ 31 endif 32 33 CALLGRIND_SOURCES_COMMON = \ 34 bb.c \ 35 bbcc.c \ 36 callstack.c \ 37 clo.c \ 38 context.c \ 39 costs.c \ 40 debug.c \ 41 dump.c \ 42 events.c \ 43 fn.c \ 44 jumps.c \ 45 main.c \ 46 sim.c \ 47 threads.c \ 48 ../cachegrind/cg-arch.c \ 49 ../cachegrind/cg-x86-amd64.c \ 50 ../cachegrind/cg-ppc32.c \ 51 ../cachegrind/cg-ppc64.c \ 52 ../cachegrind/cg-arm.c \ 53 ../cachegrind/cg-s390x.c \ 54 ../cachegrind/cg-mips32.c 55 56 CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind 57 58 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \ 59 $(CALLGRIND_SOURCES_COMMON) 60 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \ 61 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 62 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \ 63 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(CALLGRIND_CFLAGS_COMMON) 64 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \ 65 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) 66 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \ 67 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@) 68 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \ 69 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 70 callgrind_@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 77 if VGCONF_HAVE_PLATFORM_SEC 78 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \ 79 $(CALLGRIND_SOURCES_COMMON) 80 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \ 81 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 82 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \ 83 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(CALLGRIND_CFLAGS_COMMON) 84 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \ 85 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) 86 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \ 87 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@) 88 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \ 89 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 90 callgrind_@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) 96 endif 97 98