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 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-x86-amd64.c \ 50 ../cachegrind/cg-ppc32.c \ 51 ../cachegrind/cg-ppc64.c \ 52 ../cachegrind/cg-arm.c 53 54 CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind 55 56 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \ 57 $(CALLGRIND_SOURCES_COMMON) 58 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \ 59 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 60 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \ 61 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(CALLGRIND_CFLAGS_COMMON) 62 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \ 63 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) 64 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \ 65 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@) 66 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \ 67 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 68 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \ 69 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 70 @VALT_LOAD_ADDRESS_PRI@ \ 71 $(LINK) \ 72 $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \ 73 $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS) 74 75 if VGCONF_HAVE_PLATFORM_SEC 76 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \ 77 $(CALLGRIND_SOURCES_COMMON) 78 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \ 79 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 80 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \ 81 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(CALLGRIND_CFLAGS_COMMON) 82 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \ 83 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) 84 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \ 85 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@) 86 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \ 87 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 88 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \ 89 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 90 @VALT_LOAD_ADDRESS_SEC@ \ 91 $(LINK) \ 92 $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \ 93 $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS) 94 endif 95 96