autoconf the verilog script to run anywhere.
This commit is contained in:
parent
2fb754cd54
commit
a4143f8788
|
|
@ -18,7 +18,7 @@
|
||||||
# 59 Temple Place - Suite 330
|
# 59 Temple Place - Suite 330
|
||||||
# Boston, MA 02111-1307, USA
|
# Boston, MA 02111-1307, USA
|
||||||
#
|
#
|
||||||
#ident "$Id: Makefile.in,v 1.20 1999/09/29 01:50:35 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.21 1999/10/16 17:03:49 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -77,8 +77,13 @@ Makefile: Makefile.in config.status
|
||||||
# the configured copy.
|
# the configured copy.
|
||||||
tmp1 = bindir
|
tmp1 = bindir
|
||||||
tmp2 = libdir
|
tmp2 = libdir
|
||||||
|
tmp3 = includedir
|
||||||
|
tmp4 = CXX
|
||||||
verilog: $(srcdir)/verilog.sh
|
verilog: $(srcdir)/verilog.sh
|
||||||
sed -e 's;@$(tmp1)@;@bindir@;' -e 's;@$(tmp2)@;@libdir@;' < $< > $@
|
sed -e 's;@$(tmp1)@;@bindir@;' \
|
||||||
|
-e 's;@$(tmp2)@;@libdir@;' \
|
||||||
|
-e 's;@$(tmp3)@;@includedir@;' \
|
||||||
|
-e 's;@$(tmp4)@;@CXX@;' < $< > $@
|
||||||
|
|
||||||
ivl: $O
|
ivl: $O
|
||||||
$(CXX) $(CXXFLAGS) -o ivl $O
|
$(CXX) $(CXXFLAGS) -o ivl $O
|
||||||
|
|
|
||||||
|
|
@ -24,13 +24,15 @@
|
||||||
execPath=@bindir@
|
execPath=@bindir@
|
||||||
execIVLPP=${execPath}/ivlpp
|
execIVLPP=${execPath}/ivlpp
|
||||||
execIVL=${execPath}/ivl
|
execIVL=${execPath}/ivl
|
||||||
execCpp=/usr/bin/g++
|
execCpp=@CXX@
|
||||||
|
|
||||||
tmpDir=/tmp
|
tmpDir=/tmp
|
||||||
tmpPPFile=${tmpDir}/ivl$$.pp
|
tmpPPFile=${tmpDir}/ivl$$.pp
|
||||||
tmpCCFile=${tmpDir}/ivl$$.cc
|
tmpCCFile=${tmpDir}/ivl$$.cc
|
||||||
|
|
||||||
VPIModulePath=@libdir@/ivl:.
|
includedir=@includedir@
|
||||||
|
libdir=@libdir@
|
||||||
|
VPIModulePath=@libdir@/ivl
|
||||||
|
|
||||||
target="vvm"
|
target="vvm"
|
||||||
targetSuffix=""
|
targetSuffix=""
|
||||||
|
|
@ -111,7 +113,7 @@ case "${target}" in
|
||||||
|
|
||||||
"xnf") mv ${tmpCCFile} ${outputFile} ;;
|
"xnf") mv ${tmpCCFile} ${outputFile} ;;
|
||||||
|
|
||||||
"vvm") ${execCpp} -rdynamic ${tmpCCFile} -o ${outputFile} -lvvm -ldl ;
|
"vvm") ${execCpp} -rdynamic -I${includedir} -L${libdir} ${tmpCCFile} -o ${outputFile} -lvvm -ldl ;
|
||||||
if test $? -ne 0 ; then
|
if test $? -ne 0 ; then
|
||||||
echo "C++ compilation failed. Terminating compilation."
|
echo "C++ compilation failed. Terminating compilation."
|
||||||
rm -f ${tmpCCFile}
|
rm -f ${tmpCCFile}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue