|
From: <sv...@va...> - 2009-06-02 05:27:13
|
Author: njn Date: 2009-06-02 06:27:07 +0100 (Tue, 02 Jun 2009) New Revision: 10203 Log: Move some stuff around; no functional change. Modified: trunk/coregrind/Makefile.am Modified: trunk/coregrind/Makefile.am =================================================================== --- trunk/coregrind/Makefile.am 2009-06-02 05:19:54 UTC (rev 10202) +++ trunk/coregrind/Makefile.am 2009-06-02 05:27:07 UTC (rev 10203) @@ -7,6 +7,10 @@ include $(top_srcdir)/Makefile.flags.am include $(top_srcdir)/Makefile.core-tool.am +#---------------------------------------------------------------------------- +# Basics, flags +#---------------------------------------------------------------------------- + AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@ += \ -I$(top_srcdir)/coregrind \ -DVG_LIBDIR="\"$(valdir)"\" \ @@ -81,6 +85,21 @@ m_debuglog.c endif +valgrind_CPPFLAGS = $(AM_CPPFLAGS_PRI) +valgrind_CFLAGS = $(AM_CFLAGS_PRI) +valgrind_CCASFLAGS = $(AM_CCASFLAGS_PRI) +valgrind_LDFLAGS = $(AM_CFLAGS_PRI) + +no_op_client_for_valgrind_SOURCES = no_op_client_for_valgrind.c +no_op_client_for_valgrind_CPPFLAGS = $(AM_CPPFLAGS_PRI) +no_op_client_for_valgrind_CFLAGS = $(AM_CFLAGS_PRI) +no_op_client_for_valgrind_CCASFLAGS = $(AM_CCASFLAGS_PRI) +no_op_client_for_valgrind_LDFLAGS = $(AM_CFLAGS_PRI) + +#---------------------------------------------------------------------------- +# Darwin Mach stuff +#---------------------------------------------------------------------------- + # Mach RPC interface definitions # Here are some more .defs files that are not used, but could be in the # future: @@ -116,17 +135,6 @@ $(mach_srcs) $(mach_hdrs): $(mach_files) (cd m_mach && mig $(mach_files)) -valgrind_CPPFLAGS = $(AM_CPPFLAGS_PRI) -valgrind_CFLAGS = $(AM_CFLAGS_PRI) -valgrind_CCASFLAGS = $(AM_CCASFLAGS_PRI) -valgrind_LDFLAGS = $(AM_CFLAGS_PRI) - -no_op_client_for_valgrind_SOURCES = no_op_client_for_valgrind.c -no_op_client_for_valgrind_CPPFLAGS = $(AM_CPPFLAGS_PRI) -no_op_client_for_valgrind_CFLAGS = $(AM_CFLAGS_PRI) -no_op_client_for_valgrind_CCASFLAGS = $(AM_CCASFLAGS_PRI) -no_op_client_for_valgrind_LDFLAGS = $(AM_CFLAGS_PRI) - #---------------------------------------------------------------------------- # Headers #---------------------------------------------------------------------------- @@ -217,6 +225,10 @@ m_syswrap/priv_syswrap-main.h \ m_ume/priv_ume.h +#---------------------------------------------------------------------------- +# libcoregrind_<platform>.so +#---------------------------------------------------------------------------- + BUILT_SOURCES = CLEANFILES = if VGCONF_OS_IS_DARWIN @@ -224,10 +236,6 @@ CLEANFILES += $(COREGRIND_DARWIN_BUILT_SOURCES) endif -#---------------------------------------------------------------------------- -# libcoregrind_<platform>.so -#---------------------------------------------------------------------------- - COREGRIND_SOURCES_COMMON = \ m_commandline.c \ m_clientstate.c \ @@ -432,6 +440,28 @@ libcoregrind_amd64_darwin_a_CFLAGS = $(AM_CFLAGS_AMD64_DARWIN) libcoregrind_amd64_darwin_a_CCASFLAGS = $(AM_CCASFLAGS_AMD64_DARWIN) + +m_dispatch/dispatch-x86-linux.S: libvex_guest_offsets.h +m_dispatch/dispatch-amd64-linux.S: libvex_guest_offsets.h +m_dispatch/dispatch-ppc32-linux.S: libvex_guest_offsets.h +m_dispatch/dispatch-ppc64-linux.S: libvex_guest_offsets.h +m_dispatch/dispatch-ppc32-aix5.S: libvex_guest_offsets.h +m_dispatch/dispatch-ppc64-aix5.S: libvex_guest_offsets.h +m_dispatch/dispatch-x86-darwin.S: libvex_guest_offsets.h +m_dispatch/dispatch-amd64-darwin.S: libvex_guest_offsets.h +m_syswrap/syscall-x86-linux.S: libvex_guest_offsets.h +m_syswrap/syscall-amd64-linux.S: libvex_guest_offsets.h +m_syswrap/syscall-ppc32-linux.S: libvex_guest_offsets.h +m_syswrap/syscall-ppc64-linux.S: libvex_guest_offsets.h +m_syswrap/syscall-ppc32-aix5.S: libvex_guest_offsets.h +m_syswrap/syscall-ppc64-aix5.S: libvex_guest_offsets.h +m_syswrap/syscall-x86-darwin.S: libvex_guest_offsets.h +m_syswrap/syscall-amd64-darwin.S: libvex_guest_offsets.h +m_syswrap/syswrap-main.c: libvex_guest_offsets.h + +libvex_guest_offsets.h: + $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" pub/libvex_guest_offsets.h + #---------------------------------------------------------------------------- # libreplacemalloc_toolpreload_<platform>.so #---------------------------------------------------------------------------- @@ -460,27 +490,6 @@ libreplacemalloc_toolpreload_ppc32_aix5_a_AR = $(AR) -X32 cru libreplacemalloc_toolpreload_ppc64_aix5_a_AR = $(AR) -X64 cru -m_dispatch/dispatch-x86-linux.S: libvex_guest_offsets.h -m_dispatch/dispatch-amd64-linux.S: libvex_guest_offsets.h -m_dispatch/dispatch-ppc32-linux.S: libvex_guest_offsets.h -m_dispatch/dispatch-ppc64-linux.S: libvex_guest_offsets.h -m_dispatch/dispatch-ppc32-aix5.S: libvex_guest_offsets.h -m_dispatch/dispatch-ppc64-aix5.S: libvex_guest_offsets.h -m_dispatch/dispatch-x86-darwin.S: libvex_guest_offsets.h -m_dispatch/dispatch-amd64-darwin.S: libvex_guest_offsets.h -m_syswrap/syscall-x86-linux.S: libvex_guest_offsets.h -m_syswrap/syscall-amd64-linux.S: libvex_guest_offsets.h -m_syswrap/syscall-ppc32-linux.S: libvex_guest_offsets.h -m_syswrap/syscall-ppc64-linux.S: libvex_guest_offsets.h -m_syswrap/syscall-ppc32-aix5.S: libvex_guest_offsets.h -m_syswrap/syscall-ppc64-aix5.S: libvex_guest_offsets.h -m_syswrap/syscall-x86-darwin.S: libvex_guest_offsets.h -m_syswrap/syscall-amd64-darwin.S: libvex_guest_offsets.h -m_syswrap/syswrap-main.c: libvex_guest_offsets.h - -libvex_guest_offsets.h: - $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" pub/libvex_guest_offsets.h - #---------------------------------------------------------------------------- # vgpreload_core_<platform>.so #---------------------------------------------------------------------------- |