Create 3_13_BUGSTATUS.txt and pull all new bug reports into it.
[valgrind.git] / auxprogs / Makefile.am
blobaa92bec4d2ffb1799c442a56a30e128d73b3ec49
1 include $(top_srcdir)/Makefile.all.am
3 dist_noinst_SCRIPTS = \
4         change-copyright-year \
5         dump_insn_ppc.sh \
6         gen-mdg \
7         gsl16test \
8         gsl19test \
9         make_or_upd_vgversion_h \
10         nightly-build-summary \
11         update-demangler \
12         posixtestsuite-1.5.1-diff-results
14 EXTRA_DIST = \
15         docs/valgrind-listener-manpage.xml \
16         gsl16-badfree.patch \
17         gsl16-wavelet.patch \
18         posixtestsuite-1.5.1-diff.txt \
19         ppcfround.c \
20         ppc64shifts.c \
21         primes.c
23 #----------------------------------------------------------------------------
24 # valgrind_listener  (built for the primary target only)
25 # valgrind-di-server (ditto)
26 #----------------------------------------------------------------------------
28 bin_PROGRAMS = valgrind-listener valgrind-di-server
30 valgrind_listener_SOURCES = valgrind-listener.c
31 valgrind_listener_CPPFLAGS  = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind
32 valgrind_listener_CFLAGS    = $(AM_CFLAGS_PRI)
33 valgrind_listener_CCASFLAGS = $(AM_CCASFLAGS_PRI)
34 valgrind_listener_LDFLAGS   = $(AM_CFLAGS_PRI)
35 if VGCONF_PLATVARIANT_IS_ANDROID
36 valgrind_listener_CFLAGS    += -static
37 endif
38 # If there is no secondary platform, and the platforms include x86-darwin,
39 # then the primary platform must be x86-darwin.  Hence:
40 if ! VGCONF_HAVE_PLATFORM_SEC
41 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
42 valgrind_listener_LDFLAGS   += -Wl,-read_only_relocs -Wl,suppress
43 endif
44 endif
45 if VGCONF_OS_IS_SOLARIS
46 valgrind_listener_LDADD      = -lsocket -lnsl
47 endif
49 valgrind_di_server_SOURCES   = valgrind-di-server.c
50 valgrind_di_server_CPPFLAGS  = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind
51 valgrind_di_server_CFLAGS    = $(AM_CFLAGS_PRI)
52 valgrind_di_server_CCASFLAGS = $(AM_CCASFLAGS_PRI)
53 valgrind_di_server_LDFLAGS   = $(AM_CFLAGS_PRI)
54 if VGCONF_PLATVARIANT_IS_ANDROID
55 valgrind_di_server_CFLAGS    += -static
56 endif
57 # If there is no secondary platform, and the platforms include x86-darwin,
58 # then the primary platform must be x86-darwin.  Hence:
59 if ! VGCONF_HAVE_PLATFORM_SEC
60 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
61 valgrind_di_server_LDFLAGS   += -Wl,-read_only_relocs -Wl,suppress
62 endif
63 endif
64 if VGCONF_OS_IS_SOLARIS
65 valgrind_di_server_LDADD     = -lsocket -lnsl
66 endif
68 #----------------------------------------------------------------------------
69 # getoff-<platform>
70 # Used to retrieve user space various offsets, using user space libraries.
71 #----------------------------------------------------------------------------
73 noinst_PROGRAMS  = getoff-@VGCONF_ARCH_PRI@-@VGCONF_OS@
74 if VGCONF_HAVE_PLATFORM_SEC
75 noinst_PROGRAMS += getoff-@VGCONF_ARCH_SEC@-@VGCONF_OS@
76 endif
78 # The link flags for this are tricky, because we want to build it for
79 # both the primary and secondary platforms, and add 
80 # "-Wl,-read_only_relocs -Wl,suppress" to whichever of those is x86-darwin,
81 # if any.  Hence there's a double-nested conditional that adds to the
82 # LDFLAGS in both cases.
84 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES   = getoff.c
85 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS  = $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
86 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS    = $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
87 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CCASFLAGS = $(AM_CCASFLAGS_PRI)
88 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS   = $(AM_CFLAGS_PRI) @LIB_UBSAN@
89 if HAVE_DLINFO_RTLD_DI_TLS_MODID
90 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = $(LDADD) -ldl
91 endif
92 # If there is no secondary platform, and the platforms include x86-darwin,
93 # then the primary platform must be x86-darwin.  Hence:
94 if ! VGCONF_HAVE_PLATFORM_SEC
95 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
96 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS   += -Wl,-read_only_relocs -Wl,suppress
97 endif
98 endif
100 if VGCONF_HAVE_PLATFORM_SEC
101 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES   = getoff.c
102 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS  = $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
103 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS    = $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
104 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CCASFLAGS = $(AM_CCASFLAGS_SEC)
105 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS   = $(AM_CFLAGS_SEC)
106 if HAVE_DLINFO_RTLD_DI_TLS_MODID
107 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = $(LDADD) -ldl
108 endif
109 endif
110 # If there is a secondary platform, and the platforms include x86-darwin,
111 # then the primary platform must be amd64-darwin and the secondary platform
112 # must be x86-darwin.  Hence:
113 if VGCONF_HAVE_PLATFORM_SEC
114 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
115 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS   += -Wl,-read_only_relocs -Wl,suppress
116 endif
117 endif
119 #----------------------------------------------------------------------------
120 # General stuff
121 #----------------------------------------------------------------------------
123 all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS
125 clean-local: clean-noinst_DSYMS
127 install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS
129 uninstall-local: uninstall-noinst_PROGRAMS uninstall-noinst_DSYMS