mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Prepare for calc version 2.13.0.1
Replaced /usr/local with the use of ${PREFIX} in calc Makefiles. The ${PREFIX} is not the same as ${T}. The ${T} specifies a top level directory under which calc installs things. While usally ${T} is empty, it can be specific path as if calc where "chrooted" during an install. The ${PREFIX} value, during install, is a path between the top level ${T} install directory and the object such as an include file. Corrected a few more typos in Makefile comments.
This commit is contained in:
21
CHANGES
21
CHANGES
@@ -1,4 +1,19 @@
|
|||||||
The following are the changes from calc version 2.13.0 to date:
|
The following are the changes from calc version 2.13.0.1 to date:
|
||||||
|
|
||||||
|
Replaced /usr/local with the use of ${PREFIX} in calc Makefiles.
|
||||||
|
|
||||||
|
The ${PREFIX} is not the same as ${T}. The ${T} specifies
|
||||||
|
a top level directory under which calc installs things.
|
||||||
|
While usally ${T} is empty, it can be specific path
|
||||||
|
as if calc where "chrooted" during an install.
|
||||||
|
The ${PREFIX} value, during install, is a path between
|
||||||
|
the top level ${T} install directory and the object
|
||||||
|
such as an include file.
|
||||||
|
|
||||||
|
Corrected a few more typos in Makefile comments.
|
||||||
|
|
||||||
|
|
||||||
|
The following are the changes from calc version 2.13.0.0 to date:
|
||||||
|
|
||||||
Fixed typo (missing quotes) in the env rule.
|
Fixed typo (missing quotes) in the env rule.
|
||||||
|
|
||||||
@@ -65,7 +80,9 @@ The following are the changes from calc version 2.13.0 to date:
|
|||||||
Due to incompatible changes to the argv() function, and #! calc
|
Due to incompatible changes to the argv() function, and #! calc
|
||||||
scripts, we are setting the version to the next minor number:
|
scripts, we are setting the version to the next minor number:
|
||||||
|
|
||||||
2.13.0
|
2.13.0.x
|
||||||
|
|
||||||
|
Updated BUGS file as per v2.13.0 fixes.
|
||||||
|
|
||||||
|
|
||||||
The following are the changes from calc version 2.12.8.2 to 2.12.9.1:
|
The following are the changes from calc version 2.12.8.2 to 2.12.9.1:
|
||||||
|
29
Makefile
29
Makefile
@@ -68,6 +68,22 @@ endif
|
|||||||
#-=-=-=-=-=-=-=-=- You may want to change some values below -=-=-=-=-=-=-=-=-#
|
#-=-=-=-=-=-=-=-=- You may want to change some values below -=-=-=-=-=-=-=-=-#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
# PREFIX - Top level location for calc
|
||||||
|
#
|
||||||
|
# The PREFIX is often prepended to paths within calc and calc Makefiles.
|
||||||
|
#
|
||||||
|
# Starting with calc v2.13.0.1, nearly all Makefile places that used
|
||||||
|
# /usr/local now use ${PREFIX}. An exception is the olduninstall rule
|
||||||
|
# and, of course, this section. :-)
|
||||||
|
#
|
||||||
|
# When in doubt, try:
|
||||||
|
#
|
||||||
|
# PREFIX= /usr/local
|
||||||
|
#
|
||||||
|
PREFIX= /usr/local
|
||||||
|
#PREFIX= /usr
|
||||||
|
#PREFIX= /usr/global
|
||||||
|
|
||||||
# CCBAN is given to ${CC} in order to control if banned.h is in effect.
|
# CCBAN is given to ${CC} in order to control if banned.h is in effect.
|
||||||
#
|
#
|
||||||
# The banned.h attempts to ban the use of certain dangerous functions
|
# The banned.h attempts to ban the use of certain dangerous functions
|
||||||
@@ -111,22 +127,22 @@ USE_READLINE= -DUSE_READLINE
|
|||||||
#
|
#
|
||||||
#READLINE_LIB=
|
#READLINE_LIB=
|
||||||
#READLINE_LIB= -L/usr/gnu/lib -lreadline -lhistory -lncurses
|
#READLINE_LIB= -L/usr/gnu/lib -lreadline -lhistory -lncurses
|
||||||
#READLINE_LIB= -L/usr/local/lib -lreadline -lhistory -lncurses
|
#READLINE_LIB= -L${PREFIX}/lib -lreadline -lhistory -lncurses
|
||||||
ifeq ($(target),Darwin)
|
ifeq ($(target),Darwin)
|
||||||
# homebrew installs readline & history libs in /usr/local/opt/readline/lib
|
# homebrew installs readline & history libs in ${PREFIX}/opt/readline/lib
|
||||||
READLINE_LIB= -L/usr/local/opt/readline/lib -lreadline -lhistory -lncurses
|
READLINE_LIB= -L${PREFIX}/opt/readline/lib -lreadline -lhistory -lncurses
|
||||||
else
|
else
|
||||||
READLINE_LIB= -lreadline -lhistory -lncurses
|
READLINE_LIB= -lreadline -lhistory -lncurses
|
||||||
endif
|
endif
|
||||||
#
|
#
|
||||||
ifeq ($(target),Darwin)
|
ifeq ($(target),Darwin)
|
||||||
# homebrew installs readline & history *.h under /usr/local/opt/readline/include
|
# homebrew installs readline & history *.h under ${PREFIX}/opt/readline/include
|
||||||
READLINE_INCLUDE= -I/usr/local/opt/readline/include
|
READLINE_INCLUDE= -I${PREFIX}/opt/readline/include
|
||||||
else
|
else
|
||||||
READLINE_INCLUDE=
|
READLINE_INCLUDE=
|
||||||
endif
|
endif
|
||||||
#READLINE_INCLUDE= -I/usr/gnu/include
|
#READLINE_INCLUDE= -I/usr/gnu/include
|
||||||
#READLINE_INCLUDE= -I/usr/local/include
|
#READLINE_INCLUDE= -I${PREFIX}/include
|
||||||
|
|
||||||
# Normally certain files depend on the Makefile. If the Makefile is
|
# Normally certain files depend on the Makefile. If the Makefile is
|
||||||
# changed, then certain steps should be redone. If MAKE_FILE is
|
# changed, then certain steps should be redone. If MAKE_FILE is
|
||||||
@@ -242,6 +258,7 @@ XVAR= \
|
|||||||
MAKE_FILE='${MAKE_FILE}' \
|
MAKE_FILE='${MAKE_FILE}' \
|
||||||
NROFF='${NROFF}' \
|
NROFF='${NROFF}' \
|
||||||
Q='${Q}' \
|
Q='${Q}' \
|
||||||
|
PREFIX='${PREFIX}' \
|
||||||
READLINE_INCLUDE='${READLINE_INCLUDE}' \
|
READLINE_INCLUDE='${READLINE_INCLUDE}' \
|
||||||
READLINE_LIB='${READLINE_LIB}' \
|
READLINE_LIB='${READLINE_LIB}' \
|
||||||
RPM_TOP='${RPM_TOP}' \
|
RPM_TOP='${RPM_TOP}' \
|
||||||
|
128
Makefile.ship
128
Makefile.ship
@@ -47,7 +47,7 @@
|
|||||||
# SHELL= /bin/bash
|
# SHELL= /bin/bash
|
||||||
#
|
#
|
||||||
# On some systems such as macOS, the bash shell is very
|
# On some systems such as macOS, the bash shell is very
|
||||||
# far behind to the point wehre is cannot be depended on.
|
# far behind to the point where is cannot be depended on.
|
||||||
# On such systems, the zsh may be a much better alternative
|
# On such systems, the zsh may be a much better alternative
|
||||||
# shell for this Makefile to use:
|
# shell for this Makefile to use:
|
||||||
#
|
#
|
||||||
@@ -78,6 +78,36 @@ endif
|
|||||||
#-=-=-=-=-=-=-=-=- You may want to change some values below -=-=-=-=-=-=-=-=-#
|
#-=-=-=-=-=-=-=-=- You may want to change some values below -=-=-=-=-=-=-=-=-#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
# PREFIX - Top level location for calc
|
||||||
|
#
|
||||||
|
# The PREFIX is often prepended to paths within calc and calc Makefiles.
|
||||||
|
#
|
||||||
|
# Starting with calc v2.13.0.1, nearly all Makefile places that used
|
||||||
|
# /usr/local now use ${PREFIX}. An exception is the olduninstall rule
|
||||||
|
# and, of course, this section. :-)
|
||||||
|
#
|
||||||
|
# NOTE: The ${PREFIX} is not the same as ${T}. The ${T} specifies
|
||||||
|
# a top level directory under which calc installs things.
|
||||||
|
# While usually ${T} is empty, it can be specific path
|
||||||
|
# as if calc where "chrooted" during an install.
|
||||||
|
# The ${PREFIX} value, during install, is a path between
|
||||||
|
# the top level ${T} install directory and the object
|
||||||
|
# such as an include file.
|
||||||
|
#
|
||||||
|
# NOTE: See also, ${T}, below.
|
||||||
|
#
|
||||||
|
# There are some paths that do NOT call under ${PREFIX}, such as
|
||||||
|
# ${CALCPATH}, that include paths not under ${PREFIX}, but those
|
||||||
|
# too are exceptions to this general rule.
|
||||||
|
#
|
||||||
|
# When in doubt, try:
|
||||||
|
#
|
||||||
|
# PREFIX= /usr/local
|
||||||
|
#
|
||||||
|
PREFIX= /usr/local
|
||||||
|
#PREFIX= /usr
|
||||||
|
#PREFIX= /usr/global
|
||||||
|
|
||||||
# CCBAN is given to ${CC} in order to control if banned.h is in effect.
|
# CCBAN is given to ${CC} in order to control if banned.h is in effect.
|
||||||
#
|
#
|
||||||
# The banned.h attempts to ban the use of certain dangerous functions
|
# The banned.h attempts to ban the use of certain dangerous functions
|
||||||
@@ -85,7 +115,7 @@ endif
|
|||||||
# if calculations.
|
# if calculations.
|
||||||
#
|
#
|
||||||
# In the case of calc, we are motivated in part by the desire for calc
|
# In the case of calc, we are motivated in part by the desire for calc
|
||||||
# to correctly calculate: even durings extremely long calculations.
|
# to correctly calculate: even during extremely long calculations.
|
||||||
#
|
#
|
||||||
# If UNBAN is NOT defined, then calling certain functions
|
# If UNBAN is NOT defined, then calling certain functions
|
||||||
# will result in a call to a non-existent function (link error).
|
# will result in a call to a non-existent function (link error).
|
||||||
@@ -651,7 +681,7 @@ HAVE_STRLCAT=
|
|||||||
#
|
#
|
||||||
# However, if you are on macOS then set:
|
# However, if you are on macOS then set:
|
||||||
#
|
#
|
||||||
# INCDIR= /usr/local/include
|
# INCDIR= ${PREFIX}/include
|
||||||
#if 0 /* start of skip for non-Gnu makefiles */
|
#if 0 /* start of skip for non-Gnu makefiles */
|
||||||
ifeq ($(target),Darwin)
|
ifeq ($(target),Darwin)
|
||||||
|
|
||||||
@@ -663,7 +693,7 @@ else
|
|||||||
|
|
||||||
# default INCDIR for non-macOS
|
# default INCDIR for non-macOS
|
||||||
INCDIR= /usr/include
|
INCDIR= /usr/include
|
||||||
#INCDIR= /usr/local/include
|
#INCDIR= ${PREFIX}/include
|
||||||
#INCDIR= /dev/env/DJDIR/include
|
#INCDIR= /dev/env/DJDIR/include
|
||||||
|
|
||||||
#if 0 /* start of skip for non-Gnu makefiles */
|
#if 0 /* start of skip for non-Gnu makefiles */
|
||||||
@@ -707,26 +737,26 @@ endif
|
|||||||
#
|
#
|
||||||
# However, if you are on macOS then set:
|
# However, if you are on macOS then set:
|
||||||
#
|
#
|
||||||
# BINDIR= /usr/local/bin
|
# BINDIR= ${PREFIX}/bin
|
||||||
# LIBDIR= /usr/local/lib
|
# LIBDIR= ${PREFIX}/lib
|
||||||
# CALC_SHAREDIR= /usr/local/share/calc
|
# CALC_SHAREDIR= ${PREFIX}/share/calc
|
||||||
#
|
#
|
||||||
# NOTE: Starting with macOS El Capitan OS X 10.11, root by default
|
# NOTE: Starting with macOS El Capitan OS X 10.11, root by default
|
||||||
# could not mkdir under system locations, so macOS must now
|
# could not mkdir under system locations, so macOS must now
|
||||||
# use the /usr/local tree.
|
# use the ${PREFIX} tree.
|
||||||
|
|
||||||
#if 0 /* start of skip for non-Gnu makefiles */
|
#if 0 /* start of skip for non-Gnu makefiles */
|
||||||
ifeq ($(target),Darwin)
|
ifeq ($(target),Darwin)
|
||||||
|
|
||||||
# default BINDIR for macOS
|
# default BINDIR for macOS
|
||||||
BINDIR= /usr/local/bin
|
BINDIR= ${PREFIX}/bin
|
||||||
|
|
||||||
else
|
else
|
||||||
#endif /* end of skip for non-Gnu makefiles */
|
#endif /* end of skip for non-Gnu makefiles */
|
||||||
|
|
||||||
# default BINDIR for non-macOS
|
# default BINDIR for non-macOS
|
||||||
BINDIR= /usr/bin
|
BINDIR= /usr/bin
|
||||||
#BINDIR= /usr/local/bin
|
#BINDIR= ${PREFIX}/bin
|
||||||
#BINDIR= /dev/env/DJDIR/bin
|
#BINDIR= /dev/env/DJDIR/bin
|
||||||
|
|
||||||
#if 0 /* start of skip for non-Gnu makefiles */
|
#if 0 /* start of skip for non-Gnu makefiles */
|
||||||
@@ -735,14 +765,14 @@ endif
|
|||||||
ifeq ($(target),Darwin)
|
ifeq ($(target),Darwin)
|
||||||
|
|
||||||
# default LIBDIR for macOS
|
# default LIBDIR for macOS
|
||||||
LIBDIR= /usr/local/lib
|
LIBDIR= ${PREFIX}/lib
|
||||||
|
|
||||||
else
|
else
|
||||||
#endif /* end of skip for non-Gnu makefiles */
|
#endif /* end of skip for non-Gnu makefiles */
|
||||||
|
|
||||||
# default LIBDIR for non-macOS
|
# default LIBDIR for non-macOS
|
||||||
LIBDIR= /usr/lib
|
LIBDIR= /usr/lib
|
||||||
#LIBDIR= /usr/local/lib
|
#LIBDIR= ${PREFIX}/lib
|
||||||
#LIBDIR= /dev/env/DJDIR/lib
|
#LIBDIR= /dev/env/DJDIR/lib
|
||||||
|
|
||||||
#if 0 /* start of skip for non-Gnu makefiles */
|
#if 0 /* start of skip for non-Gnu makefiles */
|
||||||
@@ -751,25 +781,25 @@ endif
|
|||||||
ifeq ($(target),Darwin)
|
ifeq ($(target),Darwin)
|
||||||
|
|
||||||
# default CALC_SHAREDIR for macOS
|
# default CALC_SHAREDIR for macOS
|
||||||
CALC_SHAREDIR= /usr/local/share/calc
|
CALC_SHAREDIR= ${PREFIX}/share/calc
|
||||||
|
|
||||||
else
|
else
|
||||||
#endif /* end of skip for non-Gnu makefiles */
|
#endif /* end of skip for non-Gnu makefiles */
|
||||||
|
|
||||||
# default CALC_SHAREDIR for non-macOS
|
# default CALC_SHAREDIR for non-macOS
|
||||||
CALC_SHAREDIR= /usr/share/calc
|
CALC_SHAREDIR= /usr/share/calc
|
||||||
#CALC_SHAREDIR= /usr/local/lib/calc
|
#CALC_SHAREDIR= ${PREFIX}/lib/calc
|
||||||
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
||||||
|
|
||||||
#if 0 /* start of skip for non-Gnu makefiles */
|
#if 0 /* start of skip for non-Gnu makefiles */
|
||||||
endif
|
endif
|
||||||
#endif /* end of skip for non-Gnu makefiles */
|
#endif /* end of skip for non-Gnu makefiles */
|
||||||
|
|
||||||
# NOTE: Do not set CALC_INCDIR to /usr/include or /usr/local/include!!!
|
# NOTE: Do not set CALC_INCDIR to /usr/include or ${PREFIX}/include!!!
|
||||||
# Always be sure that the CALC_INCDIR path ends in /calc to avoid
|
# Always be sure that the CALC_INCDIR path ends in /calc to avoid
|
||||||
# conflicts with system or other application include files!!!
|
# conflicts with system or other application include files!!!
|
||||||
#
|
#
|
||||||
#CALC_INCDIR= /usr/local/include/calc
|
#CALC_INCDIR= ${PREFIX}/include/calc
|
||||||
#CALC_INCDIR= /dev/env/DJDIR/include/calc
|
#CALC_INCDIR= /dev/env/DJDIR/include/calc
|
||||||
CALC_INCDIR= ${INCDIR}/calc
|
CALC_INCDIR= ${INCDIR}/calc
|
||||||
|
|
||||||
@@ -828,6 +858,16 @@ SCRIPTDIR= ${BINDIR}/cscript
|
|||||||
# calc is installed under ${T}, as if one had to chroot under
|
# calc is installed under ${T}, as if one had to chroot under
|
||||||
# ${T} for calc to operate.
|
# ${T} for calc to operate.
|
||||||
#
|
#
|
||||||
|
# NOTE: The ${PREFIX} is not the same as ${T}. The ${T} specifies
|
||||||
|
# a top level directory under which calc installs things.
|
||||||
|
# While usually ${T} is empty, it can be specific path
|
||||||
|
# as if calc where "chrooted" during an install.
|
||||||
|
# The ${PREFIX} value, during install, is a path between
|
||||||
|
# the top level ${T} install directory and the object
|
||||||
|
# such as an include file.
|
||||||
|
#
|
||||||
|
# See ${PREFIX} above.
|
||||||
|
#
|
||||||
# If in doubt, use T=
|
# If in doubt, use T=
|
||||||
#
|
#
|
||||||
T=
|
T=
|
||||||
@@ -841,15 +881,15 @@ T=
|
|||||||
# NOTE: man pages not installed by macOS must go under,
|
# NOTE: man pages not installed by macOS must go under,
|
||||||
# (according to MANPATH as found in /private/etc/man.conf):
|
# (according to MANPATH as found in /private/etc/man.conf):
|
||||||
#
|
#
|
||||||
# MANDIR= /usr/local/share/man/man1
|
# MANDIR= ${PREFIX}/share/man/man1
|
||||||
#
|
#
|
||||||
#MANDIR=
|
#MANDIR=
|
||||||
#MANDIR= /usr/local/man/man1
|
#MANDIR= ${PREFIX}/man/man1
|
||||||
#MANDIR= /usr/man/man1
|
#MANDIR= /usr/man/man1
|
||||||
#
|
#
|
||||||
#if 0 /* start of skip for non-Gnu makefiles */
|
#if 0 /* start of skip for non-Gnu makefiles */
|
||||||
ifeq ($(target),Darwin)
|
ifeq ($(target),Darwin)
|
||||||
MANDIR= /usr/local/share/man/man1
|
MANDIR= ${PREFIX}/share/man/man1
|
||||||
else
|
else
|
||||||
#endif /* end of skip for non-Gnu makefiles */
|
#endif /* end of skip for non-Gnu makefiles */
|
||||||
MANDIR= /usr/share/man/man1
|
MANDIR= /usr/share/man/man1
|
||||||
@@ -870,8 +910,8 @@ endif
|
|||||||
# ${NROFF} executable and/or the ${MANMAKE} executable.
|
# ${NROFF} executable and/or the ${MANMAKE} executable.
|
||||||
#
|
#
|
||||||
CATDIR=
|
CATDIR=
|
||||||
#CATDIR= /usr/local/man/cat1
|
#CATDIR= ${PREFIX}/man/cat1
|
||||||
#CATDIR= /usr/local/catman/cat1
|
#CATDIR= ${PREFIX}/catman/cat1
|
||||||
#CATDIR= /usr/man/cat1
|
#CATDIR= /usr/man/cat1
|
||||||
#CATDIR= /usr/share/man/cat1
|
#CATDIR= /usr/share/man/cat1
|
||||||
#CATDIR= /dev/env/DJDIR/man/cat1
|
#CATDIR= /dev/env/DJDIR/man/cat1
|
||||||
@@ -923,7 +963,7 @@ NROFF=
|
|||||||
#NROFF= groff
|
#NROFF= groff
|
||||||
NROFF_ARG= -man
|
NROFF_ARG= -man
|
||||||
#NROFF_ARG= -mandoc
|
#NROFF_ARG= -mandoc
|
||||||
MANMAKE= /usr/local/bin/manmake
|
MANMAKE= ${PREFIX}/bin/manmake
|
||||||
#MANMAKE= manmake
|
#MANMAKE= manmake
|
||||||
MANMODE= 0444
|
MANMODE= 0444
|
||||||
CATMODE= 0444
|
CATMODE= 0444
|
||||||
@@ -1005,7 +1045,7 @@ READLINE_EXTRAS=
|
|||||||
#READLINE_LIB= -L/usr/gnu/lib -lreadline
|
#READLINE_LIB= -L/usr/gnu/lib -lreadline
|
||||||
#READLINE_EXTRAS= -lhistory -lncurses
|
#READLINE_EXTRAS= -lhistory -lncurses
|
||||||
#
|
#
|
||||||
#READLINE_LIB= -L/usr/local/lib -lreadline
|
#READLINE_LIB= -L${PREFIX}/lib -lreadline
|
||||||
#READLINE_EXTRAS= -lhistory -lncurses
|
#READLINE_EXTRAS= -lhistory -lncurses
|
||||||
#
|
#
|
||||||
# For Apple OS X: install fink from http://fink.sourceforge.net
|
# For Apple OS X: install fink from http://fink.sourceforge.net
|
||||||
@@ -1020,12 +1060,12 @@ READLINE_EXTRAS=
|
|||||||
#
|
#
|
||||||
# and use:
|
# and use:
|
||||||
#
|
#
|
||||||
#READLINE_LIB= -L/usr/local/opt/readline/lib -lreadline
|
#READLINE_LIB= -L${PREFIX}/opt/readline/lib -lreadline
|
||||||
#READLINE_EXTRAS= -lhistory -lncurses
|
#READLINE_EXTRAS= -lhistory -lncurses
|
||||||
#
|
#
|
||||||
READLINE_INCLUDE=
|
READLINE_INCLUDE=
|
||||||
#READLINE_INCLUDE= -I/usr/gnu/include
|
#READLINE_INCLUDE= -I/usr/gnu/include
|
||||||
#READLINE_INCLUDE= -I/usr/local/include
|
#READLINE_INCLUDE= -I${PREFIX}/include
|
||||||
|
|
||||||
# If $PAGER is not set, use this program to display a help file
|
# If $PAGER is not set, use this program to display a help file
|
||||||
#
|
#
|
||||||
@@ -1153,7 +1193,7 @@ EXT=
|
|||||||
|
|
||||||
# The default calc versions
|
# The default calc versions
|
||||||
#
|
#
|
||||||
VERSION= 2.13.0.0
|
VERSION= 2.13.0.1
|
||||||
|
|
||||||
# Names of shared libraries with versions
|
# Names of shared libraries with versions
|
||||||
#
|
#
|
||||||
@@ -1339,7 +1379,7 @@ ifeq ($(target),Linux)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1391,7 +1431,7 @@ ifeq ($(target),Darwin)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= ${DARWIN_ARCH}
|
LD_SHARE= ${DARWIN_ARCH}
|
||||||
#SET_INSTALL_NAME= no
|
#SET_INSTALL_NAME= no
|
||||||
SET_INSTALL_NAME= yes
|
SET_INSTALL_NAME= yes
|
||||||
@@ -1473,7 +1513,7 @@ ifeq ($(target),FreeBSD)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1533,7 +1573,7 @@ ifeq ($(target),OpenBSD)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1587,7 +1627,7 @@ ifeq ($(target),SunOS)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1639,7 +1679,7 @@ ifeq ($(target),Cygwin)
|
|||||||
BLD_TYPE= calc-static-only
|
BLD_TYPE= calc-static-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1695,7 +1735,7 @@ ifeq ($(target),simple)
|
|||||||
BLD_TYPE= calc-static-only
|
BLD_TYPE= calc-static-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1754,7 +1794,7 @@ CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit
|
|||||||
BLD_TYPE= calc-static-only
|
BLD_TYPE= calc-static-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1794,7 +1834,7 @@ ifeq ($(target),)
|
|||||||
BLD_TYPE= calc-static-only
|
BLD_TYPE= calc-static-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1959,7 +1999,7 @@ LIB_H_SRC= alloc.h banned.h blkcpy.h block.h byteswap.h calc.h cmath.h \
|
|||||||
|
|
||||||
# we build these .h files during the make
|
# we build these .h files during the make
|
||||||
#
|
#
|
||||||
BUILD_H_SRC= align32.h args.h calcerr.c calcerr.h conf.h endian_calc.h \
|
BUILD_H_SRC= align32.h args.h calcerr.h conf.h endian_calc.h \
|
||||||
fposval.h have_ban_pragma.h have_const.h have_fpos.h \
|
fposval.h have_ban_pragma.h have_const.h have_fpos.h \
|
||||||
have_fpos_pos.h have_getpgid.h have_getprid.h have_getsid.h \
|
have_fpos_pos.h have_getpgid.h have_getprid.h have_getsid.h \
|
||||||
have_gettime.h have_memmv.h have_newstr.h have_offscl.h \
|
have_gettime.h have_memmv.h have_newstr.h have_offscl.h \
|
||||||
@@ -2092,6 +2132,7 @@ CUSTOM_PASSDOWN= \
|
|||||||
MAKE_FILE=Makefile \
|
MAKE_FILE=Makefile \
|
||||||
MKDIR=${MKDIR} \
|
MKDIR=${MKDIR} \
|
||||||
MV=${MV} \
|
MV=${MV} \
|
||||||
|
PREFIX="${PREFIX}" \
|
||||||
PURIFY="${PURIFY}" \
|
PURIFY="${PURIFY}" \
|
||||||
Q="${Q}" \
|
Q="${Q}" \
|
||||||
RANLIB="${RANLIB}" \
|
RANLIB="${RANLIB}" \
|
||||||
@@ -2144,6 +2185,7 @@ HELP_PASSDOWN= \
|
|||||||
MAKE_FILE=Makefile \
|
MAKE_FILE=Makefile \
|
||||||
MKDIR=${MKDIR} \
|
MKDIR=${MKDIR} \
|
||||||
MV=${MV} \
|
MV=${MV} \
|
||||||
|
PREFIX="${PREFIX}" \
|
||||||
Q="${Q}" \
|
Q="${Q}" \
|
||||||
RM=${RM} \
|
RM=${RM} \
|
||||||
RMDIR=${RMDIR} \
|
RMDIR=${RMDIR} \
|
||||||
@@ -2178,6 +2220,7 @@ CAL_PASSDOWN= \
|
|||||||
MAKE_FILE=Makefile \
|
MAKE_FILE=Makefile \
|
||||||
MKDIR=${MKDIR} \
|
MKDIR=${MKDIR} \
|
||||||
MV=${MV} \
|
MV=${MV} \
|
||||||
|
PREFIX="${PREFIX}" \
|
||||||
Q="${Q}" \
|
Q="${Q}" \
|
||||||
RM=${RM} \
|
RM=${RM} \
|
||||||
RMDIR=${RMDIR} \
|
RMDIR=${RMDIR} \
|
||||||
@@ -2213,6 +2256,7 @@ CSCRIPT_PASSDOWN= \
|
|||||||
MAKE_FILE=Makefile \
|
MAKE_FILE=Makefile \
|
||||||
MKDIR=${MKDIR} \
|
MKDIR=${MKDIR} \
|
||||||
MV=${MV} \
|
MV=${MV} \
|
||||||
|
PREFIX="${PREFIX}" \
|
||||||
Q="${Q}" \
|
Q="${Q}" \
|
||||||
RM=${RM} \
|
RM=${RM} \
|
||||||
RMDIR=${RMDIR} \
|
RMDIR=${RMDIR} \
|
||||||
@@ -4522,6 +4566,7 @@ env:
|
|||||||
@echo 'PWD=${PWD}'; echo ''
|
@echo 'PWD=${PWD}'; echo ''
|
||||||
@echo 'PWDCMD=${PWDCMD}'; echo ''
|
@echo 'PWDCMD=${PWDCMD}'; echo ''
|
||||||
@echo 'Q=${Q}'; echo ''
|
@echo 'Q=${Q}'; echo ''
|
||||||
|
@echo 'PREFIX=${PREFIX}'; echo ''
|
||||||
@echo 'RANLIB=${RANLIB}'; echo ''
|
@echo 'RANLIB=${RANLIB}'; echo ''
|
||||||
@echo 'READLINE_EXTRAS=${READLINE_EXTRAS}'; echo ''
|
@echo 'READLINE_EXTRAS=${READLINE_EXTRAS}'; echo ''
|
||||||
@echo 'READLINE_INCLUDE=${READLINE_INCLUDE}'; echo ''
|
@echo 'READLINE_INCLUDE=${READLINE_INCLUDE}'; echo ''
|
||||||
@@ -4722,9 +4767,14 @@ inst_files: ${MAKE_FILE} help/Makefile cal/Makefile \
|
|||||||
# then you can use this rule to clean out the older calc stuff under
|
# then you can use this rule to clean out the older calc stuff under
|
||||||
# the /usr/local directory.
|
# the /usr/local directory.
|
||||||
#
|
#
|
||||||
|
# NOTE: This rule is an exception to the use of ${PREFIX}.
|
||||||
|
# In this rule we really to want to explicitly deal
|
||||||
|
# with legacy paths under /usr/local.
|
||||||
|
#
|
||||||
olduninstall:
|
olduninstall:
|
||||||
${RM} -f inst_files
|
${RM} -f inst_files
|
||||||
${MAKE} -f Makefile \
|
${MAKE} -f Makefile \
|
||||||
|
PREFIX=/usr/local \
|
||||||
BINDIR=/usr/local/bin \
|
BINDIR=/usr/local/bin \
|
||||||
INCDIR=/usr/local/include \
|
INCDIR=/usr/local/include \
|
||||||
LIBDIR=/usr/local/lib/calc \
|
LIBDIR=/usr/local/lib/calc \
|
||||||
@@ -4745,6 +4795,7 @@ olduninstall:
|
|||||||
-${RMDIR} /usr/local/include/calc
|
-${RMDIR} /usr/local/include/calc
|
||||||
-${RMDIR} /usr/local/bin/cscript
|
-${RMDIR} /usr/local/bin/cscript
|
||||||
${RM} -f inst_files
|
${RM} -f inst_files
|
||||||
|
${RM} -f ${CALC_INCDIR}/calcerr.c
|
||||||
|
|
||||||
tags: ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} ${MAKE_FILE}
|
tags: ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} ${MAKE_FILE}
|
||||||
-${CTAGS} ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} 2>&1 | \
|
-${CTAGS} ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} 2>&1 | \
|
||||||
@@ -5053,7 +5104,7 @@ endif
|
|||||||
fi; \
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
fi
|
fi
|
||||||
-${Q} for i in ${LIB_H_SRC} ${BUILD_H_SRC} /dev/null; do \
|
-${Q} for i in ${LIB_H_SRC} /dev/null; do \
|
||||||
if [ "$$i" = "/dev/null" ]; then \
|
if [ "$$i" = "/dev/null" ]; then \
|
||||||
continue; \
|
continue; \
|
||||||
fi; \
|
fi; \
|
||||||
@@ -5126,6 +5177,9 @@ endif
|
|||||||
fi
|
fi
|
||||||
${V} # NOTE: misc install cleanup
|
${V} # NOTE: misc install cleanup
|
||||||
${Q} ${RM} -f tmp
|
${Q} ${RM} -f tmp
|
||||||
|
${V} # NOTE: remove the calcerr.c that was installed by mistake
|
||||||
|
${V} # under ${INC_DIR} in calc v2.12.9.1
|
||||||
|
${Q} ${RM} -f ${T}${CALC_INCDIR}/calcerr.c
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||||
|
|
||||||
# Try to remove everything that was installed
|
# Try to remove everything that was installed
|
||||||
|
42
cal/Makefile
42
cal/Makefile
@@ -47,7 +47,7 @@
|
|||||||
# SHELL= /bin/bash
|
# SHELL= /bin/bash
|
||||||
#
|
#
|
||||||
# On some systems such as macOS, the bash shell is very
|
# On some systems such as macOS, the bash shell is very
|
||||||
# far behind to the point wehre is cannot be depended on.
|
# far behind to the point where is cannot be depended on.
|
||||||
# On such systems, the zsh may be a much better alternative
|
# On such systems, the zsh may be a much better alternative
|
||||||
# shell for this Makefile to use:
|
# shell for this Makefile to use:
|
||||||
#
|
#
|
||||||
@@ -63,6 +63,36 @@ SHELL= /bin/sh
|
|||||||
# a default here just in case you want to build from this directory.
|
# a default here just in case you want to build from this directory.
|
||||||
####
|
####
|
||||||
|
|
||||||
|
# PREFIX - Top level location for calc
|
||||||
|
#
|
||||||
|
# The PREFIX is often prepended to paths within calc and calc Makefiles.
|
||||||
|
#
|
||||||
|
# Starting with calc v2.13.0.1, nearly all Makefile places that used
|
||||||
|
# /usr/local now use ${PREFIX}. An exception is the olduninstall rule
|
||||||
|
# and, of course, this section. :-)
|
||||||
|
#
|
||||||
|
# NOTE: The ${PREFIX} is not the same as ${T}. The ${T} specifies
|
||||||
|
# a top level directory under which calc installs things.
|
||||||
|
# While usually ${T} is empty, it can be specific path
|
||||||
|
# as if calc where "chrooted" during an install.
|
||||||
|
# The ${PREFIX} value, during install, is a path between
|
||||||
|
# the top level ${T} install directory and the object
|
||||||
|
# such as an include file.
|
||||||
|
#
|
||||||
|
# NOTE: See also, ${T}, below.
|
||||||
|
#
|
||||||
|
# There are some paths that do NOT call under ${PREFIX}, such as
|
||||||
|
# ${CALCPATH}, that include paths not under ${PREFIX}, but those
|
||||||
|
# too are exceptions to this general rule.
|
||||||
|
#
|
||||||
|
# When in doubt, try:
|
||||||
|
#
|
||||||
|
# PREFIX= /usr/local
|
||||||
|
#
|
||||||
|
PREFIX= /usr/local
|
||||||
|
#PREFIX= /usr
|
||||||
|
#PREFIX= /usr/global
|
||||||
|
|
||||||
# Normally certain files depend on the Makefile. If the Makefile is
|
# Normally certain files depend on the Makefile. If the Makefile is
|
||||||
# changed, then certain steps should be redone. If MAKE_FILE is
|
# changed, then certain steps should be redone. If MAKE_FILE is
|
||||||
# set to Makefile, then these files will depend on Makefile. If
|
# set to Makefile, then these files will depend on Makefile. If
|
||||||
@@ -92,11 +122,11 @@ TOP_MAKE_FILE= Makefile
|
|||||||
# INCDIR= /usr/include
|
# INCDIR= /usr/include
|
||||||
#
|
#
|
||||||
|
|
||||||
#INCDIR= /usr/local/include
|
#INCDIR= ${PREFIX}/include
|
||||||
#INCDIR= /dev/env/DJDIR/include
|
#INCDIR= /dev/env/DJDIR/include
|
||||||
INCDIR= /usr/include
|
INCDIR= /usr/include
|
||||||
|
|
||||||
# where to install calc realted things
|
# where to install calc related things
|
||||||
#
|
#
|
||||||
# ${BINDIR} where to install calc binary files
|
# ${BINDIR} where to install calc binary files
|
||||||
# ${LIBDIR} where calc link library (*.a) files are installed
|
# ${LIBDIR} where calc link library (*.a) files are installed
|
||||||
@@ -118,15 +148,15 @@ INCDIR= /usr/include
|
|||||||
# LIBDIR= /usr/lib
|
# LIBDIR= /usr/lib
|
||||||
# CALC_SHAREDIR= /usr/share/calc
|
# CALC_SHAREDIR= /usr/share/calc
|
||||||
#
|
#
|
||||||
#BINDIR= /usr/local/bin
|
#BINDIR= ${PREFIX}/bin
|
||||||
#BINDIR= /dev/env/DJDIR/bin
|
#BINDIR= /dev/env/DJDIR/bin
|
||||||
BINDIR= /usr/bin
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
#LIBDIR= /usr/local/lib
|
#LIBDIR= ${PREFIX}/lib
|
||||||
#LIBDIR= /dev/env/DJDIR/lib
|
#LIBDIR= /dev/env/DJDIR/lib
|
||||||
LIBDIR= /usr/lib
|
LIBDIR= /usr/lib
|
||||||
|
|
||||||
#CALC_SHAREDIR= /usr/local/lib/calc
|
#CALC_SHAREDIR= ${PREFIX}/lib/calc
|
||||||
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
||||||
CALC_SHAREDIR= /usr/share/calc
|
CALC_SHAREDIR= /usr/share/calc
|
||||||
|
|
||||||
|
@@ -46,7 +46,7 @@
|
|||||||
# SHELL= /bin/bash
|
# SHELL= /bin/bash
|
||||||
#
|
#
|
||||||
# On some systems such as macOS, the bash shell is very
|
# On some systems such as macOS, the bash shell is very
|
||||||
# far behind to the point wehre is cannot be depended on.
|
# far behind to the point where is cannot be depended on.
|
||||||
# On such systems, the zsh may be a much better alternative
|
# On such systems, the zsh may be a much better alternative
|
||||||
# shell for this Makefile to use:
|
# shell for this Makefile to use:
|
||||||
#
|
#
|
||||||
@@ -62,6 +62,36 @@ SHELL= /bin/sh
|
|||||||
# a default here just in case you want to build from this directory.
|
# a default here just in case you want to build from this directory.
|
||||||
####
|
####
|
||||||
|
|
||||||
|
# PREFIX - Top level location for calc
|
||||||
|
#
|
||||||
|
# The PREFIX is often prepended to paths within calc and calc Makefiles.
|
||||||
|
#
|
||||||
|
# Starting with calc v2.13.0.1, nearly all Makefile places that used
|
||||||
|
# /usr/local now use ${PREFIX}. An exception is the olduninstall rule
|
||||||
|
# and, of course, this section. :-)
|
||||||
|
#
|
||||||
|
# NOTE: The ${PREFIX} is not the same as ${T}. The ${T} specifies
|
||||||
|
# a top level directory under which calc installs things.
|
||||||
|
# While usually ${T} is empty, it can be specific path
|
||||||
|
# as if calc where "chrooted" during an install.
|
||||||
|
# The ${PREFIX} value, during install, is a path between
|
||||||
|
# the top level ${T} install directory and the object
|
||||||
|
# such as an include file.
|
||||||
|
#
|
||||||
|
# NOTE: See also, ${T}, below.
|
||||||
|
#
|
||||||
|
# There are some paths that do NOT call under ${PREFIX}, such as
|
||||||
|
# ${CALCPATH}, that include paths not under ${PREFIX}, but those
|
||||||
|
# too are exceptions to this general rule.
|
||||||
|
#
|
||||||
|
# When in doubt, try:
|
||||||
|
#
|
||||||
|
# PREFIX= /usr/local
|
||||||
|
#
|
||||||
|
PREFIX= /usr/local
|
||||||
|
#PREFIX= /usr
|
||||||
|
#PREFIX= /usr/global
|
||||||
|
|
||||||
# Normally certain files depend on the Makefile. If the Makefile is
|
# Normally certain files depend on the Makefile. If the Makefile is
|
||||||
# changed, then certain steps should be redone. If MAKE_FILE is
|
# changed, then certain steps should be redone. If MAKE_FILE is
|
||||||
# set to Makefile, then these files will depend on Makefile. If
|
# set to Makefile, then these files will depend on Makefile. If
|
||||||
@@ -91,11 +121,11 @@ TOP_MAKE_FILE= Makefile
|
|||||||
# INCDIR= /usr/include
|
# INCDIR= /usr/include
|
||||||
#
|
#
|
||||||
|
|
||||||
#INCDIR= /usr/local/include
|
#INCDIR= ${PREFIX}/include
|
||||||
#INCDIR= /dev/env/DJDIR/include
|
#INCDIR= /dev/env/DJDIR/include
|
||||||
INCDIR= /usr/include
|
INCDIR= /usr/include
|
||||||
|
|
||||||
# where to install calc realted things
|
# where to install calc related things
|
||||||
#
|
#
|
||||||
# ${BINDIR} where to install calc binary files
|
# ${BINDIR} where to install calc binary files
|
||||||
# ${LIBDIR} where calc link library (*.a) files are installed
|
# ${LIBDIR} where calc link library (*.a) files are installed
|
||||||
@@ -117,15 +147,15 @@ INCDIR= /usr/include
|
|||||||
# LIBDIR= /usr/lib
|
# LIBDIR= /usr/lib
|
||||||
# CALC_SHAREDIR= /usr/share/calc
|
# CALC_SHAREDIR= /usr/share/calc
|
||||||
#
|
#
|
||||||
#BINDIR= /usr/local/bin
|
#BINDIR= ${PREFIX}/bin
|
||||||
#BINDIR= /dev/env/DJDIR/bin
|
#BINDIR= /dev/env/DJDIR/bin
|
||||||
BINDIR= /usr/bin
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
#LIBDIR= /usr/local/lib
|
#LIBDIR= ${PREFIX}/lib
|
||||||
#LIBDIR= /dev/env/DJDIR/lib
|
#LIBDIR= /dev/env/DJDIR/lib
|
||||||
LIBDIR= /usr/lib
|
LIBDIR= /usr/lib
|
||||||
|
|
||||||
#CALC_SHAREDIR= /usr/local/lib/calc
|
#CALC_SHAREDIR= ${PREFIX}/lib/calc
|
||||||
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
||||||
CALC_SHAREDIR= /usr/share/calc
|
CALC_SHAREDIR= /usr/share/calc
|
||||||
|
|
||||||
@@ -339,7 +369,7 @@ detaillist:
|
|||||||
# Home grown make dependency rules. Your system make not support
|
# Home grown make dependency rules. Your system make not support
|
||||||
# or have the needed tools. You can ignore this section.
|
# or have the needed tools. You can ignore this section.
|
||||||
#
|
#
|
||||||
# We will form a skelaton tree of *.c files containing only #include "foo.h"
|
# We will form a skeleton tree of *.c files containing only #include "foo.h"
|
||||||
# lines and .h files containing the same lines surrounded by multiple include
|
# lines and .h files containing the same lines surrounded by multiple include
|
||||||
# prevention lines. This allows us to build a static depend list that will
|
# prevention lines. This allows us to build a static depend list that will
|
||||||
# satisfy all possible cpp symbol definition combinations.
|
# satisfy all possible cpp symbol definition combinations.
|
||||||
|
@@ -66,7 +66,7 @@
|
|||||||
# SHELL= /bin/bash
|
# SHELL= /bin/bash
|
||||||
#
|
#
|
||||||
# On some systems such as macOS, the bash shell is very
|
# On some systems such as macOS, the bash shell is very
|
||||||
# far behind to the point wehre is cannot be depended on.
|
# far behind to the point where is cannot be depended on.
|
||||||
# On such systems, the zsh may be a much better alternative
|
# On such systems, the zsh may be a much better alternative
|
||||||
# shell for this Makefile to use:
|
# shell for this Makefile to use:
|
||||||
#
|
#
|
||||||
@@ -77,6 +77,37 @@ SHELL= /bin/sh
|
|||||||
#SHELL= /bin/zsh
|
#SHELL= /bin/zsh
|
||||||
|
|
||||||
|
|
||||||
|
# PREFIX - Top level location for calc
|
||||||
|
#
|
||||||
|
# The PREFIX is often prepended to paths within calc and calc Makefiles.
|
||||||
|
#
|
||||||
|
# Starting with calc v2.13.0.1, nearly all Makefile places that used
|
||||||
|
# /usr/local now use ${PREFIX}. An exception is the olduninstall rule
|
||||||
|
# and, of course, this section. :-)
|
||||||
|
#
|
||||||
|
# NOTE: The ${PREFIX} is not the same as ${T}. The ${T} specifies
|
||||||
|
# a top level directory under which calc installs things.
|
||||||
|
# While usually ${T} is empty, it can be specific path
|
||||||
|
# as if calc where "chrooted" during an install.
|
||||||
|
# The ${PREFIX} value, during install, is a path between
|
||||||
|
# the top level ${T} install directory and the object
|
||||||
|
# such as an include file.
|
||||||
|
#
|
||||||
|
# NOTE: See also, ${T}, below.
|
||||||
|
#
|
||||||
|
# There are some paths that do NOT call under ${PREFIX}, such as
|
||||||
|
# ${CALCPATH}, that include paths not under ${PREFIX}, but those
|
||||||
|
# too are exceptions to this general rule.
|
||||||
|
#
|
||||||
|
# When in doubt, try:
|
||||||
|
#
|
||||||
|
# PREFIX= /usr/local
|
||||||
|
#
|
||||||
|
PREFIX= /usr/local
|
||||||
|
#PREFIX= /usr
|
||||||
|
#PREFIX= /usr/global
|
||||||
|
|
||||||
|
|
||||||
# CCBAN is given to ${CC} in order to control if banned.h is in effect.
|
# CCBAN is given to ${CC} in order to control if banned.h is in effect.
|
||||||
#
|
#
|
||||||
# The banned.h attempts to ban the use of certain dangerous functions
|
# The banned.h attempts to ban the use of certain dangerous functions
|
||||||
@@ -84,7 +115,7 @@ SHELL= /bin/sh
|
|||||||
# if calculations.
|
# if calculations.
|
||||||
#
|
#
|
||||||
# In the case of calc, we are motivated in part by the desire for calc
|
# In the case of calc, we are motivated in part by the desire for calc
|
||||||
# to correctly calculate: even durings extremely long calculations.
|
# to correctly calculate: even during extremely long calculations.
|
||||||
#
|
#
|
||||||
# If UNBAN is NOT defined, then calling certain functions
|
# If UNBAN is NOT defined, then calling certain functions
|
||||||
# will result in a call to a non-existent function (link error).
|
# will result in a call to a non-existent function (link error).
|
||||||
@@ -231,7 +262,7 @@ V=@:
|
|||||||
# INCDIR= /usr/include
|
# INCDIR= /usr/include
|
||||||
#
|
#
|
||||||
|
|
||||||
#INCDIR= /usr/local/include
|
#INCDIR= ${PREFIX}/include
|
||||||
#INCDIR= /dev/env/DJDIR/include
|
#INCDIR= /dev/env/DJDIR/include
|
||||||
INCDIR= /usr/include
|
INCDIR= /usr/include
|
||||||
|
|
||||||
@@ -257,15 +288,15 @@ INCDIR= /usr/include
|
|||||||
# LIBDIR= /usr/lib
|
# LIBDIR= /usr/lib
|
||||||
# CALC_SHAREDIR= /usr/share/calc
|
# CALC_SHAREDIR= /usr/share/calc
|
||||||
#
|
#
|
||||||
#BINDIR= /usr/local/bin
|
#BINDIR= ${PREFIX}/bin
|
||||||
#BINDIR= /dev/env/DJDIR/bin
|
#BINDIR= /dev/env/DJDIR/bin
|
||||||
BINDIR= /usr/bin
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
#LIBDIR= /usr/local/lib
|
#LIBDIR= ${PREFIX}/lib
|
||||||
#LIBDIR= /dev/env/DJDIR/lib
|
#LIBDIR= /dev/env/DJDIR/lib
|
||||||
LIBDIR= /usr/lib
|
LIBDIR= /usr/lib
|
||||||
|
|
||||||
#CALC_SHAREDIR= /usr/local/lib/calc
|
#CALC_SHAREDIR= ${PREFIX}/lib/calc
|
||||||
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
||||||
CALC_SHAREDIR= /usr/share/calc
|
CALC_SHAREDIR= /usr/share/calc
|
||||||
|
|
||||||
@@ -458,7 +489,7 @@ EXT=
|
|||||||
|
|
||||||
# The default calc versions
|
# The default calc versions
|
||||||
#
|
#
|
||||||
VERSION= 2.13.0.0
|
VERSION= 2.13.0.1
|
||||||
|
|
||||||
# Names of shared libraries with versions
|
# Names of shared libraries with versions
|
||||||
#
|
#
|
||||||
@@ -636,7 +667,7 @@ ifeq ($(target),Linux)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -688,7 +719,7 @@ ifeq ($(target),Darwin)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= ${DARWIN_ARCH}
|
LD_SHARE= ${DARWIN_ARCH}
|
||||||
#SET_INSTALL_NAME= no
|
#SET_INSTALL_NAME= no
|
||||||
SET_INSTALL_NAME= yes
|
SET_INSTALL_NAME= yes
|
||||||
@@ -770,7 +801,7 @@ ifeq ($(target),FreeBSD)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -830,7 +861,7 @@ ifeq ($(target),OpenBSD)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -884,7 +915,7 @@ ifeq ($(target),SunOS)
|
|||||||
BLD_TYPE= calc-dynamic-only
|
BLD_TYPE= calc-dynamic-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -936,7 +967,7 @@ ifeq ($(target),Cygwin)
|
|||||||
BLD_TYPE= calc-static-only
|
BLD_TYPE= calc-static-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -992,7 +1023,7 @@ ifeq ($(target),simple)
|
|||||||
BLD_TYPE= calc-static-only
|
BLD_TYPE= calc-static-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1051,7 +1082,7 @@ CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit
|
|||||||
BLD_TYPE= calc-static-only
|
BLD_TYPE= calc-static-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
@@ -1091,7 +1122,7 @@ ifeq ($(target),)
|
|||||||
BLD_TYPE= calc-static-only
|
BLD_TYPE= calc-static-only
|
||||||
#
|
#
|
||||||
CC_SHARE= -fPIC
|
CC_SHARE= -fPIC
|
||||||
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
|
DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:${PREFIX}/lib
|
||||||
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
|
||||||
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
"-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
|
||||||
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
|
||||||
|
@@ -66,7 +66,7 @@
|
|||||||
# SHELL= /bin/bash
|
# SHELL= /bin/bash
|
||||||
#
|
#
|
||||||
# On some systems such as macOS, the bash shell is very
|
# On some systems such as macOS, the bash shell is very
|
||||||
# far behind to the point wehre is cannot be depended on.
|
# far behind to the point where is cannot be depended on.
|
||||||
# On such systems, the zsh may be a much better alternative
|
# On such systems, the zsh may be a much better alternative
|
||||||
# shell for this Makefile to use:
|
# shell for this Makefile to use:
|
||||||
#
|
#
|
||||||
@@ -77,6 +77,37 @@ SHELL= /bin/sh
|
|||||||
#SHELL= /bin/zsh
|
#SHELL= /bin/zsh
|
||||||
|
|
||||||
|
|
||||||
|
# PREFIX - Top level location for calc
|
||||||
|
#
|
||||||
|
# The PREFIX is often prepended to paths within calc and calc Makefiles.
|
||||||
|
#
|
||||||
|
# Starting with calc v2.13.0.1, nearly all Makefile places that used
|
||||||
|
# /usr/local now use ${PREFIX}. An exception is the olduninstall rule
|
||||||
|
# and, of course, this section. :-)
|
||||||
|
#
|
||||||
|
# NOTE: The ${PREFIX} is not the same as ${T}. The ${T} specifies
|
||||||
|
# a top level directory under which calc installs things.
|
||||||
|
# While usually ${T} is empty, it can be specific path
|
||||||
|
# as if calc where "chrooted" during an install.
|
||||||
|
# The ${PREFIX} value, during install, is a path between
|
||||||
|
# the top level ${T} install directory and the object
|
||||||
|
# such as an include file.
|
||||||
|
#
|
||||||
|
# NOTE: See also, ${T}, below.
|
||||||
|
#
|
||||||
|
# There are some paths that do NOT call under ${PREFIX}, such as
|
||||||
|
# ${CALCPATH}, that include paths not under ${PREFIX}, but those
|
||||||
|
# too are exceptions to this general rule.
|
||||||
|
#
|
||||||
|
# When in doubt, try:
|
||||||
|
#
|
||||||
|
# PREFIX= /usr/local
|
||||||
|
#
|
||||||
|
PREFIX= /usr/local
|
||||||
|
#PREFIX= /usr
|
||||||
|
#PREFIX= /usr/global
|
||||||
|
|
||||||
|
|
||||||
# CCBAN is given to ${CC} in order to control if banned.h is in effect.
|
# CCBAN is given to ${CC} in order to control if banned.h is in effect.
|
||||||
#
|
#
|
||||||
# The banned.h attempts to ban the use of certain dangerous functions
|
# The banned.h attempts to ban the use of certain dangerous functions
|
||||||
@@ -84,7 +115,7 @@ SHELL= /bin/sh
|
|||||||
# if calculations.
|
# if calculations.
|
||||||
#
|
#
|
||||||
# In the case of calc, we are motivated in part by the desire for calc
|
# In the case of calc, we are motivated in part by the desire for calc
|
||||||
# to correctly calculate: even durings extremely long calculations.
|
# to correctly calculate: even during extremely long calculations.
|
||||||
#
|
#
|
||||||
# If UNBAN is NOT defined, then calling certain functions
|
# If UNBAN is NOT defined, then calling certain functions
|
||||||
# will result in a call to a non-existent function (link error).
|
# will result in a call to a non-existent function (link error).
|
||||||
@@ -231,7 +262,7 @@ V=@:
|
|||||||
# INCDIR= /usr/include
|
# INCDIR= /usr/include
|
||||||
#
|
#
|
||||||
|
|
||||||
#INCDIR= /usr/local/include
|
#INCDIR= ${PREFIX}/include
|
||||||
#INCDIR= /dev/env/DJDIR/include
|
#INCDIR= /dev/env/DJDIR/include
|
||||||
INCDIR= /usr/include
|
INCDIR= /usr/include
|
||||||
|
|
||||||
@@ -257,15 +288,15 @@ INCDIR= /usr/include
|
|||||||
# LIBDIR= /usr/lib
|
# LIBDIR= /usr/lib
|
||||||
# CALC_SHAREDIR= /usr/share/calc
|
# CALC_SHAREDIR= /usr/share/calc
|
||||||
#
|
#
|
||||||
#BINDIR= /usr/local/bin
|
#BINDIR= ${PREFIX}/bin
|
||||||
#BINDIR= /dev/env/DJDIR/bin
|
#BINDIR= /dev/env/DJDIR/bin
|
||||||
BINDIR= /usr/bin
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
#LIBDIR= /usr/local/lib
|
#LIBDIR= ${PREFIX}/lib
|
||||||
#LIBDIR= /dev/env/DJDIR/lib
|
#LIBDIR= /dev/env/DJDIR/lib
|
||||||
LIBDIR= /usr/lib
|
LIBDIR= /usr/lib
|
||||||
|
|
||||||
#CALC_SHAREDIR= /usr/local/lib/calc
|
#CALC_SHAREDIR= ${PREFIX}/lib/calc
|
||||||
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
||||||
CALC_SHAREDIR= /usr/share/calc
|
CALC_SHAREDIR= /usr/share/calc
|
||||||
|
|
||||||
@@ -458,7 +489,7 @@ EXT=
|
|||||||
|
|
||||||
# The default calc versions
|
# The default calc versions
|
||||||
#
|
#
|
||||||
VERSION= 2.13.0.0
|
VERSION= 2.13.0.1
|
||||||
|
|
||||||
# Names of shared libraries with versions
|
# Names of shared libraries with versions
|
||||||
#
|
#
|
||||||
|
@@ -47,7 +47,7 @@
|
|||||||
# SHELL= /bin/bash
|
# SHELL= /bin/bash
|
||||||
#
|
#
|
||||||
# On some systems such as macOS, the bash shell is very
|
# On some systems such as macOS, the bash shell is very
|
||||||
# far behind to the point wehre is cannot be depended on.
|
# far behind to the point where is cannot be depended on.
|
||||||
# On such systems, the zsh may be a much better alternative
|
# On such systems, the zsh may be a much better alternative
|
||||||
# shell for this Makefile to use:
|
# shell for this Makefile to use:
|
||||||
#
|
#
|
||||||
@@ -63,6 +63,36 @@ SHELL= /bin/sh
|
|||||||
# a default here just in case you want to build from this directory.
|
# a default here just in case you want to build from this directory.
|
||||||
####
|
####
|
||||||
|
|
||||||
|
# PREFIX - Top level location for calc
|
||||||
|
#
|
||||||
|
# The PREFIX is often prepended to paths within calc and calc Makefiles.
|
||||||
|
#
|
||||||
|
# Starting with calc v2.13.0.1, nearly all Makefile places that used
|
||||||
|
# /usr/local now use ${PREFIX}. An exception is the olduninstall rule
|
||||||
|
# and, of course, this section. :-)
|
||||||
|
#
|
||||||
|
# NOTE: The ${PREFIX} is not the same as ${T}. The ${T} specifies
|
||||||
|
# a top level directory under which calc installs things.
|
||||||
|
# While usually ${T} is empty, it can be specific path
|
||||||
|
# as if calc where "chrooted" during an install.
|
||||||
|
# The ${PREFIX} value, during install, is a path between
|
||||||
|
# the top level ${T} install directory and the object
|
||||||
|
# such as an include file.
|
||||||
|
#
|
||||||
|
# NOTE: See also, ${T}, below.
|
||||||
|
#
|
||||||
|
# There are some paths that do NOT call under ${PREFIX}, such as
|
||||||
|
# ${CALCPATH}, that include paths not under ${PREFIX}, but those
|
||||||
|
# too are exceptions to this general rule.
|
||||||
|
#
|
||||||
|
# When in doubt, try:
|
||||||
|
#
|
||||||
|
# PREFIX= /usr/local
|
||||||
|
#
|
||||||
|
PREFIX= /usr/local
|
||||||
|
#PREFIX= /usr
|
||||||
|
#PREFIX= /usr/global
|
||||||
|
|
||||||
# Normally certain files depend on the Makefile. If the Makefile is
|
# Normally certain files depend on the Makefile. If the Makefile is
|
||||||
# changed, then certain steps should be redone. If MAKE_FILE is
|
# changed, then certain steps should be redone. If MAKE_FILE is
|
||||||
# set to Makefile, then these files will depend on Makefile. If
|
# set to Makefile, then these files will depend on Makefile. If
|
||||||
@@ -118,15 +148,15 @@ INCDIR= /usr/include
|
|||||||
# LIBDIR= /usr/lib
|
# LIBDIR= /usr/lib
|
||||||
# CALC_SHAREDIR= /usr/share/calc
|
# CALC_SHAREDIR= /usr/share/calc
|
||||||
#
|
#
|
||||||
#BINDIR= /usr/local/bin
|
#BINDIR= ${PREFIX}/bin
|
||||||
#BINDIR= /dev/env/DJDIR/bin
|
#BINDIR= /dev/env/DJDIR/bin
|
||||||
BINDIR= /usr/bin
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
#LIBDIR= /usr/local/lib
|
#LIBDIR= ${PREFIX}/lib
|
||||||
#LIBDIR= /dev/env/DJDIR/lib
|
#LIBDIR= /dev/env/DJDIR/lib
|
||||||
LIBDIR= /usr/lib
|
LIBDIR= /usr/lib
|
||||||
|
|
||||||
#CALC_SHAREDIR= /usr/local/lib/calc
|
#CALC_SHAREDIR= ${PREFIX}/lib/calc
|
||||||
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
|
||||||
CALC_SHAREDIR= /usr/share/calc
|
CALC_SHAREDIR= /usr/share/calc
|
||||||
|
|
||||||
|
@@ -54,7 +54,7 @@ static char *program;
|
|||||||
#define MAJOR_VER 2 /* major library version */
|
#define MAJOR_VER 2 /* major library version */
|
||||||
#define MINOR_VER 13 /* minor library version */
|
#define MINOR_VER 13 /* minor library version */
|
||||||
#define MAJOR_PATCH 0 /* major software version level */
|
#define MAJOR_PATCH 0 /* major software version level */
|
||||||
#define MINOR_PATCH 0 /* minor software version level */
|
#define MINOR_PATCH 1 /* minor software version level */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user