1include $(top_srcdir)/Makefile.tool.am 2 3EXTRA_DIST = \ 4 docs/cg-manual.xml \ 5 docs/cg_annotate-manpage.xml 6 7#---------------------------------------------------------------------------- 8# Headers, etc 9#---------------------------------------------------------------------------- 10 11bin_SCRIPTS = cg_annotate cg_diff 12 13noinst_HEADERS = \ 14 cg_arch.h \ 15 cg_branchpred.c \ 16 cg_sim.c 17 18#---------------------------------------------------------------------------- 19# cg_merge (built for the primary target only) 20#---------------------------------------------------------------------------- 21 22bin_PROGRAMS = cg_merge 23 24cg_merge_SOURCES = cg_merge.c 25cg_merge_CPPFLAGS = $(AM_CPPFLAGS_PRI) 26cg_merge_CFLAGS = $(AM_CFLAGS_PRI) 27cg_merge_CCASFLAGS = $(AM_CCASFLAGS_PRI) 28cg_merge_LDFLAGS = $(AM_CFLAGS_PRI) 29if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN 30cg_merge_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress 31endif 32 33#---------------------------------------------------------------------------- 34# cachegrind-<platform> 35#---------------------------------------------------------------------------- 36 37noinst_PROGRAMS = cachegrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@ 38if VGCONF_HAVE_PLATFORM_SEC 39noinst_PROGRAMS += cachegrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@ 40endif 41 42CACHEGRIND_SOURCES_COMMON = \ 43 cg_main.c \ 44 cg-arch.c \ 45 cg-x86-amd64.c \ 46 cg-ppc32.c \ 47 cg-ppc64.c \ 48 cg-arm.c \ 49 cg-s390x.c 50 51cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \ 52 $(CACHEGRIND_SOURCES_COMMON) 53cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \ 54 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 55cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \ 56 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 57cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \ 58 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) 59cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \ 60 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@) 61cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \ 62 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 63cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \ 64 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 65 @VALT_LOAD_ADDRESS_PRI@ \ 66 $(LINK) \ 67 $(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \ 68 $(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS) 69 70if VGCONF_HAVE_PLATFORM_SEC 71cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \ 72 $(CACHEGRIND_SOURCES_COMMON) 73cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \ 74 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 75cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \ 76 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 77cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \ 78 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) 79cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \ 80 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@) 81cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \ 82 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 83cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \ 84 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 85 @VALT_LOAD_ADDRESS_SEC@ \ 86 $(LINK) \ 87 $(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \ 88 $(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS) 89endif 90 91 92