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