Home | History | Annotate | Download | only in callgrind
      1 include $(top_srcdir)/Makefile.tool.am
      2 
      3 EXTRA_DIST =  \
      4 	docs/callgrind_annotate-manpage.xml \
      5 	docs/callgrind_control-manpage.xml \
      6 	docs/cl-manual.xml \
      7 	docs/cl-format.xml
      8 
      9 #----------------------------------------------------------------------------
     10 # Headers, etc
     11 #----------------------------------------------------------------------------
     12 
     13 pkginclude_HEADERS = callgrind.h
     14 
     15 bin_SCRIPTS = \
     16 	callgrind_annotate \
     17 	callgrind_control
     18 
     19 noinst_HEADERS = \
     20 	costs.h \
     21 	events.h \
     22 	global.h
     23 
     24 #----------------------------------------------------------------------------
     25 # callgrind-<platform>
     26 #----------------------------------------------------------------------------
     27 
     28 noinst_PROGRAMS  = callgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@
     29 if VGCONF_HAVE_PLATFORM_SEC
     30 noinst_PROGRAMS += callgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@
     31 endif
     32 
     33 CALLGRIND_SOURCES_COMMON = \
     34 	bb.c \
     35 	bbcc.c \
     36 	callstack.c \
     37 	clo.c \
     38 	command.c \
     39 	context.c \
     40 	costs.c \
     41 	debug.c \
     42 	dump.c \
     43 	events.c \
     44 	fn.c \
     45 	jumps.c \
     46 	main.c \
     47 	sim.c \
     48 	threads.c \
     49 	../cachegrind/cg-arch.c \
     50 	../cachegrind/cg-x86-amd64.c \
     51 	../cachegrind/cg-ppc32.c \
     52 	../cachegrind/cg-ppc64.c \
     53 	../cachegrind/cg-arm.c   \
     54 	../cachegrind/cg-s390x.c
     55 
     56 CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind
     57 
     58 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES      = \
     59 	$(CALLGRIND_SOURCES_COMMON)
     60 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS     = \
     61 	$(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
     62 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS       = \
     63 	$(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
     64 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
     65 	$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
     66 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
     67 	$(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
     68 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
     69 	$(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
     70 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
     71 	$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
     72 	@VALT_LOAD_ADDRESS_PRI@ \
     73 	$(LINK) \
     74 	$(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
     75 	$(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
     76 
     77 if VGCONF_HAVE_PLATFORM_SEC
     78 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES      = \
     79 	$(CALLGRIND_SOURCES_COMMON)
     80 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS     = \
     81 	$(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
     82 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS       = \
     83 	$(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
     84 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
     85 	$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
     86 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
     87 	$(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
     88 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
     89 	$(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
     90 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
     91 	$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
     92 	@VALT_LOAD_ADDRESS_SEC@ \
     93 	$(LINK) \
     94 	$(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
     95 	$(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
     96 endif
     97 
     98