|
From: <sv...@va...> - 2005-11-07 14:59:17
|
Author: sewardj Date: 2005-11-07 14:59:13 +0000 (Mon, 07 Nov 2005) New Revision: 1445 Log: Changes for biarch (x86 and amd64) support. Modified: trunk/Makefile Modified: trunk/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/Makefile 2005-11-07 14:23:52 UTC (rev 1444) +++ trunk/Makefile 2005-11-07 14:59:13 UTC (rev 1445) @@ -101,12 +101,37 @@ rm -f libvex.a $(AR) clq libvex.a $(LIB_OBJS) =20 + +# The idea with these TAG_s is to mark the flavour of libvex.a=20 +# most recently built, so if the same target is re-requested, we +# don't rebuild everything, but if a different one is requested +# then we scrub everything and start over. + +libvex_x86_linux.a: TAG_x86_linux libvex.a + mv -f libvex.a libvex_x86_linux.a +TAG_x86_linux: + if [ ! -f TAG_x86_linux ] ; then rm -f $(LIB_OBJS) *.a TAG_* ; fi + touch TAG_x86_linux + +libvex_amd64_linux.a: TAG_amd64_linux libvex.a + mv -f libvex.a libvex_amd64_linux.a +TAG_amd64_linux: + if [ ! -f TAG_amd64_linux ] ; then rm -f $(LIB_OBJS) *.a TAG_* ; fi + touch TAG_amd64_linux + +libvex_ppc32_linux.a: TAG_ppc32_linux libvex.a + mv -f libvex.a libvex_ppc32_linux.a +TAG_ppc32_linux: + if [ ! -f TAG_ppc32_linux ] ; then rm -f $(LIB_OBJS) *.a TAG_* ; fi + touch TAG_ppc32_linux + + # This doesn't get rid of priv/main/vex_svnversion.h, because # that can't be regenerated in the final Valgrind tarball, and # so if 'make clean' did get rid of it, then in the tarball, # doing 'make ; make clean ; make' (or distclean) would fail. clean: - rm -f $(LIB_OBJS) libvex.a vex test_main.o \ + rm -f $(LIB_OBJS) libvex.a vex test_main.o TAG_* \ pub/libvex_guest_offsets.h =20 version: |