Make SP (S-parameter) standrad during compile.
The configure flad --disable-sp will remove SP
This commit is contained in:
parent
287406459a
commit
088be81cf3
|
|
@ -52,14 +52,14 @@ if test "$1" = "d"; then
|
|||
echo "configuring for 64 bit debug"
|
||||
echo
|
||||
# You may add --enable-adms to the following command for adding adms generated devices
|
||||
../configure --with-x --enable-xspice --enable-cider --with-readline=yes --enable-openmp --enable-sp CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-m64 -g"
|
||||
../configure --with-x --enable-xspice --enable-cider --with-readline=yes --enable-openmp CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-m64 -g"
|
||||
else
|
||||
cd release
|
||||
if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi
|
||||
echo "configuring for 64 bit release"
|
||||
echo
|
||||
# You may add --enable-adms to the following command for adding adms generated devices
|
||||
../configure --with-x --enable-xspice --enable-cider --with-readline=yes --enable-openmp --enable-sp --disable-debug CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
|
||||
../configure --with-x --enable-xspice --enable-cider --with-readline=yes --enable-openmp --disable-debug CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
|
||||
fi
|
||||
if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi
|
||||
|
||||
|
|
|
|||
|
|
@ -53,14 +53,14 @@ if test "$1" = "d"; then
|
|||
echo "configuring for 64 bit debug"
|
||||
echo
|
||||
# You may add --enable-adms to the following command for adding adms generated devices
|
||||
../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --enable-sp prefix="C:/Spice64d" CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-g -m64"
|
||||
../configure --with-wingui --enable-xspice --enable-cider --enable-openmp prefix="C:/Spice64d" CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-g -m64"
|
||||
else
|
||||
cd release
|
||||
if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi
|
||||
echo "configuring for 64 bit release"
|
||||
echo
|
||||
# You may add --enable-adms to the following command for adding adms generated devices
|
||||
../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --enable-sp --disable-debug prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
|
||||
../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
|
||||
fi
|
||||
if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi
|
||||
|
||||
|
|
|
|||
18
configure.ac
18
configure.ac
|
|
@ -158,9 +158,9 @@ AC_ARG_ENABLE([adms],
|
|||
AC_ARG_ENABLE([pss],
|
||||
[AS_HELP_STRING([--enable-pss], [Enable PSS Analysis, (experimental)])])
|
||||
|
||||
# --enable-sp: enable S Parameter Analysis
|
||||
# --disable-sp: disable S Parameter Analysis
|
||||
AC_ARG_ENABLE([sp],
|
||||
[AS_HELP_STRING([--enable-sp], [Enable S parameter Analysis])])
|
||||
[AS_HELP_STRING([--disable-sp], [Disable S parameter Analysis])])
|
||||
|
||||
# --enable-relpath: Relative path for binary and data. Default is "no".
|
||||
# ngspice shared may want relative paths for spinit etc.
|
||||
|
|
@ -1166,19 +1166,21 @@ if test "x$enable_cider" = xyes; then
|
|||
fi
|
||||
|
||||
# Add S parameter analysis to ngspice.
|
||||
if test "x$enable_sp" = xyes; then
|
||||
if test "x$enable_sp" = xno; then
|
||||
AC_MSG_RESULT([S parameter analysis disabled])
|
||||
has_sp=false
|
||||
else
|
||||
AC_MSG_RESULT([S parameter analysis enabled])
|
||||
AC_DEFINE([RFSPICE], [1], [S parameter analysis])
|
||||
has_sp=true
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([SP_WANTED], [test "x$has_sp" = xtrue])
|
||||
|
||||
|
||||
AM_CONDITIONAL([CIDER_WANTED], [test "x$enable_cider" = xyes])
|
||||
AM_CONDITIONAL([NUMDEV_WANTED], [test "x$enable_cider" = xyes])
|
||||
|
||||
|
||||
AM_CONDITIONAL([PSS_WANTED], [test "x$enable_pss" = xyes])
|
||||
|
||||
AM_CONDITIONAL([SP_WANTED], [test "x$enable_sp" = xyes])
|
||||
|
||||
AM_CONDITIONAL([SENSE2_WANTED], [test "x$enable_sense2" = xyes])
|
||||
|
||||
# adms option
|
||||
|
|
|
|||
Loading…
Reference in New Issue