Support compile on MacosX 10.1.1 (Timothy J. Wood)
This commit is contained in:
parent
cac941b272
commit
54bb59ae99
|
|
@ -153,6 +153,7 @@ AC_MSG_RESULT($EXTRALIBS)
|
||||||
# Darwin requires -no-cpp-precomp
|
# Darwin requires -no-cpp-precomp
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
|
CPPFLAGS="-no-cpp-precomp"
|
||||||
CFLAGS="-no-cpp-precomp"
|
CFLAGS="-no-cpp-precomp"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
@ -204,12 +205,12 @@ case "${host}" in
|
||||||
shared="-b"
|
shared="-b"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-*-darwin1.4)
|
*-*-darwin1.[0123])
|
||||||
shared="-bundle -undefined suppress -flat_namespace"
|
shared="-bundle -undefined suppress"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
shared="-bundle -undefined suppress"
|
shared="-bundle -undefined suppress -flat_namespace"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.9 2001/11/12 18:47:32 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.10 2001/11/17 17:57:58 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -54,7 +54,7 @@ all: iverilog@EXEEXT@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o lexor.c parse.c parse.h parse.output
|
rm -f *.o lexor.c parse.c parse.h parse.output
|
||||||
rm -r cflexor.c cfparse.c cfparse.h cfparse.output
|
rm -f cflexor.c cfparse.c cfparse.h cfparse.output
|
||||||
|
|
||||||
O = main.o build_string.o lexor.o parse.o cflexor.o cfparse.o
|
O = main.o build_string.o lexor.o parse.o cflexor.o cfparse.o
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
ftp://ftp.gnu.org/gnu/gperf/gperf-2.7.2.tar.gz
|
ftp://ftp.gnu.org/gnu/gperf/gperf-2.7.2.tar.gz
|
||||||
|
|
||||||
|
|
||||||
3) Configure, build and install the Icarus Verilog sources.
|
3) Configure, build and install the Icarus Verilog sources as normal.
|
||||||
|
|
||||||
The only change you need to make here is to use a configure command like:
|
The only change you need to make here is to use a configure command like:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,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.3 2001/09/06 04:28:39 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.4 2001/11/17 17:57:58 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -40,6 +40,7 @@ INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
|
||||||
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
||||||
CXXFLAGS = @CXXFLAGS@
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
all: fpga.tgt
|
all: fpga.tgt
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,14 @@ AC_CYGWIN
|
||||||
AC_SUBST(CYGWIN)
|
AC_SUBST(CYGWIN)
|
||||||
AC_CHECK_HEADERS(malloc.h)
|
AC_CHECK_HEADERS(malloc.h)
|
||||||
|
|
||||||
|
# Darwin requires -no-cpp-precomp
|
||||||
|
case "${host}" in
|
||||||
|
*-*-darwin*)
|
||||||
|
CPPFLAGS="-no-cpp-precomp"
|
||||||
|
CFLAGS="-no-cpp-precomp"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# The -fPIC flag is used to tell the compiler to make position
|
# The -fPIC flag is used to tell the compiler to make position
|
||||||
# independent code. It is needed when making shared objects.
|
# independent code. It is needed when making shared objects.
|
||||||
|
|
||||||
|
|
@ -44,12 +52,12 @@ case "${host}" in
|
||||||
shared="-b"
|
shared="-b"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-*-darwin1.4)
|
*-*-darwin1.[0123])
|
||||||
shared="-bundle -undefined suppress -flat_namespace"
|
shared="-bundle -undefined suppress"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
shared="-bundle -undefined suppress"
|
shared="-bundle -undefined suppress -flat_namespace"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,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.5 2001/05/20 17:13:27 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.6 2001/11/17 17:57:58 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -41,6 +41,7 @@ INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
|
||||||
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
||||||
CXXFLAGS = @CXXFLAGS@
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
all: null.tgt
|
all: null.tgt
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,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.7 2001/02/07 22:22:00 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.8 2001/11/17 17:57:58 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -41,6 +41,7 @@ INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
|
||||||
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
||||||
CXXFLAGS = @CXXFLAGS@
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
all: pal.tgt
|
all: pal.tgt
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,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.8 2001/05/20 15:09:40 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.9 2001/11/17 17:57:58 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -41,6 +41,7 @@ INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
|
||||||
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
||||||
CXXFLAGS = @CXXFLAGS@
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
all: stub.tgt
|
all: stub.tgt
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,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.7 2001/05/20 15:09:40 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.8 2001/11/17 17:57:58 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -41,6 +41,7 @@ INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
|
||||||
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
|
||||||
CXXFLAGS = @CXXFLAGS@
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
all: verilog.tgt
|
all: verilog.tgt
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,14 @@ AC_CYGWIN
|
||||||
AC_SUBST(CYGWIN)
|
AC_SUBST(CYGWIN)
|
||||||
AC_CHECK_HEADERS(malloc.h)
|
AC_CHECK_HEADERS(malloc.h)
|
||||||
|
|
||||||
|
# Darwin requires -no-cpp-precomp
|
||||||
|
case "${host}" in
|
||||||
|
*-*-darwin*)
|
||||||
|
CPPFLAGS="-no-cpp-precomp"
|
||||||
|
CFLAGS="-no-cpp-precomp"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# The -fPIC flag is used to tell the compiler to make position
|
# The -fPIC flag is used to tell the compiler to make position
|
||||||
# independent code. It is needed when making shared objects.
|
# independent code. It is needed when making shared objects.
|
||||||
|
|
||||||
|
|
@ -44,12 +52,12 @@ case "${host}" in
|
||||||
shared="-b"
|
shared="-b"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-*-darwin1.4)
|
*-*-darwin1.[0123])
|
||||||
shared="-bundle -undefined suppress -flat_namespace"
|
shared="-bundle -undefined suppress"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
shared="-bundle -undefined suppress"
|
shared="-bundle -undefined suppress -flat_namespace"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,14 @@ AC_CYGWIN
|
||||||
AC_EXEEXT
|
AC_EXEEXT
|
||||||
|
|
||||||
|
|
||||||
|
# Darwin requires -no-cpp-precomp
|
||||||
|
case "${host}" in
|
||||||
|
*-*-darwin*)
|
||||||
|
CPPFLAGS="-no-cpp-precomp"
|
||||||
|
CFLAGS="-no-cpp-precomp"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
WIN32=no
|
WIN32=no
|
||||||
AC_MSG_CHECKING("for shared library link flag")
|
AC_MSG_CHECKING("for shared library link flag")
|
||||||
shared=-shared
|
shared=-shared
|
||||||
|
|
@ -21,11 +29,11 @@ case "${host}" in
|
||||||
*-*-hpux*)
|
*-*-hpux*)
|
||||||
shared="-b"
|
shared="-b"
|
||||||
;;
|
;;
|
||||||
*-*-darwin1.4)
|
*-*-darwin1.[0123])
|
||||||
shared="-bundle -undefined suppress -flat_namespace"
|
shared="-bundle -undefined suppress"
|
||||||
;;
|
;;
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
shared="-bundle -undefined suppress"
|
shared="-bundle -undefined suppress -flat_namespace"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(shared)
|
AC_SUBST(shared)
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,14 @@ fi
|
||||||
AC_SUBST(DLLIB)
|
AC_SUBST(DLLIB)
|
||||||
|
|
||||||
|
|
||||||
|
# Darwin requires -no-cpp-precomp
|
||||||
|
case "${host}" in
|
||||||
|
*-*-darwin*)
|
||||||
|
CPPFLAGS="-no-cpp-precomp"
|
||||||
|
CFLAGS="-no-cpp-precomp"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# see how we can give some resource usage stats with -v
|
# see how we can give some resource usage stats with -v
|
||||||
# Linux does not provide mem stats in rusage, use /proc/self/statm.
|
# Linux does not provide mem stats in rusage, use /proc/self/statm.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue