From e81d0d9f2310798d0bc64752188f98e2b95bf5ee Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 22 Mar 2001 21:26:53 +0000 Subject: [PATCH] Compile in a default VPI module dir. --- vvp/Makefile.in | 4 ++-- vvp/config.h.in | 9 ++++++++- vvp/main.cc | 7 +++++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/vvp/Makefile.in b/vvp/Makefile.in index f591e50cd..9d43a783c 100644 --- a/vvp/Makefile.in +++ b/vvp/Makefile.in @@ -16,7 +16,7 @@ # 59 Temple Place - Suite 330 # Boston, MA 02111-1307, USA # -#ident "$Id: Makefile.in,v 1.8 2001/03/20 06:16:23 steve Exp $" +#ident "$Id: Makefile.in,v 1.9 2001/03/22 21:26:53 steve Exp $" # # SHELL = /bin/sh @@ -39,7 +39,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ STRIP = @STRIP@ -CPPFLAGS = @CPPFLAGS@ @DEFS@ +CPPFLAGS = @CPPFLAGS@ @DEFS@ -DMODULE_DIR=\"$(libdir)/ivl\" CXXFLAGS = @CXXFLAGS@ -I. -I$(srcdir)/.. LDFLAGS = @LDFLAGS@ diff --git a/vvp/config.h.in b/vvp/config.h.in index 27ae13224..14362e2a3 100644 --- a/vvp/config.h.in +++ b/vvp/config.h.in @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: config.h.in,v 1.2 2001/03/16 01:44:34 steve Exp $" +#ident "$Id: config.h.in,v 1.3 2001/03/22 21:26:53 steve Exp $" #endif # define SIZEOF_UNSIGNED_LONG 0 @@ -31,8 +31,15 @@ # define LU "" # define TU "" +#ifndef MODULE_DIR +# define MODULE_DIR "." +#endif + /* * $Log: config.h.in,v $ + * Revision 1.3 2001/03/22 21:26:53 steve + * Compile in a default VPI module dir. + * * Revision 1.2 2001/03/16 01:44:34 steve * Add structures for VPI support, and all the %vpi_call * instruction. Get linking of VPI modules to work. diff --git a/vvp/main.cc b/vvp/main.cc index 1d4a0554f..edc5ea846 100644 --- a/vvp/main.cc +++ b/vvp/main.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: main.cc,v 1.4 2001/03/20 06:16:24 steve Exp $" +#ident "$Id: main.cc,v 1.5 2001/03/22 21:26:54 steve Exp $" #endif # include "config.h" @@ -29,7 +29,7 @@ # include -const char*module_path = "."; +const char*module_path = MODULE_DIR; unsigned module_cnt = 0; const char*module_tab[64]; @@ -90,6 +90,9 @@ int main(int argc, char*argv[]) /* * $Log: main.cc,v $ + * Revision 1.5 2001/03/22 21:26:54 steve + * Compile in a default VPI module dir. + * * Revision 1.4 2001/03/20 06:16:24 steve * Add support for variable vectors. *