• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include $(top_srcdir)/Makefile.tool.am
2
3EXTRA_DIST =  \
4	docs/callgrind_annotate-manpage.xml \
5	docs/callgrind_control-manpage.xml \
6	docs/cl-manual.xml \
7	docs/cl-format.xml
8
9#----------------------------------------------------------------------------
10# Headers, etc
11#----------------------------------------------------------------------------
12
13pkginclude_HEADERS = callgrind.h
14
15bin_SCRIPTS = \
16	callgrind_annotate \
17	callgrind_control
18
19noinst_HEADERS = \
20	costs.h \
21	events.h \
22	global.h
23
24#----------------------------------------------------------------------------
25# callgrind-<platform>
26#----------------------------------------------------------------------------
27
28noinst_PROGRAMS  = callgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@
29if VGCONF_HAVE_PLATFORM_SEC
30noinst_PROGRAMS += callgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@
31endif
32
33CALLGRIND_SOURCES_COMMON = \
34	bb.c \
35	bbcc.c \
36	callstack.c \
37	clo.c \
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
48
49# We sneakily include "cg_branchpred.c" and "cg_arch.c" from cachegrind
50CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind
51
52callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES      = \
53	$(CALLGRIND_SOURCES_COMMON)
54callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS     = \
55	$(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
56callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS       = \
57	$(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
58callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
59	$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
60callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
61	$(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
62callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
63	$(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
64callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
65	$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
66	@VALT_LOAD_ADDRESS_PRI@ \
67	$(LINK) \
68	$(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
69	$(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
70
71if VGCONF_HAVE_PLATFORM_SEC
72callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES      = \
73	$(CALLGRIND_SOURCES_COMMON)
74callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS     = \
75	$(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
76callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS       = \
77	$(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
78callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
79	$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
80callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
81	$(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
82callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
83	$(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
84callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
85	$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
86	@VALT_LOAD_ADDRESS_SEC@ \
87	$(LINK) \
88	$(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
89	$(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
90endif
91