Home | History | Annotate | Download | only in massif
      1 include $(top_srcdir)/Makefile.tool.am
      2 
      3 SUBDIRS += perf
      4 
      5 EXTRA_DIST = \
      6 	docs/ms-manual.xml \
      7 	docs/ms_print-manpage.xml
      8 
      9 #----------------------------------------------------------------------------
     10 # Headers, etc
     11 #----------------------------------------------------------------------------
     12 
     13 bin_SCRIPTS = ms_print
     14 
     15 #----------------------------------------------------------------------------
     16 # massif-<platform>
     17 #----------------------------------------------------------------------------
     18 
     19 noinst_PROGRAMS  = massif-@VGCONF_ARCH_PRI@-@VGCONF_OS@
     20 if VGCONF_HAVE_PLATFORM_SEC
     21 noinst_PROGRAMS += massif-@VGCONF_ARCH_SEC@-@VGCONF_OS@
     22 endif
     23 
     24 MASSIF_SOURCES_COMMON = ms_main.c
     25 
     26 massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES      = \
     27 	$(MASSIF_SOURCES_COMMON)
     28 massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS     = \
     29 	$(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
     30 massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS       = \
     31 	$(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
     32 massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
     33 	$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
     34 massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
     35 	$(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
     36 massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
     37 	$(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
     38 massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
     39 	$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
     40 	@VALT_LOAD_ADDRESS_PRI@ \
     41 	$(LINK) \
     42 	$(massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
     43 	$(massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
     44 
     45 if VGCONF_HAVE_PLATFORM_SEC
     46 massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES      = \
     47 	$(MASSIF_SOURCES_COMMON)
     48 massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS     = \
     49 	$(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
     50 massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS       = \
     51 	$(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
     52 massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
     53 	$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
     54 massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
     55 	$(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
     56 massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
     57 	$(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
     58 massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
     59 	$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
     60 	@VALT_LOAD_ADDRESS_SEC@ \
     61 	$(LINK) \
     62 	$(massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
     63 	$(massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
     64 endif
     65 
     66 #----------------------------------------------------------------------------
     67 # vgpreload_massif-<platform>.so
     68 #----------------------------------------------------------------------------
     69 
     70 noinst_PROGRAMS += vgpreload_massif-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
     71 if VGCONF_HAVE_PLATFORM_SEC
     72 noinst_PROGRAMS += vgpreload_massif-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
     73 endif
     74 
     75 if VGCONF_OS_IS_DARWIN
     76 noinst_DSYMS = $(noinst_PROGRAMS)
     77 endif
     78 
     79 vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES      = 
     80 vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS     = \
     81 	$(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
     82 vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS       = \
     83 	$(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(AM_CFLAGS_PIC)
     84 vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_DEPENDENCIES = \
     85 	$(LIBREPLACEMALLOC_@VGCONF_PLATFORM_PRI_CAPS@)
     86 vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS      = \
     87 	$(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \
     88 	$(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
     89 
     90 if VGCONF_HAVE_PLATFORM_SEC
     91 vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES      = 
     92 vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS     = \
     93 	$(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
     94 vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS       = \
     95 	$(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(AM_CFLAGS_PIC)
     96 vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_DEPENDENCIES = \
     97 	$(LIBREPLACEMALLOC_@VGCONF_PLATFORM_SEC_CAPS@)
     98 vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS      = \
     99 	$(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \
    100 	$(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
    101 endif
    102 
    103