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 \ |
| 47 | threads.c \ |
weidendo | 2364227 | 2011-09-06 19:08:31 +0000 | [diff] [blame] | 48 | ../cachegrind/cg-arch.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 49 | ../cachegrind/cg-x86-amd64.c \ |
| 50 | ../cachegrind/cg-ppc32.c \ |
sewardj | 4cb6bf7 | 2010-01-01 18:31:41 +0000 | [diff] [blame] | 51 | ../cachegrind/cg-ppc64.c \ |
weidendo | 2364227 | 2011-09-06 19:08:31 +0000 | [diff] [blame] | 52 | ../cachegrind/cg-arm.c \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 53 | ../cachegrind/cg-s390x.c \ |
| 54 | ../cachegrind/cg-mips32.c |
sewardj | 4cb6bf7 | 2010-01-01 18:31:41 +0000 | [diff] [blame] | 55 | |
weidendo | e572755 | 2007-06-02 21:36:26 +0000 | [diff] [blame] | 56 | CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind |
weidendo | a17f2a3 | 2006-03-20 10:27:30 +0000 | [diff] [blame] | 57 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 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@) |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 70 | callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \ |
sewardj | d364580 | 2010-06-13 22:13:58 +0000 | [diff] [blame] | 71 | $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 72 | @VALT_LOAD_ADDRESS_PRI@ \ |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 73 | $(LINK) \ |
| 74 | $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \ |
| 75 | $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS) |
| 76 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 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@) |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 90 | callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \ |
sewardj | d364580 | 2010-06-13 22:13:58 +0000 | [diff] [blame] | 91 | $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 92 | @VALT_LOAD_ADDRESS_SEC@ \ |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 93 | $(LINK) \ |
| 94 | $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \ |
| 95 | $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS) |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 96 | endif |
sewardj | b34485c | 2006-10-17 21:06:58 +0000 | [diff] [blame] | 97 | |