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