njn | 528b07e | 2005-06-10 04:46:19 +0000 | [diff] [blame] | 1 | include $(top_srcdir)/Makefile.tool.am |
nethercote | b030c6c | 2004-09-11 18:27:43 +0000 | [diff] [blame] | 2 | |
njn | c206a81 | 2009-08-07 07:56:20 +0000 | [diff] [blame] | 3 | EXTRA_DIST = \ |
| 4 | docs/cg-manual.xml \ |
| 5 | docs/cg_annotate-manpage.xml |
njn | 7375de3 | 2009-08-05 08:08:18 +0000 | [diff] [blame] | 6 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 7 | #---------------------------------------------------------------------------- |
| 8 | # Headers, etc |
| 9 | #---------------------------------------------------------------------------- |
| 10 | |
njn | 69d495d | 2010-06-30 05:23:34 +0000 | [diff] [blame] | 11 | bin_SCRIPTS = cg_annotate cg_diff |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 12 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 13 | noinst_HEADERS = \ |
| 14 | cg_arch.h \ |
| 15 | cg_branchpred.c \ |
| 16 | cg_sim.c |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 17 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 18 | #---------------------------------------------------------------------------- |
| 19 | # cg_merge (built for the primary target only) |
| 20 | #---------------------------------------------------------------------------- |
nethercote | b35a8b9 | 2004-09-11 16:45:27 +0000 | [diff] [blame] | 21 | |
sewardj | 94dc508 | 2007-02-08 11:31:03 +0000 | [diff] [blame] | 22 | bin_PROGRAMS = cg_merge |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 23 | |
sewardj | 94dc508 | 2007-02-08 11:31:03 +0000 | [diff] [blame] | 24 | cg_merge_SOURCES = cg_merge.c |
| 25 | cg_merge_CPPFLAGS = $(AM_CPPFLAGS_PRI) |
| 26 | cg_merge_CFLAGS = $(AM_CFLAGS_PRI) |
| 27 | cg_merge_CCASFLAGS = $(AM_CCASFLAGS_PRI) |
| 28 | cg_merge_LDFLAGS = $(AM_CFLAGS_PRI) |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 29 | if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN |
| 30 | cg_merge_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress |
| 31 | endif |
sewardj | 94dc508 | 2007-02-08 11:31:03 +0000 | [diff] [blame] | 32 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 33 | #---------------------------------------------------------------------------- |
| 34 | # cachegrind-<platform> |
| 35 | #---------------------------------------------------------------------------- |
sewardj | 94dc508 | 2007-02-08 11:31:03 +0000 | [diff] [blame] | 36 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 37 | noinst_PROGRAMS = cachegrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@ |
| 38 | if VGCONF_HAVE_PLATFORM_SEC |
| 39 | noinst_PROGRAMS += cachegrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@ |
| 40 | endif |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 41 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 42 | CACHEGRIND_SOURCES_COMMON = \ |
| 43 | cg_main.c \ |
weidendo | 2364227 | 2011-09-06 19:08:31 +0000 | [diff] [blame] | 44 | cg-arch.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 45 | cg-x86-amd64.c \ |
| 46 | cg-ppc32.c \ |
sewardj | 59570ff | 2010-01-01 11:59:33 +0000 | [diff] [blame] | 47 | cg-ppc64.c \ |
weidendo | 2364227 | 2011-09-06 19:08:31 +0000 | [diff] [blame] | 48 | cg-arm.c \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 49 | cg-s390x.c |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 50 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 51 | cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \ |
| 52 | $(CACHEGRIND_SOURCES_COMMON) |
| 53 | cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \ |
| 54 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 55 | cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \ |
| 56 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 57 | cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \ |
| 58 | $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) |
| 59 | cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \ |
| 60 | $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@) |
| 61 | cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \ |
| 62 | $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 63 | cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \ |
sewardj | d364580 | 2010-06-13 22:13:58 +0000 | [diff] [blame] | 64 | $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 65 | @VALT_LOAD_ADDRESS_PRI@ \ |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 66 | $(LINK) \ |
| 67 | $(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \ |
| 68 | $(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS) |
| 69 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 70 | if VGCONF_HAVE_PLATFORM_SEC |
| 71 | cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \ |
| 72 | $(CACHEGRIND_SOURCES_COMMON) |
| 73 | cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \ |
| 74 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 75 | cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \ |
| 76 | $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 77 | cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \ |
| 78 | $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) |
| 79 | cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \ |
| 80 | $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@) |
| 81 | cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \ |
| 82 | $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 83 | cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \ |
sewardj | d364580 | 2010-06-13 22:13:58 +0000 | [diff] [blame] | 84 | $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 85 | @VALT_LOAD_ADDRESS_SEC@ \ |
sewardj | 9e6428a | 2010-06-02 00:31:34 +0000 | [diff] [blame] | 86 | $(LINK) \ |
| 87 | $(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \ |
| 88 | $(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS) |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 89 | endif |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 90 | |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 91 | |