mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
It's currently written in C, but `cg_annotate` and `cg_diff` are written in Python. It's better to have them all in the same language. The good news is that the Python code is 4.5x shorter than the C code. The bad news is that the Python code is roughly 3x slower than the C code. But `cg_merge` isn't used that often, so I think it's a reasonable trade-off.
90 lines
3.1 KiB
Makefile
90 lines
3.1 KiB
Makefile
include $(top_srcdir)/Makefile.tool.am
|
|
|
|
EXTRA_DIST = \
|
|
docs/cg-manual.xml \
|
|
docs/cg_annotate-manpage.xml \
|
|
docs/cg_diff-manpage.xml \
|
|
docs/cg_merge-manpage.xml
|
|
|
|
#----------------------------------------------------------------------------
|
|
# Headers, etc
|
|
#----------------------------------------------------------------------------
|
|
|
|
bin_SCRIPTS = cg_annotate cg_diff cg_merge
|
|
|
|
noinst_HEADERS = \
|
|
cg_arch.h \
|
|
cg_branchpred.c \
|
|
cg_sim.c
|
|
|
|
#----------------------------------------------------------------------------
|
|
# cachegrind-<platform>
|
|
#----------------------------------------------------------------------------
|
|
|
|
noinst_PROGRAMS = cachegrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@
|
|
if VGCONF_HAVE_PLATFORM_SEC
|
|
noinst_PROGRAMS += cachegrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@
|
|
endif
|
|
|
|
CACHEGRIND_SOURCES_COMMON = \
|
|
cg_main.c \
|
|
cg_arch.c
|
|
|
|
cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
|
|
$(CACHEGRIND_SOURCES_COMMON)
|
|
cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
|
|
$(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS) \
|
|
$(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
|
|
$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
|
|
$(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
|
|
$(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
|
|
$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
|
|
@VALT_LOAD_ADDRESS_PRI@ \
|
|
$(LINK) \
|
|
$(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
|
|
$(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
|
|
|
|
if VGCONF_HAVE_PLATFORM_SEC
|
|
cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
|
|
$(CACHEGRIND_SOURCES_COMMON)
|
|
cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
|
|
$(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS)\
|
|
$(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
|
|
$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
|
|
$(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
|
|
$(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
|
|
cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
|
|
$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
|
|
@VALT_LOAD_ADDRESS_SEC@ \
|
|
$(LINK) \
|
|
$(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
|
|
$(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
|
|
endif
|
|
|
|
#----------------------------------------------------------------------------
|
|
# Miscellaneous
|
|
#----------------------------------------------------------------------------
|
|
|
|
# "Build" `cg_annotate`. The `+` avoids warnings about the jobserver.
|
|
pyann:
|
|
+../auxprogs/pybuild.sh cg_annotate.in cg_annotate
|
|
|
|
# "Build" `cg_diff`. The `+` avoids warnings about the jobserver.
|
|
pydiff:
|
|
+../auxprogs/pybuild.sh cg_diff.in cg_diff
|
|
|
|
# "Build" `cg_merge`. The `+` avoids warnings about the jobserver.
|
|
pymerge:
|
|
+../auxprogs/pybuild.sh cg_merge.in cg_merge
|
|
|
|
.PHONY: pyann pydiff pymerge
|