Segregate 64bit and 32bit files on AMD64.

This commit is contained in:
steve 2003-10-06 18:58:32 +00:00
parent 52b756a6fa
commit 9b821c0dbd
3 changed files with 28 additions and 2 deletions

View File

@ -94,12 +94,18 @@ configure script that modify its behavior:
common to use --prefix=/opt. You can configure for a non-root
install with --prefix=$HOME.
--enable-vvp32 (experimental)
If compiling on AMD64 systems, this enables the
compilation of 32bit compatible vvp (vvp32) and the vpi
modules that match.
NOTE FOR AMD64: If you are building on an AMD64 system, you probably
want to put libraries in a lib64 directory instead of the usual lib
directory. This is how Linux/AMD64 keeps 64bit libraries segregated
from 32bit libraries. This is done by configuring like this:
./configure libdir64='$(prefix)/lib64' vpidir1=vpi64 vpidir2=.
./configure libdir64='$(prefix)/lib64' vpidir1=vpi64 vpidir2=. --enable-vvp32
2.3 (Optional) Testing

View File

@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
#ident "$Id: Makefile.in,v 1.55 2003/10/02 21:30:40 steve Exp $"
#ident "$Id: Makefile.in,v 1.56 2003/10/06 18:58:33 steve Exp $"
#
#
SHELL = /bin/sh
@ -114,6 +114,22 @@ tables.cc: $(srcdir)/draw_tt.c
./draw_tt > tables.cc
rm draw_tt@EXEEXT@
ifeq (@enable_vvp32@,yes)
bin32:
mkdir bin32
bin32/%.o: %.cc bin32
$(CXX) -m32 -DHAVE_CVS_IDENT=1 $(CPPFLAGS) $(CXXFLAGS) -MD -c $< -o $@
bin32/%.o: %.c bin32
$(CC) -m32 -DHAVE_CVS_IDENT=1 $(CPPFLAGS) $(CXXFLAGS) -MD -c $< -o $@
bin32/lexor.o: lexor.cc parse.h
vvp32: $(addprefix bin32/,$O)
$(CXX) -m32 $(rdynamic) $(CXXFLAGS) $(LDFLAGS) -o vvp32 $(addprefix bin32/,$O) $(LIBS) $(dllib)
endif
lexor.o: lexor.cc parse.h
parse.o: parse.cc

View File

@ -11,6 +11,10 @@ AC_EXEEXT
AC_MINGW32
AC_SUBST(EXEEXT)
# vvp32 is by default disabled
#enable_vvp32=no
AC_SUBST(enable_vvp32)
AC_CHECK_PROGS(LEX,flex,none)
if test "$LEX" = "none"
then