diff --git a/Makefile.in b/Makefile.in index 62599bf25..7b6ec449f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -16,7 +16,7 @@ # 59 Temple Place - Suite 330 # Boston, MA 02111-1307, USA # -#ident "$Id: Makefile.in,v 1.97 2001/06/12 03:53:10 steve Exp $" +#ident "$Id: Makefile.in,v 1.98 2001/07/11 19:32:02 steve Exp $" # # SHELL = /bin/sh @@ -48,6 +48,7 @@ STRIP = @STRIP@ CPPFLAGS = @CPPFLAGS@ @DEFS@ CXXFLAGS = @CXXFLAGS@ -I. -I$(srcdir) +PICFLAGS = @PICFLAG@ LDFLAGS = @LDFLAGS@ # The TARGETS variable lists the target modules that can be build and @@ -78,7 +79,7 @@ check: all ./check | grep 'Hello, World' clean: - rm -f *.o parse.cc parse.cc.output parse.h dep/*.d lexor.cc lexor_keyword.cc ivl@EXEEXT@ libivl.a + rm -f *.o parse.cc parse.cc.output parse.h dep/*.d lexor.cc lexor_keyword.cc ivl@EXEEXT@ libivl.a libvpi.a cd vvm ; $(MAKE) clean cd vpi ; $(MAKE) clean cd driver ; $(MAKE) clean @@ -124,6 +125,14 @@ libvpi.a: vpithunk.o rm -f $@ ar cvq $@ vpithunk.o +# The vpithunk.c file (that makes up the libvpi.a library) needs to +# be make with PIC flags, because shared objects load it. +vpithunk.o: vpithunk.c + @[ -d dep ] || mkdir dep + $(CC) $(CPPFLAGS) $(CFLAGS) $(PICFLAGS) -MD -c $< -o $*.o + mv $*.d dep/$*.d + + ifeq (@WIN32@,yes) ivl@EXEEXT@: $O ivl.def dlltool --dllname ivl@EXEEXT@ --def ivl.def \