weidendo | a17f2a3 | 2006-03-20 10:27:30 +0000 | [diff] [blame] | 1 | include $(top_srcdir)/Makefile.tool.am |
| 2 | |
njn | 7375de3 | 2009-08-05 08:08:18 +0000 | [diff] [blame] | 3 | EXTRA_DIST = \ |
njn | efd7ef7 | 2009-08-07 07:44:31 +0000 | [diff] [blame] | 4 | docs/callgrind_annotate-manpage.xml \ |
| 5 | docs/callgrind_control-manpage.xml \ |
njn | 7375de3 | 2009-08-05 08:08:18 +0000 | [diff] [blame] | 6 | docs/cl-manual.xml \ |
njn | efd7ef7 | 2009-08-07 07:44:31 +0000 | [diff] [blame] | 7 | docs/cl-format.xml |
njn | 7375de3 | 2009-08-05 08:08:18 +0000 | [diff] [blame] | 8 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 9 | #---------------------------------------------------------------------------- |
| 10 | # Headers, etc |
| 11 | #---------------------------------------------------------------------------- |
weidendo | a17f2a3 | 2006-03-20 10:27:30 +0000 | [diff] [blame] | 12 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 13 | pkginclude_HEADERS = callgrind.h |
weidendo | a17f2a3 | 2006-03-20 10:27:30 +0000 | [diff] [blame] | 14 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 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@ |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 31 | endif |
weidendo | a17f2a3 | 2006-03-20 10:27:30 +0000 | [diff] [blame] | 32 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 33 | CALLGRIND_SOURCES_COMMON = \ |
| 34 | bb.c \ |
| 35 | bbcc.c \ |
| 36 | callstack.c \ |
| 37 | clo.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 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 \ |
mjw | 0c8cd40 | 2013-09-03 15:22:14 +0000 | [diff] [blame] | 47 | threads.c |
sewardj | 4cb6bf7 | 2010-01-01 18:31:41 +0000 | [diff] [blame] | 48 | |
mjw | 0c8cd40 | 2013-09-03 15:22:14 +0000 | [diff] [blame] | 49 | # We sneakily include "cg_branchpred.c" and "cg_arch.c" from cachegrind |
weidendo | e572755 | 2007-06-02 21:36:26 +0000 | [diff] [blame] | 50 | CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind |
weidendo | a17f2a3 | 2006-03-20 10:27:30 +0000 | [diff] [blame] | 51 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 52 | callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \ |
| 53 | $(CALLGRIND_SOURCES_COMMON) |
| 54 | callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \ |
| 55 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 56 | callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \ |
| 57 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(CALLGRIND_CFLAGS_COMMON) |
| 58 | callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \ |
| 59 | $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) |
| 60 | callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \ |
| 61 | $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@) |
| 62 | callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \ |
| 63 | $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 64 | callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \ |
sewardj | d364580 | 2010-06-13 22:13:58 +0000 | [diff] [blame] | 65 | $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 66 | @VALT_LOAD_ADDRESS_PRI@ \ |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 67 | $(LINK) \ |
| 68 | $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \ |
| 69 | $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS) |
| 70 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 71 | if VGCONF_HAVE_PLATFORM_SEC |
| 72 | callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \ |
| 73 | $(CALLGRIND_SOURCES_COMMON) |
| 74 | callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \ |
| 75 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 76 | callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \ |
| 77 | $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(CALLGRIND_CFLAGS_COMMON) |
| 78 | callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \ |
| 79 | $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) |
| 80 | callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \ |
| 81 | $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@) |
| 82 | callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \ |
| 83 | $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 84 | callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \ |
sewardj | d364580 | 2010-06-13 22:13:58 +0000 | [diff] [blame] | 85 | $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 86 | @VALT_LOAD_ADDRESS_SEC@ \ |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 87 | $(LINK) \ |
| 88 | $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \ |
| 89 | $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS) |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 90 | endif |