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