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