Makefile.am 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. include $(top_srcdir)/Makefile.tool.am
  2. EXTRA_DIST = docs/cu-manual.xml
  3. #----------------------------------------------------------------------------
  4. # Headers
  5. #----------------------------------------------------------------------------
  6. pkginclude_HEADERS = \
  7. cputil.h
  8. noinst_HEADERS = \
  9. cputildefs.h
  10. # cputil.h is generated from cputildefs.h, removing the include cpp stmt
  11. bin_SCRIPTS = cputil
  12. cputil:
  13. echo "#!/bin/sh" >cputil
  14. echo "$(bindir)/valgrind -q" '--tool=cputil "$$@"' >>cputil
  15. chmod +x cputil
  16. #----------------------------------------------------------------------------
  17. # cputil-<platform>
  18. #----------------------------------------------------------------------------
  19. noinst_PROGRAMS = cputil-@VGCONF_ARCH_PRI@-@VGCONF_OS@
  20. if VGCONF_HAVE_PLATFORM_SEC
  21. noinst_PROGRAMS += cputil-@VGCONF_ARCH_SEC@-@VGCONF_OS@
  22. endif
  23. CPUTIL_SOURCES_COMMON = cu_main.c
  24. cputil_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
  25. $(CPUTIL_SOURCES_COMMON)
  26. cputil_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
  27. $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
  28. cputil_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \
  29. $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
  30. cputil_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
  31. $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
  32. cputil_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
  33. $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
  34. cputil_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
  35. $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
  36. cputil_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
  37. $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
  38. @VALT_LOAD_ADDRESS_PRI@ \
  39. $(LINK) \
  40. $(cputil_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
  41. $(cputil_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
  42. if VGCONF_HAVE_PLATFORM_SEC
  43. cputil_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
  44. $(CPUTIL_SOURCES_COMMON)
  45. cputil_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
  46. $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
  47. cputil_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \
  48. $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
  49. cputil_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
  50. $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
  51. cputil_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
  52. $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
  53. cputil_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
  54. $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
  55. cputil_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
  56. $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
  57. @VALT_LOAD_ADDRESS_SEC@ \
  58. $(LINK) \
  59. $(cputil_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
  60. $(cputil_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
  61. endif
  62. #----------------------------------------------------------------------------
  63. # vgpreload_cputil-<platform>.so
  64. #----------------------------------------------------------------------------
  65. #noinst_PROGRAMS += vgpreload_cputil-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
  66. #if VGCONF_HAVE_PLATFORM_SEC
  67. #noinst_PROGRAMS += vgpreload_cputil-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
  68. #endif
  69. #if VGCONF_OS_IS_DARWIN
  70. #noinst_DSYMS = $(noinst_PROGRAMS)
  71. #endif