Added support for MAC OSX.
This commit is contained in:
parent
ab44f6866b
commit
40017e1290
|
|
@ -15,7 +15,7 @@ DIE=0
|
|||
DIE=1
|
||||
}
|
||||
|
||||
(libtool --version) < /dev/null > /dev/null 2>&1 || {
|
||||
(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "You must have libtool installed to compile $PROJECT."
|
||||
echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ top_builddir = ../../..
|
|||
top_srcdir = @top_srcdir@
|
||||
subdir = src/xspice/icm
|
||||
mkdir_p = @mkdir_p@
|
||||
+uname = $(shell uname)
|
||||
|
||||
# C compiler to use
|
||||
CC = @CC@
|
||||
|
|
@ -22,7 +23,11 @@ CFLAGS = @CFLAGS@ -fPIC -DCM_LINUX
|
|||
CMPP = $(TOPDIR)$(top_builddir)/src/xspice/cmpp/cmpp
|
||||
|
||||
# Flags to use when linking shared library
|
||||
ifeq "$(strip $(uname))" "Darwin"
|
||||
LDFLAGS = -bundle -flat_namespace -undefined suppress
|
||||
else
|
||||
LDFLAGS = -shared
|
||||
endif
|
||||
|
||||
# The codemodels to make
|
||||
CMDIRS = spice2poly digital analog xtradev xtraevt
|
||||
|
|
|
|||
Loading…
Reference in New Issue