blob: a580e520fe7cce814371a4a3dfaec193cb058a68 [file] [log] [blame]
weidendoa17f2a32006-03-20 10:27:30 +00001include $(top_srcdir)/Makefile.tool.am
2
njn7375de32009-08-05 08:08:18 +00003EXTRA_DIST = \
njnefd7ef72009-08-07 07:44:31 +00004 docs/callgrind_annotate-manpage.xml \
5 docs/callgrind_control-manpage.xml \
njn7375de32009-08-05 08:08:18 +00006 docs/cl-manual.xml \
njnefd7ef72009-08-07 07:44:31 +00007 docs/cl-format.xml
njn7375de32009-08-05 08:08:18 +00008
njn8b68b642009-06-24 00:37:09 +00009#----------------------------------------------------------------------------
10# Headers, etc
11#----------------------------------------------------------------------------
weidendoa17f2a32006-03-20 10:27:30 +000012
njn8b68b642009-06-24 00:37:09 +000013pkginclude_HEADERS = callgrind.h
weidendoa17f2a32006-03-20 10:27:30 +000014
njn8b68b642009-06-24 00:37:09 +000015bin_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@
njnf76d27a2009-05-28 01:53:07 +000031endif
weidendoa17f2a32006-03-20 10:27:30 +000032
njn8b68b642009-06-24 00:37:09 +000033CALLGRIND_SOURCES_COMMON = \
34 bb.c \
35 bbcc.c \
36 callstack.c \
37 clo.c \
38 command.c \
39 context.c \
40 costs.c \
41 debug.c \
42 dump.c \
43 events.c \
44 fn.c \
45 jumps.c \
46 main.c \
47 sim.c \
48 threads.c \
49 ../cachegrind/cg-x86-amd64.c \
50 ../cachegrind/cg-ppc32.c \
51 ../cachegrind/cg-ppc64.c
52
weidendoe5727552007-06-02 21:36:26 +000053CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind
weidendoa17f2a32006-03-20 10:27:30 +000054
njn8b68b642009-06-24 00:37:09 +000055callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
56 $(CALLGRIND_SOURCES_COMMON)
57callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
58 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
59callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \
60 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
61callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
62 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
63callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
64 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
65callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
66 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
67if VGCONF_HAVE_PLATFORM_SEC
68callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
69 $(CALLGRIND_SOURCES_COMMON)
70callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
71 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
72callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \
73 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
74callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
75 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
76callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
77 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
78callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
79 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
80endif
sewardjb34485c2006-10-17 21:06:58 +000081