mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
fix calc when CUSTOM is undefined, remove PASSDOWN values
Removed the ${CAL_PASSDOWN}, ${HELP_PASSDOWN}, ${HELP_PASSDOWN}, ${CSCRIPT_PASSDOWN} Makefile variables as the new Makefile include files keep Makefile variables in sync. Fixed the ability of calc to compile when CUSTOM is undefined (i.e., -UCUSTOM). The libcustcalc is always built, regardless of the $(ALLOW_CUSTOM} Makefile variable. However when CUSTOM is undefined, the bulk of custom functions are not defined.
This commit is contained in:
9
CHANGES
9
CHANGES
@@ -69,6 +69,15 @@ The following are the changes from calc version 2.14.3.1 to date:
|
|||||||
Thus, one may modify or append many Makefile variables
|
Thus, one may modify or append many Makefile variables
|
||||||
in all calc Makefiles.
|
in all calc Makefiles.
|
||||||
|
|
||||||
|
Removed the ${CAL_PASSDOWN}, ${HELP_PASSDOWN}, ${HELP_PASSDOWN},
|
||||||
|
${CSCRIPT_PASSDOWN} Makefile variables as the new Makefile
|
||||||
|
include files keep Makefile variables in sync.
|
||||||
|
|
||||||
|
Fixed the ability of calc to compile when CUSTOM is undefined
|
||||||
|
(i.e., -UCUSTOM). The libcustcalc is always built, regardless
|
||||||
|
of the $(ALLOW_CUSTOM} Makefile variable. However when CUSTOM
|
||||||
|
is undefined, the bulk of custom functions are not defined.
|
||||||
|
|
||||||
Added comments in Makefile.local for how to reduce dependency chains
|
Added comments in Makefile.local for how to reduce dependency chains
|
||||||
under macOS. XXX - this doesn't yet work so don't uncomment - XXX.
|
under macOS. XXX - this doesn't yet work so don't uncomment - XXX.
|
||||||
|
|
||||||
|
315
Makefile
315
Makefile
@@ -47,8 +47,7 @@ MAKE_FILE= Makefile
|
|||||||
#
|
#
|
||||||
CONFIG_MKF= Makefile.config
|
CONFIG_MKF= Makefile.config
|
||||||
|
|
||||||
# Host targets that are shared in common with both Makefile
|
# Host target information.
|
||||||
# and custom/Makefile.
|
|
||||||
#
|
#
|
||||||
TARGET_MKF= Makefile.target
|
TARGET_MKF= Makefile.target
|
||||||
|
|
||||||
@@ -252,201 +251,6 @@ SAMPLE_C_SRC= sample_many.c sample_rand.c
|
|||||||
#
|
#
|
||||||
SAMPLE_OBJ= sample_many.o sample_rand.o
|
SAMPLE_OBJ= sample_many.o sample_rand.o
|
||||||
|
|
||||||
# The complete list of Makefile vars passed down to custom/Makefile.
|
|
||||||
#
|
|
||||||
CUSTOM_PASSDOWN= \
|
|
||||||
ALLOW_CUSTOM="${ALLOW_CUSTOM}" \
|
|
||||||
AR="${AR}" \
|
|
||||||
ARCH_CFLAGS="${ARCH_CFLAGS}" \
|
|
||||||
AWK="${AWK}" \
|
|
||||||
BINDIR="${BINDIR}" \
|
|
||||||
BLD_TYPE="${BLD_TYPE}" \
|
|
||||||
CALC_INCDIR="${CALC_INCDIR}" \
|
|
||||||
CALC_SHAREDIR="${CALC_SHAREDIR}" \
|
|
||||||
CAT="${CAT}" \
|
|
||||||
CC="${CC}" \
|
|
||||||
CCBAN="${CCBAN}" \
|
|
||||||
CCERR="${CCERR}" \
|
|
||||||
CCMISC="${CCMISC}" \
|
|
||||||
CCOPT="${CCOPT}" \
|
|
||||||
CCWARN="${CCWARN}" \
|
|
||||||
CC_SHARE="${CC_SHARE}" \
|
|
||||||
CFLAGS="${CFLAGS} -I.." \
|
|
||||||
CHMOD="${CHMOD}" \
|
|
||||||
CMP="${CMP}" \
|
|
||||||
CO="${CO}" \
|
|
||||||
COMMON_ADD="${COMMON_ADD}" \
|
|
||||||
COMMON_CFLAGS="${COMMON_CFLAGS} -I.." \
|
|
||||||
COMMON_LDFLAGS="${COMMON_LDFLAGS}" \
|
|
||||||
CP="${CP}" \
|
|
||||||
CUSTOMCALDIR="${CUSTOMCALDIR}" \
|
|
||||||
CUSTOMHELPDIR="${CUSTOMHELPDIR}" \
|
|
||||||
CUSTOMINCDIR="${CUSTOMINCDIR}" \
|
|
||||||
DEBUG="${DEBUG}" \
|
|
||||||
DEFAULT_LIB_INSTALL_PATH="${DEFAULT_LIB_INSTALL_PATH}" \
|
|
||||||
DIFF="${DIFF}" \
|
|
||||||
E="${E}" \
|
|
||||||
FMT="${FMT}" \
|
|
||||||
GREP="${GREP}" \
|
|
||||||
H="${H}" \
|
|
||||||
HELPDIR="${HELPDIR}" \
|
|
||||||
ICFLAGS="${ICFLAGS} -I.." \
|
|
||||||
ILDFLAGS="${ILDFLAGS}" \
|
|
||||||
INCDIR="${INCDIR}" \
|
|
||||||
LANG="${LANG}" \
|
|
||||||
LCC="${LCC}" \
|
|
||||||
LDCONFIG="${LDCONFIG}" \
|
|
||||||
LDFLAGS="${LDFLAGS}" \
|
|
||||||
LD_SHARE="${LD_SHARE}" \
|
|
||||||
LIBCUSTCALC_SHLIB="${LIBCUSTCALC_SHLIB}" \
|
|
||||||
LIBDIR="${LIBDIR}" \
|
|
||||||
LN="${LN}" \
|
|
||||||
LS="${LS}" \
|
|
||||||
MAKE="${MAKE}" \
|
|
||||||
MAKEDEPEND="${MAKEDEPEND}" \
|
|
||||||
MAKE_FILE=Makefile \
|
|
||||||
MKDIR="${MKDIR}" \
|
|
||||||
MV="${MV}" \
|
|
||||||
MINGW="${MINGW}" \
|
|
||||||
PREFIX="${PREFIX}" \
|
|
||||||
PURIFY="${PURIFY}" \
|
|
||||||
Q="${Q}" \
|
|
||||||
RANLIB="${RANLIB}" \
|
|
||||||
RM="${RM}" \
|
|
||||||
RMDIR="${RMDIR}" \
|
|
||||||
S="${S}" \
|
|
||||||
SCRIPTDIR="${SCRIPTDIR}" \
|
|
||||||
SED="${SED}" \
|
|
||||||
SHELL="${SHELL}" \
|
|
||||||
SORT="${SORT}" \
|
|
||||||
T="${T}" \
|
|
||||||
TAIL="${TAIL}" \
|
|
||||||
TOUCH="${TOUCH}" \
|
|
||||||
TRUE="${TRUE}" \
|
|
||||||
V="${V}" \
|
|
||||||
VERSION="${VERSION}" \
|
|
||||||
WNO_IMPLICT="${WNO_IMPLICT}" \
|
|
||||||
WNO_ERROR_LONG_LONG="${WNO_ERROR_LONG_LONG}" \
|
|
||||||
WNO_LONG_LONG="${WNO_LONG_LONG}" \
|
|
||||||
target="${target}"
|
|
||||||
|
|
||||||
# The complete list of Makefile vars passed down to help/Makefile.
|
|
||||||
#
|
|
||||||
HELP_PASSDOWN= \
|
|
||||||
AR="${AR}" \
|
|
||||||
BINDIR="${BINDIR}" \
|
|
||||||
CALC_INCDIR="${CALC_INCDIR}" \
|
|
||||||
CALC_SHAREDIR="${CALC_SHAREDIR}" \
|
|
||||||
CAT="${CAT}" \
|
|
||||||
CFLAGS="${CFLAGS}" \
|
|
||||||
CHMOD="${CHMOD}" \
|
|
||||||
CMP="${CMP}" \
|
|
||||||
CO="${CO}" \
|
|
||||||
COMMON_ADD="${COMMON_ADD}" \
|
|
||||||
COMMON_CFLAGS="${COMMON_CFLAGS}" \
|
|
||||||
COMMON_LDFLAGS="${COMMON_LDFLAGS}" \
|
|
||||||
CP="${CP}" \
|
|
||||||
E="${E}" \
|
|
||||||
EXT="${EXT}" \
|
|
||||||
FMT="${FMT}" \
|
|
||||||
GREP="${GREP}" \
|
|
||||||
H="${H}" \
|
|
||||||
HELPDIR="${HELPDIR}" \
|
|
||||||
ICFLAGS="${ICFLAGS}" \
|
|
||||||
ILDFLAGS="${ILDFLAGS}" \
|
|
||||||
INCDIR="${INCDIR}" \
|
|
||||||
LANG="${LANG}" \
|
|
||||||
LCC="${LCC}" \
|
|
||||||
LIBDIR="${LIBDIR}" \
|
|
||||||
MAKE_FILE=Makefile \
|
|
||||||
MKDIR="${MKDIR}" \
|
|
||||||
MINGW="${MINGW}" \
|
|
||||||
MV="${MV}" \
|
|
||||||
PREFIX="${PREFIX}" \
|
|
||||||
Q="${Q}" \
|
|
||||||
RM="${RM}" \
|
|
||||||
RMDIR="${RMDIR}" \
|
|
||||||
S="${S}" \
|
|
||||||
SCRIPTDIR="${SCRIPTDIR}" \
|
|
||||||
SED="${SED}" \
|
|
||||||
SHELL="${SHELL}" \
|
|
||||||
T="${T}" \
|
|
||||||
TOUCH="${TOUCH}" \
|
|
||||||
TRUE="${TRUE}" \
|
|
||||||
V="${V}"
|
|
||||||
|
|
||||||
# The complete list of Makefile vars passed down to cal/Makefile.
|
|
||||||
#
|
|
||||||
CAL_PASSDOWN= \
|
|
||||||
AR="${AR}" \
|
|
||||||
BINDIR="${BINDIR}" \
|
|
||||||
CALC_INCDIR="${CALC_INCDIR}" \
|
|
||||||
CALC_SHAREDIR="${CALC_SHAREDIR}" \
|
|
||||||
CAT="${CAT}" \
|
|
||||||
CHMOD="${CHMOD}" \
|
|
||||||
CMP="${CMP}" \
|
|
||||||
CO="${CO}" \
|
|
||||||
CP="${CP}" \
|
|
||||||
E="${E}" \
|
|
||||||
H="${H}" \
|
|
||||||
HELPDIR="${HELPDIR}" \
|
|
||||||
INCDIR="${INCDIR}" \
|
|
||||||
LANG="${LANG}" \
|
|
||||||
LIBDIR="${LIBDIR}" \
|
|
||||||
MAKE_FILE=Makefile \
|
|
||||||
MKDIR="${MKDIR}" \
|
|
||||||
MINGW="${MINGW}" \
|
|
||||||
MV="${MV}" \
|
|
||||||
PREFIX="${PREFIX}" \
|
|
||||||
Q="${Q}" \
|
|
||||||
RM="${RM}" \
|
|
||||||
RMDIR="${RMDIR}" \
|
|
||||||
S="${S}" \
|
|
||||||
SCRIPTDIR="${SCRIPTDIR}" \
|
|
||||||
SHELL="${SHELL}" \
|
|
||||||
T="${T}" \
|
|
||||||
TOUCH="${TOUCH}" \
|
|
||||||
TRUE="${TRUE}" \
|
|
||||||
V="${V}"
|
|
||||||
|
|
||||||
# The complete list of Makefile vars passed down to cscript/Makefile.
|
|
||||||
#
|
|
||||||
CSCRIPT_PASSDOWN= \
|
|
||||||
AR="${AR}" \
|
|
||||||
BINDIR="${BINDIR}" \
|
|
||||||
CALC_INCDIR="${CALC_INCDIR}" \
|
|
||||||
CALC_SHAREDIR="${CALC_SHAREDIR}" \
|
|
||||||
CAT="${CAT}" \
|
|
||||||
CHMOD="${CHMOD}" \
|
|
||||||
CMP="${CMP}" \
|
|
||||||
CO="${CO}" \
|
|
||||||
CP="${CP}" \
|
|
||||||
E="${E}" \
|
|
||||||
ECHON="${ECHON}" \
|
|
||||||
FMT="${FMT}" \
|
|
||||||
H="${H}" \
|
|
||||||
HELPDIR="${HELPDIR}" \
|
|
||||||
INCDIR="${INCDIR}" \
|
|
||||||
LANG="${LANG}" \
|
|
||||||
LIBDIR="${LIBDIR}" \
|
|
||||||
MAKE_FILE=Makefile \
|
|
||||||
MKDIR="${MKDIR}" \
|
|
||||||
MINGW="${MINGW}" \
|
|
||||||
MV="${MV}" \
|
|
||||||
PREFIX="${PREFIX}" \
|
|
||||||
Q="${Q}" \
|
|
||||||
RM="${RM}" \
|
|
||||||
RMDIR="${RMDIR}" \
|
|
||||||
S="${S}" \
|
|
||||||
SCRIPTDIR="${SCRIPTDIR}" \
|
|
||||||
SED="${SED}" \
|
|
||||||
SHELL="${SHELL}" \
|
|
||||||
SORT="${SORT}" \
|
|
||||||
T="${T}" \
|
|
||||||
TOUCH="${TOUCH}" \
|
|
||||||
TRUE="${TRUE}" \
|
|
||||||
V="${V}"
|
|
||||||
|
|
||||||
# complete list of .h files found (but not built) in the distribution
|
# complete list of .h files found (but not built) in the distribution
|
||||||
#
|
#
|
||||||
H_SRC= ${LIB_H_SRC} ${SAMPLE_H_SRC}
|
H_SRC= ${LIB_H_SRC} ${SAMPLE_H_SRC}
|
||||||
@@ -480,18 +284,11 @@ OBJS= ${LIBOBJS} ${CALCOBJS} ${UTIL_OBJS} ${SAMPLE_OBJ}
|
|||||||
# Symlinks of dynamic shared libraries
|
# Symlinks of dynamic shared libraries
|
||||||
# Early targets - things needed before the main build phase can begin
|
# Early targets - things needed before the main build phase can begin
|
||||||
#
|
#
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
CALC_STATIC_LIBS= libcalc.a libcustcalc.a
|
CALC_STATIC_LIBS= libcalc.a libcustcalc.a
|
||||||
CALC_DYNAMIC_LIBS= libcalc${LIB_EXT_VERSION} libcustcalc${LIB_EXT_VERSION}
|
CALC_DYNAMIC_LIBS= libcalc${LIB_EXT_VERSION} libcustcalc${LIB_EXT_VERSION}
|
||||||
SYM_DYNAMIC_LIBS= libcalc${LIB_EXT} \
|
SYM_DYNAMIC_LIBS= libcalc${LIB_EXT} \
|
||||||
libcustcalc${LIB_EXT_VERSION} libcustcalc${LIB_EXT}
|
libcustcalc${LIB_EXT_VERSION} libcustcalc${LIB_EXT}
|
||||||
EARLY_TARGETS= hsrc .hsrc custom/.all custom/Makefile
|
EARLY_TARGETS= hsrc .hsrc custom/.all custom/Makefile
|
||||||
else # ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
CALC_STATIC_LIBS= libcalc.a
|
|
||||||
CALC_DYNAMIC_LIBS= libcalc${LIB_EXT_VERSION}
|
|
||||||
SYM_DYNAMIC_LIBS= libcalc${LIB_EXT}
|
|
||||||
EARLY_TARGETS= hsrc .hsrc
|
|
||||||
endif # ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
|
|
||||||
# list of sample programs that need to be built to satisfy sample rule
|
# list of sample programs that need to be built to satisfy sample rule
|
||||||
#
|
#
|
||||||
@@ -801,7 +598,6 @@ else # RPM_TOP
|
|||||||
endif # RPM_TOP
|
endif # RPM_TOP
|
||||||
${Q} echo '#endif /* HELPDIR */' >> $@
|
${Q} echo '#endif /* HELPDIR */' >> $@
|
||||||
${Q} echo '' >> $@
|
${Q} echo '' >> $@
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
${Q} echo '/* the location of the custom help directory */' >> $@
|
${Q} echo '/* the location of the custom help directory */' >> $@
|
||||||
${Q} echo '#if !defined(CUSTOMHELPDIR)' >> $@
|
${Q} echo '#if !defined(CUSTOMHELPDIR)' >> $@
|
||||||
ifdef RPM_TOP
|
ifdef RPM_TOP
|
||||||
@@ -811,7 +607,6 @@ else # RPM_TOP
|
|||||||
endif # RPM_TOP
|
endif # RPM_TOP
|
||||||
${Q} echo '#endif /* CUSTOMHELPDIR */' >> $@
|
${Q} echo '#endif /* CUSTOMHELPDIR */' >> $@
|
||||||
${Q} echo '' >> $@
|
${Q} echo '' >> $@
|
||||||
endif # ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
${Q} echo '/* the default pager to use */' >> $@
|
${Q} echo '/* the default pager to use */' >> $@
|
||||||
${Q} echo '#if !defined(DEFAULTCALCPAGER)' >> $@
|
${Q} echo '#if !defined(DEFAULTCALCPAGER)' >> $@
|
||||||
${Q} echo '#define DEFAULTCALCPAGER "${CALCPAGER}"' >> $@
|
${Q} echo '#define DEFAULTCALCPAGER "${CALCPAGER}"' >> $@
|
||||||
@@ -2517,7 +2312,7 @@ cal/.all: cal/Makefile
|
|||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking all rule for cal =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking all rule for cal =-=-=-=-='
|
||||||
${RM} -f $@
|
${RM} -f $@
|
||||||
cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} all
|
cd cal; ${MAKE} -f Makefile all
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||||
|
|
||||||
@@ -2525,7 +2320,7 @@ help/.all: help/Makefile
|
|||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking all rule for help =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking all rule for help =-=-=-=-='
|
||||||
${RM} -f $@
|
${RM} -f $@
|
||||||
cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} all
|
cd help; ${MAKE} -f Makefile all
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||||
|
|
||||||
@@ -2534,7 +2329,7 @@ help/builtin: help/Makefile \
|
|||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking builtin rule for help =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking builtin rule for help =-=-=-=-='
|
||||||
${RM} -f $@
|
${RM} -f $@
|
||||||
cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} builtin
|
cd help; ${MAKE} -f Makefile builtin
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||||
|
|
||||||
@@ -2544,23 +2339,22 @@ ${CSCRIPT_TARGETS}: cscript/Makefile
|
|||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking all rule for cscript =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking all rule for cscript =-=-=-=-='
|
||||||
${RM} -f cscript/.all
|
${RM} -f cscript/.all
|
||||||
cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} all
|
cd cscript; ${MAKE} -f Makefile all
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||||
|
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
custom/.all: custom/Makefile
|
custom/.all: custom/Makefile
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking all rule for custom =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking all rule for custom =-=-=-=-='
|
||||||
${RM} -f $@
|
${RM} -f $@
|
||||||
cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} all
|
cd custom; ${MAKE} -f Makefile all
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||||
|
|
||||||
custom/libcustcalc${LIB_EXT_VERSION}: custom/Makefile
|
custom/libcustcalc${LIB_EXT_VERSION}: custom/Makefile
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking all rule for custom =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking all rule for custom =-=-=-=-='
|
||||||
cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@
|
cd custom; ${MAKE} -f Makefile $@
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||||
|
|
||||||
@@ -2571,7 +2365,6 @@ libcustcalc${LIB_EXT_VERSION}: custom/libcustcalc${LIB_EXT_VERSION}
|
|||||||
libcustcalc${LIB_EXT}: libcustcalc${LIB_EXT_VERSION}
|
libcustcalc${LIB_EXT}: libcustcalc${LIB_EXT_VERSION}
|
||||||
${Q} ${RM} -f $@
|
${Q} ${RM} -f $@
|
||||||
${LN} -s $? $@
|
${LN} -s $? $@
|
||||||
endif # ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
|
|
||||||
###
|
###
|
||||||
#
|
#
|
||||||
@@ -2585,20 +2378,18 @@ calc-static${EXT}: .hsrc ${CALCOBJS} \
|
|||||||
${CC} ${LDFLAGS} ${CALCOBJS} ${LD_STATIC} ${CALC_STATIC_LIBS} \
|
${CC} ${LDFLAGS} ${CALCOBJS} ${LD_STATIC} ${CALC_STATIC_LIBS} \
|
||||||
${READLINE_LIB} ${READLINE_EXTRAS} -o $@
|
${READLINE_LIB} ${READLINE_EXTRAS} -o $@
|
||||||
|
|
||||||
libcustcalc.a: custom/libcustcalc.a
|
|
||||||
${Q} ${RM} -f $@
|
|
||||||
${CP} -f $? $@
|
|
||||||
|
|
||||||
libcalc.a: ${LIBOBJS} ${MK_SET}
|
libcalc.a: ${LIBOBJS} ${MK_SET}
|
||||||
${RM} -f libcalc.a
|
${RM} -f libcalc.a
|
||||||
${AR} qc libcalc.a ${LIBOBJS}
|
${AR} qc libcalc.a ${LIBOBJS}
|
||||||
${RANLIB} libcalc.a
|
${RANLIB} libcalc.a
|
||||||
${CHMOD} 0644 libcalc.a
|
${CHMOD} 0644 libcalc.a
|
||||||
|
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
libcustcalc.a: custom/libcustcalc.a
|
||||||
|
${Q} ${RM} -f $@
|
||||||
|
${CP} -f $? $@
|
||||||
|
|
||||||
custom/libcustcalc.a: custom/Makefile
|
custom/libcustcalc.a: custom/Makefile
|
||||||
cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} libcustcalc.a
|
cd custom; ${MAKE} -f Makefile libcustcalc.a
|
||||||
endif # ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
|
|
||||||
sample_rand-static${EXT}: sample_rand.o ${CALC_STATIC_LIBS} \
|
sample_rand-static${EXT}: sample_rand.o ${CALC_STATIC_LIBS} \
|
||||||
${MK_SET}
|
${MK_SET}
|
||||||
@@ -2636,10 +2427,10 @@ depend: hsrc custom/Makefile
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
${V} echo '=-=-=-=-= Invoking depend rule for cscript =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking depend rule for cscript =-=-=-=-='
|
||||||
${Q} cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} depend
|
${Q} cd cscript; ${MAKE} -f Makefile depend
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking depend rule for custom =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking depend rule for custom =-=-=-=-='
|
||||||
${Q} cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} depend
|
${Q} cd custom; ${MAKE} -f Makefile depend
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${Q} echo forming skel
|
${Q} echo forming skel
|
||||||
${Q} ${RM} -rf skel
|
${Q} ${RM} -rf skel
|
||||||
@@ -2751,19 +2542,19 @@ distlist: ${DISTLIST} custom/Makefile
|
|||||||
echo win32/$$i; \
|
echo win32/$$i; \
|
||||||
fi; \
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
(cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} $@); \
|
(cd help; ${MAKE} -f Makefile $@); \
|
||||||
(cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} $@); \
|
(cd cal; ${MAKE} -f Makefile $@); \
|
||||||
(cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@); \
|
(cd custom; ${MAKE} -f Makefile $@); \
|
||||||
(cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} $@) \
|
(cd cscript; ${MAKE} -f Makefile $@) \
|
||||||
) | LANG=C ${SORT}
|
) | LANG=C ${SORT}
|
||||||
|
|
||||||
distdir: custom/Makefile
|
distdir: custom/Makefile
|
||||||
${Q} (echo .; \
|
${Q} (echo .; \
|
||||||
echo win32; \
|
echo win32; \
|
||||||
(cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} $@); \
|
(cd help; ${MAKE} -f Makefile $@); \
|
||||||
(cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} $@); \
|
(cd cal; ${MAKE} -f Makefile $@); \
|
||||||
(cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@); \
|
(cd custom; ${MAKE} -f Makefile $@); \
|
||||||
(cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} $@) \
|
(cd cscript; ${MAKE} -f Makefile $@) \
|
||||||
) | LANG=C ${SORT}
|
) | LANG=C ${SORT}
|
||||||
|
|
||||||
calcliblist: custom/Makefile
|
calcliblist: custom/Makefile
|
||||||
@@ -2772,10 +2563,10 @@ calcliblist: custom/Makefile
|
|||||||
echo $$i; \
|
echo $$i; \
|
||||||
fi; \
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
(cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} $@); \
|
(cd help; ${MAKE} -f Makefile $@); \
|
||||||
(cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} $@); \
|
(cd cal; ${MAKE} -f Makefile $@); \
|
||||||
(cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@); \
|
(cd custom; ${MAKE} -f Makefile $@); \
|
||||||
(cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} $@) \
|
(cd cscript; ${MAKE} -f Makefile $@) \
|
||||||
) | LANG=C ${SORT}
|
) | LANG=C ${SORT}
|
||||||
|
|
||||||
calcliblistfmt:
|
calcliblistfmt:
|
||||||
@@ -2930,7 +2721,6 @@ env:
|
|||||||
@echo 'CALC_SHAREDIR=${CALC_SHAREDIR}'; echo ''
|
@echo 'CALC_SHAREDIR=${CALC_SHAREDIR}'; echo ''
|
||||||
@echo 'CALCSRC=${CALCSRC}'; echo ''
|
@echo 'CALCSRC=${CALCSRC}'; echo ''
|
||||||
@echo 'CALC_STATIC_LIBS=${CALC_STATIC_LIBS}'; echo ''
|
@echo 'CALC_STATIC_LIBS=${CALC_STATIC_LIBS}'; echo ''
|
||||||
@echo 'CAL_PASSDOWN=${CAL_PASSDOWN}'; echo ''
|
|
||||||
@echo 'CAT=${CAT}'; echo ''
|
@echo 'CAT=${CAT}'; echo ''
|
||||||
@echo 'CATDIR=${CATDIR}'; echo ''
|
@echo 'CATDIR=${CATDIR}'; echo ''
|
||||||
@echo 'CATEXT=${CATEXT}'; echo ''
|
@echo 'CATEXT=${CATEXT}'; echo ''
|
||||||
@@ -2951,14 +2741,12 @@ env:
|
|||||||
@echo 'COMMON_LDFLAGS=${COMMON_LDFLAGS}'; echo ''
|
@echo 'COMMON_LDFLAGS=${COMMON_LDFLAGS}'; echo ''
|
||||||
@echo 'CONFIG_MKF=${CONFIG_MKF}'; echo ''
|
@echo 'CONFIG_MKF=${CONFIG_MKF}'; echo ''
|
||||||
@echo 'CP=${CP}'; echo ''
|
@echo 'CP=${CP}'; echo ''
|
||||||
@echo 'CSCRIPT_PASSDOWN=${CSCRIPT_PASSDOWN}'; echo ''
|
|
||||||
@echo 'CSCRIPT_TARGETS=${CSCRIPT_TARGETS}'; echo ''
|
@echo 'CSCRIPT_TARGETS=${CSCRIPT_TARGETS}'; echo ''
|
||||||
@echo 'C_SRC=${C_SRC}'; echo ''
|
@echo 'C_SRC=${C_SRC}'; echo ''
|
||||||
@echo 'CTAGS=${CTAGS}'; echo ''
|
@echo 'CTAGS=${CTAGS}'; echo ''
|
||||||
@echo 'CUSTOMCALDIR=${CUSTOMCALDIR}'; echo ''
|
@echo 'CUSTOMCALDIR=${CUSTOMCALDIR}'; echo ''
|
||||||
@echo 'CUSTOMHELPDIR=${CUSTOMHELPDIR}'; echo ''
|
@echo 'CUSTOMHELPDIR=${CUSTOMHELPDIR}'; echo ''
|
||||||
@echo 'CUSTOMINCDIR=${CUSTOMINCDIR}'; echo ''
|
@echo 'CUSTOMINCDIR=${CUSTOMINCDIR}'; echo ''
|
||||||
@echo 'CUSTOM_PASSDOWN=${CUSTOM_PASSDOWN}'; echo ''
|
|
||||||
@echo 'DATE=${DATE}'; echo ''
|
@echo 'DATE=${DATE}'; echo ''
|
||||||
@echo 'DEBUG=${DEBUG}'; echo ''
|
@echo 'DEBUG=${DEBUG}'; echo ''
|
||||||
@echo 'DEFAULT_LIB_INSTALL_PATH=${DEFAULT_LIB_INSTALL_PATH}'; echo ''
|
@echo 'DEFAULT_LIB_INSTALL_PATH=${DEFAULT_LIB_INSTALL_PATH}'; echo ''
|
||||||
@@ -3010,7 +2798,6 @@ env:
|
|||||||
@echo 'HAVE_USTAT=${HAVE_USTAT}'; echo ''
|
@echo 'HAVE_USTAT=${HAVE_USTAT}'; echo ''
|
||||||
@echo 'HAVE_VSNPRINTF=${HAVE_VSNPRINTF}'; echo ''
|
@echo 'HAVE_VSNPRINTF=${HAVE_VSNPRINTF}'; echo ''
|
||||||
@echo 'HELPDIR=${HELPDIR}'; echo ''
|
@echo 'HELPDIR=${HELPDIR}'; echo ''
|
||||||
@echo 'HELP_PASSDOWN=${HELP_PASSDOWN}'; echo ''
|
|
||||||
@echo 'HOSTNAME=${HOSTNAME}'; echo ''
|
@echo 'HOSTNAME=${HOSTNAME}'; echo ''
|
||||||
@echo 'H_SRC=${H_SRC}'; echo ''
|
@echo 'H_SRC=${H_SRC}'; echo ''
|
||||||
@echo 'ICFLAGS=${ICFLAGS}'; echo ''
|
@echo 'ICFLAGS=${ICFLAGS}'; echo ''
|
||||||
@@ -3220,7 +3007,8 @@ rpm-hide-static:
|
|||||||
${RM} -rf static
|
${RM} -rf static
|
||||||
${MKDIR} -p static
|
${MKDIR} -p static
|
||||||
${CP} -f -p calc-static${EXT} ${SAMPLE_STATIC_TARGETS} static
|
${CP} -f -p calc-static${EXT} ${SAMPLE_STATIC_TARGETS} static
|
||||||
${CP} -f -p libcalc.a custom/libcustcalc.a static
|
${CP} -f -p libcalc.a static
|
||||||
|
${CP} -f -p custom/libcustcalc.a static
|
||||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||||
|
|
||||||
rpm-unhide-static:
|
rpm-unhide-static:
|
||||||
@@ -3258,16 +3046,16 @@ inst_files: ${MK_SET} help/Makefile cal/Makefile \
|
|||||||
${Q} ${RM} -f inst_files
|
${Q} ${RM} -f inst_files
|
||||||
${Q} echo ${BINDIR}/calc${EXT} > inst_files
|
${Q} echo ${BINDIR}/calc${EXT} > inst_files
|
||||||
${Q} cd help; LANG=C \
|
${Q} cd help; LANG=C \
|
||||||
${MAKE} -f Makefile ${HELP_PASSDOWN} echo_inst_files | \
|
${MAKE} -f Makefile echo_inst_files | \
|
||||||
${GREP} -E '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
|
${GREP} -E '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
|
||||||
${Q} cd cal; LANG=C \
|
${Q} cd cal; LANG=C \
|
||||||
${MAKE} -f Makefile ${CAL_PASSDOWN} echo_inst_files | \
|
${MAKE} -f Makefile echo_inst_files | \
|
||||||
${GREP} -E '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
|
${GREP} -E '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
|
||||||
${Q} cd custom; LANG=C \
|
${Q} cd custom; LANG=C \
|
||||||
${MAKE} -f Makefile ${CUSTOM_PASSDOWN} echo_inst_files | \
|
${MAKE} -f Makefile echo_inst_files | \
|
||||||
${GREP} -E '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
|
${GREP} -E '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
|
||||||
${Q} cd cscript; LANG=C \
|
${Q} cd cscript; LANG=C \
|
||||||
${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} echo_inst_files | \
|
${MAKE} -f Makefile echo_inst_files | \
|
||||||
${GREP} -E '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
|
${GREP} -E '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
|
||||||
${Q} echo ${LIBDIR}/libcalc.a >> inst_files
|
${Q} echo ${LIBDIR}/libcalc.a >> inst_files
|
||||||
${Q} for i in ${LIB_H_SRC} ${BUILD_H_SRC} /dev/null; do \
|
${Q} for i in ${LIB_H_SRC} ${BUILD_H_SRC} /dev/null; do \
|
||||||
@@ -3336,17 +3124,16 @@ clean:
|
|||||||
${RM} -f .libcustcalc_error
|
${RM} -f .libcustcalc_error
|
||||||
${RM} -f calc.spec.sed
|
${RM} -f calc.spec.sed
|
||||||
${Q} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
${Q} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
||||||
cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} clean
|
cd help; ${MAKE} -f Makefile clean
|
||||||
${Q} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${Q} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${Q} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
|
${Q} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
|
||||||
cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} clean
|
cd cal; ${MAKE} -f Makefile clean
|
||||||
${Q} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${Q} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
|
||||||
cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} clean
|
cd custom; ${MAKE} -f Makefile clean
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
|
||||||
${MAKE} custom/Makefile
|
cd cscript; ${MAKE} -f Makefile clean
|
||||||
cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} clean
|
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${Q} echo remove files that are obsolete
|
${Q} echo remove files that are obsolete
|
||||||
${RM} -rf lib
|
${RM} -rf lib
|
||||||
@@ -3384,20 +3171,20 @@ clobber: clean
|
|||||||
${RM} -f all
|
${RM} -f all
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
||||||
-${RM} -f help/all; \
|
-${RM} -f help/all; \
|
||||||
cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} $@
|
cd help; ${MAKE} -f Makefile $@
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
|
||||||
-${RM} -f cal/all; \
|
-${RM} -f cal/all; \
|
||||||
cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} $@
|
cd cal; ${MAKE} -f Makefile $@
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
|
||||||
-${RM} -f custom/all; \
|
-${RM} -f custom/all; \
|
||||||
${MAKE} custom/Makefile; \
|
${MAKE} custom/Makefile; \
|
||||||
cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@
|
cd custom; ${MAKE} -f Makefile $@
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
|
||||||
-${RM} -f cscript/all; \
|
-${RM} -f cscript/all; \
|
||||||
cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} $@
|
cd cscript; ${MAKE} -f Makefile $@
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo remove files that are obsolete
|
${V} echo remove files that are obsolete
|
||||||
${RM} -rf win32 build
|
${RM} -rf win32 build
|
||||||
@@ -3472,7 +3259,6 @@ install: ${LIB_H_SRC} ${BUILD_H_SRC} calc.1 all custom/Makefile
|
|||||||
else \
|
else \
|
||||||
${TRUE}; \
|
${TRUE}; \
|
||||||
fi
|
fi
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
-${Q} if [ ! -d ${T}${CUSTOMCALDIR} ]; then \
|
-${Q} if [ ! -d ${T}${CUSTOMCALDIR} ]; then \
|
||||||
echo ${MKDIR} -p ${T}${CUSTOMCALDIR}; \
|
echo ${MKDIR} -p ${T}${CUSTOMCALDIR}; \
|
||||||
${MKDIR} -p ${T}${CUSTOMCALDIR}; \
|
${MKDIR} -p ${T}${CUSTOMCALDIR}; \
|
||||||
@@ -3497,7 +3283,6 @@ ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|||||||
else \
|
else \
|
||||||
${TRUE}; \
|
${TRUE}; \
|
||||||
fi
|
fi
|
||||||
endif # ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
-${Q} if [ ! -d ${T}${SCRIPTDIR} ]; then \
|
-${Q} if [ ! -d ${T}${SCRIPTDIR} ]; then \
|
||||||
echo ${MKDIR} -p ${T}${SCRIPTDIR}; \
|
echo ${MKDIR} -p ${T}${SCRIPTDIR}; \
|
||||||
${MKDIR} -p ${T}${SCRIPTDIR}; \
|
${MKDIR} -p ${T}${SCRIPTDIR}; \
|
||||||
@@ -3575,18 +3360,16 @@ endif # ($(ALLOW_CUSTOM),-DCUSTOM)
|
|||||||
echo "installed ${T}${BINDIR}/calc${EXT}"; \
|
echo "installed ${T}${BINDIR}/calc${EXT}"; \
|
||||||
fi
|
fi
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
||||||
${Q} cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} install
|
${Q} cd help; ${MAKE} -f Makefile install
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
|
||||||
${Q} cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} install
|
${Q} cd cal; ${MAKE} -f Makefile install
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
|
||||||
${Q} cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} install
|
${Q} cd custom; ${MAKE} -f Makefile install
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
endif # ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
|
||||||
${Q} cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} install
|
${Q} cd cscript; ${MAKE} -f Makefile install
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
-${Q} if [ -f libcalc.a ]; then \
|
-${Q} if [ -f libcalc.a ]; then \
|
||||||
if ${CMP} -s libcalc.a ${T}${LIBDIR}/libcalc.a; then \
|
if ${CMP} -s libcalc.a ${T}${LIBDIR}/libcalc.a; then \
|
||||||
@@ -3841,16 +3624,16 @@ uninstall: custom/Makefile
|
|||||||
fi; \
|
fi; \
|
||||||
fi
|
fi
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
|
||||||
${Q} cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} uninstall
|
${Q} cd cscript; ${MAKE} -f Makefile uninstall
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
|
||||||
${Q} cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} uninstall
|
${Q} cd custom; ${MAKE} -f Makefile uninstall
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
|
||||||
${Q} cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} uninstall
|
${Q} cd cal; ${MAKE} -f Makefile uninstall
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
||||||
${Q} cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} uninstall
|
${Q} cd help; ${MAKE} -f Makefile uninstall
|
||||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||||
-${Q} if [ -f "${T}${BINDIR}/calc-static${EXT}" ]; then \
|
-${Q} if [ -f "${T}${BINDIR}/calc-static${EXT}" ]; then \
|
||||||
${RM} -f "${T}${BINDIR}/calc-static${EXT}"; \
|
${RM} -f "${T}${BINDIR}/calc-static${EXT}"; \
|
||||||
|
@@ -99,11 +99,7 @@ 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}"
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
||||||
else
|
|
||||||
LIBCUSTCALC_SHLIB=
|
|
||||||
endif
|
|
||||||
#
|
#
|
||||||
CC_STATIC=
|
CC_STATIC=
|
||||||
LD_STATIC=
|
LD_STATIC=
|
||||||
@@ -137,7 +133,7 @@ CCMISC=
|
|||||||
LCC= gcc
|
LCC= gcc
|
||||||
CC= ${PURIFY} ${LCC} ${CCWERR}
|
CC= ${PURIFY} ${LCC} ${CCWERR}
|
||||||
#
|
#
|
||||||
endif
|
endif # ($(target),Linux)
|
||||||
|
|
||||||
###############################
|
###############################
|
||||||
# Apple macOS / Darwin target #
|
# Apple macOS / Darwin target #
|
||||||
@@ -151,7 +147,7 @@ ifeq ($(arch),powerpc)
|
|||||||
COMMON_CFLAGS+= -std=gnu99
|
COMMON_CFLAGS+= -std=gnu99
|
||||||
COMMON_LDFLAGS+= -std=gnu99
|
COMMON_LDFLAGS+= -std=gnu99
|
||||||
ARCH_CFLAGS+= -arch ppc
|
ARCH_CFLAGS+= -arch ppc
|
||||||
endif
|
endif # ($(arch),powerpc)
|
||||||
|
|
||||||
ifeq ($(target),Darwin)
|
ifeq ($(target),Darwin)
|
||||||
#
|
#
|
||||||
@@ -165,21 +161,17 @@ SET_INSTALL_NAME= yes
|
|||||||
ifeq ($(SET_INSTALL_NAME),yes)
|
ifeq ($(SET_INSTALL_NAME),yes)
|
||||||
LIBCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib \
|
LIBCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib \
|
||||||
-install_name ${LIBDIR}/libcalc${LIB_EXT_VERSION} ${ARCH_CFLAGS}
|
-install_name ${LIBDIR}/libcalc${LIB_EXT_VERSION} ${ARCH_CFLAGS}
|
||||||
else
|
else # ($(SET_INSTALL_NAME),yes)
|
||||||
LIBCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib \
|
LIBCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib \
|
||||||
${ARCH_CFLAGS}
|
${ARCH_CFLAGS}
|
||||||
endif
|
endif # ($(SET_INSTALL_NAME),yes)
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
ifeq ($(SET_INSTALL_NAME),yes)
|
ifeq ($(SET_INSTALL_NAME),yes)
|
||||||
LIBCUSTCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib \
|
LIBCUSTCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib \
|
||||||
-install_name ${LIBDIR}/libcustcalc${LIB_EXT_VERSION} ${ARCH_CFLAGS}
|
-install_name ${LIBDIR}/libcustcalc${LIB_EXT_VERSION} ${ARCH_CFLAGS}
|
||||||
else
|
else # ($(SET_INSTALL_NAME),yes)
|
||||||
LIBCUSTCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib \
|
LIBCUSTCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib \
|
||||||
${ARCH_CFLAGS}
|
${ARCH_CFLAGS}
|
||||||
endif
|
endif # ($(SET_INSTALL_NAME),yes)
|
||||||
else
|
|
||||||
LIBCUSTCALC_SHLIB=
|
|
||||||
endif
|
|
||||||
#
|
#
|
||||||
CC_STATIC=
|
CC_STATIC=
|
||||||
LD_STATIC= ${ARCH_CFLAGS}
|
LD_STATIC= ${ARCH_CFLAGS}
|
||||||
@@ -218,7 +210,7 @@ LIB_EXT:= .dylib
|
|||||||
LIB_EXT_VERSION:= .${VERSION}${LIB_EXT}
|
LIB_EXT_VERSION:= .${VERSION}${LIB_EXT}
|
||||||
# LDCONFIG not required on this platform, so we redefine it to an empty string
|
# LDCONFIG not required on this platform, so we redefine it to an empty string
|
||||||
LDCONFIG:=
|
LDCONFIG:=
|
||||||
endif
|
endif # ($(target),Darwin)
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# FreeBSD target #
|
# FreeBSD target #
|
||||||
@@ -233,11 +225,7 @@ 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}"
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
||||||
else
|
|
||||||
LIBCUSTCALC_SHLIB=
|
|
||||||
endif
|
|
||||||
#
|
#
|
||||||
CC_STATIC=
|
CC_STATIC=
|
||||||
LD_STATIC=
|
LD_STATIC=
|
||||||
@@ -273,7 +261,7 @@ CC= ${PURIFY} ${LCC} ${CCWERR}
|
|||||||
#
|
#
|
||||||
MAKE= gmake
|
MAKE= gmake
|
||||||
#
|
#
|
||||||
endif
|
endif # ($(target),FreeBSD)
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# OpenBSD target #
|
# OpenBSD target #
|
||||||
@@ -288,11 +276,7 @@ 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}"
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
||||||
else
|
|
||||||
LIBCUSTCALC_SHLIB=
|
|
||||||
endif
|
|
||||||
#
|
#
|
||||||
CC_STATIC=
|
CC_STATIC=
|
||||||
LD_STATIC=
|
LD_STATIC=
|
||||||
@@ -328,7 +312,7 @@ CC= ${PURIFY} ${LCC} ${CCWERR}
|
|||||||
#
|
#
|
||||||
MAKE= gmake
|
MAKE= gmake
|
||||||
#
|
#
|
||||||
endif
|
endif # ($(target),OpenBSD)
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# Cygwin target #
|
# Cygwin target #
|
||||||
@@ -343,11 +327,7 @@ 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}"
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
||||||
else
|
|
||||||
LIBCUSTCALC_SHLIB=
|
|
||||||
endif
|
|
||||||
#
|
#
|
||||||
CC_STATIC=
|
CC_STATIC=
|
||||||
LIBCALC_STATIC=
|
LIBCALC_STATIC=
|
||||||
@@ -381,7 +361,7 @@ CCMISC=
|
|||||||
LCC= cc
|
LCC= cc
|
||||||
CC= ${PURIFY} ${LCC} ${CCWERR}
|
CC= ${PURIFY} ${LCC} ${CCWERR}
|
||||||
#
|
#
|
||||||
endif
|
endif # ($(target),Cygwin)
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# simple target #
|
# simple target #
|
||||||
@@ -399,11 +379,7 @@ 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}"
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
||||||
else
|
|
||||||
LIBCUSTCALC_SHLIB=
|
|
||||||
endif
|
|
||||||
#
|
#
|
||||||
CC_STATIC=
|
CC_STATIC=
|
||||||
LD_STATIC=
|
LD_STATIC=
|
||||||
@@ -435,7 +411,7 @@ CFLAGS= ${ICFLAGS} ${CCOPT}
|
|||||||
ILDFLAGS= ${COMMON_LDFLAGS} ${LD_STATIC}
|
ILDFLAGS= ${COMMON_LDFLAGS} ${LD_STATIC}
|
||||||
LDFLAGS= ${LD_DEBUG} ${ILDFLAGS} ${LIBCALC_STATIC} ${LIBCUSTCALC_STATIC}
|
LDFLAGS= ${LD_DEBUG} ${ILDFLAGS} ${LIBCALC_STATIC} ${LIBCUSTCALC_STATIC}
|
||||||
#
|
#
|
||||||
endif
|
endif # ($(target),simple)
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
# default target - (when target is empty) #
|
# default target - (when target is empty) #
|
||||||
@@ -453,11 +429,7 @@ 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}"
|
||||||
ifeq ($(ALLOW_CUSTOM),-DCUSTOM)
|
|
||||||
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
|
||||||
else
|
|
||||||
LIBCUSTCALC_SHLIB=
|
|
||||||
endif
|
|
||||||
#
|
#
|
||||||
CC_STATIC=
|
CC_STATIC=
|
||||||
LIBCALC_STATIC=
|
LIBCALC_STATIC=
|
||||||
@@ -490,7 +462,7 @@ CCMISC=
|
|||||||
#
|
#
|
||||||
LCC= gcc
|
LCC= gcc
|
||||||
CC= ${PURIFY} ${LCC} ${CCWERR}
|
CC= ${PURIFY} ${LCC} ${CCWERR}
|
||||||
endif
|
endif # ($(target),)
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
# Set the default compile flags for ${CC} #
|
# Set the default compile flags for ${CC} #
|
||||||
@@ -505,9 +477,9 @@ endif
|
|||||||
#
|
#
|
||||||
ifeq ($(BLD_TYPE),calc-static-only)
|
ifeq ($(BLD_TYPE),calc-static-only)
|
||||||
ICFLAGS= ${COMMON_CFLAGS} ${CCBAN} ${CC_STATIC}
|
ICFLAGS= ${COMMON_CFLAGS} ${CCBAN} ${CC_STATIC}
|
||||||
else
|
else # ($(BLD_TYPE),calc-static-only)
|
||||||
ICFLAGS= ${COMMON_CFLAGS} ${CCBAN} ${CC_SHARE}
|
ICFLAGS= ${COMMON_CFLAGS} ${CCBAN} ${CC_SHARE}
|
||||||
endif
|
endif # ($(BLD_TYPE),calc-static-only)
|
||||||
CFLAGS= ${ICFLAGS} ${CCOPT}
|
CFLAGS= ${ICFLAGS} ${CCOPT}
|
||||||
|
|
||||||
# Required flags to link files for calc
|
# Required flags to link files for calc
|
||||||
|
@@ -53,8 +53,7 @@ MAKE_FILE= Makefile
|
|||||||
#
|
#
|
||||||
CONFIG_MKF= ../Makefile.config
|
CONFIG_MKF= ../Makefile.config
|
||||||
|
|
||||||
# Host targets that are shared in common with both Makefile
|
# Host target information.
|
||||||
# and custom/Makefile.
|
|
||||||
#
|
#
|
||||||
TARGET_MKF= ../Makefile.target
|
TARGET_MKF= ../Makefile.target
|
||||||
|
|
||||||
|
@@ -58,8 +58,7 @@ CONFIG_MKF= ../Makefile.config
|
|||||||
#
|
#
|
||||||
TARGET_MKF= ../Makefile.target
|
TARGET_MKF= ../Makefile.target
|
||||||
|
|
||||||
# Local file that is included just prior to the first rule,
|
# Host target information.
|
||||||
# that allows one to override any values set in this Makefile.
|
|
||||||
#
|
#
|
||||||
LOCAL_MKF= ../Makefile.local
|
LOCAL_MKF= ../Makefile.local
|
||||||
|
|
||||||
|
2
custom.h
2
custom.h
@@ -77,7 +77,9 @@ E_FUNC VALUE custom(char*, int, VALUE**); /* master custom interface */
|
|||||||
EXTERN BOOL allow_custom; /* TRUE => custom builtins allowed */
|
EXTERN BOOL allow_custom; /* TRUE => custom builtins allowed */
|
||||||
E_FUNC void showcustom(void); /* print custom functions */
|
E_FUNC void showcustom(void); /* print custom functions */
|
||||||
E_FUNC void customhelp(char *); /* direct custom help */
|
E_FUNC void customhelp(char *); /* direct custom help */
|
||||||
|
#if defined(CUSTOM)
|
||||||
EXTERN CONST struct custom cust[]; /* custom interface table */
|
EXTERN CONST struct custom cust[]; /* custom interface table */
|
||||||
|
#endif /* CUSTOM */
|
||||||
E_FUNC void init_custreg(void); /* initialize custom registers */
|
E_FUNC void init_custreg(void); /* initialize custom registers */
|
||||||
|
|
||||||
#endif /* !CUSTOM_H */
|
#endif /* !CUSTOM_H */
|
||||||
|
@@ -52,8 +52,7 @@ CONFIG_MKF= ../Makefile.config
|
|||||||
#
|
#
|
||||||
TARGET_MKF= ../Makefile.target
|
TARGET_MKF= ../Makefile.target
|
||||||
|
|
||||||
# Local file that is included just prior to the first rule,
|
# Host target information.
|
||||||
# that allows one to override any values set in this Makefile.
|
|
||||||
#
|
#
|
||||||
LOCAL_MKF= ../Makefile.local
|
LOCAL_MKF= ../Makefile.local
|
||||||
|
|
||||||
|
@@ -25,21 +25,32 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ISO C requires a translation unit to contain at least one declaration,
|
||||||
|
* so we declare a global variable whose value is based on if CUSTOM is defined.
|
||||||
|
*/
|
||||||
|
#if defined(CUSTOM)
|
||||||
|
int c_argv_allowed = 1; /* CUSTOM defined */
|
||||||
|
#else /* CUSTOM */
|
||||||
|
int c_argv_allowed = 0; /* CUSTOM defined */
|
||||||
|
#endif /* CUSTOM */
|
||||||
|
|
||||||
|
|
||||||
#if defined(CUSTOM)
|
#if defined(CUSTOM)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "have_const.h"
|
#include "../have_const.h"
|
||||||
#include "value.h"
|
#include "../value.h"
|
||||||
#include "custom.h"
|
#include "../custom.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "../config.h"
|
||||||
#include "calc.h"
|
#include "../calc.h"
|
||||||
|
|
||||||
#include "have_unused.h"
|
#include "../have_unused.h"
|
||||||
|
|
||||||
|
|
||||||
#include "banned.h" /* include after system header <> includes */
|
#include "../banned.h" /* include after system header <> includes */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -25,21 +25,32 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ISO C requires a translation unit to contain at least one declaration,
|
||||||
|
* so we declare a global variable whose value is based on if CUSTOM is defined.
|
||||||
|
*/
|
||||||
|
#if defined(CUSTOM)
|
||||||
|
int c_devnull_allowed = 1; /* CUSTOM defined */
|
||||||
|
#else /* CUSTOM */
|
||||||
|
int c_devnull_allowed = 0; /* CUSTOM defined */
|
||||||
|
#endif /* CUSTOM */
|
||||||
|
|
||||||
|
|
||||||
#if defined(CUSTOM)
|
#if defined(CUSTOM)
|
||||||
|
|
||||||
#include "have_unistd.h"
|
#include "../have_unistd.h"
|
||||||
#if defined(HAVE_UNISTD_H)
|
#if defined(HAVE_UNISTD_H)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "have_const.h"
|
#include "../have_const.h"
|
||||||
#include "value.h"
|
#include "../value.h"
|
||||||
#include "custom.h"
|
#include "../custom.h"
|
||||||
|
|
||||||
#include "have_unused.h"
|
#include "../have_unused.h"
|
||||||
|
|
||||||
|
|
||||||
#include "banned.h" /* include after system header <> includes */
|
#include "../banned.h" /* include after system header <> includes */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -25,22 +25,33 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ISO C requires a translation unit to contain at least one declaration,
|
||||||
|
* so we declare a global variable whose value is based on if CUSTOM is defined.
|
||||||
|
*/
|
||||||
|
#if defined(CUSTOM)
|
||||||
|
int c_help_allowed = 1; /* CUSTOM defined */
|
||||||
|
#else /* CUSTOM */
|
||||||
|
int c_help_allowed = 0; /* CUSTOM defined */
|
||||||
|
#endif /* CUSTOM */
|
||||||
|
|
||||||
|
|
||||||
#if defined(CUSTOM)
|
#if defined(CUSTOM)
|
||||||
|
|
||||||
#include "have_unistd.h"
|
#include "../have_unistd.h"
|
||||||
#if defined(HAVE_UNISTD_H)
|
#if defined(HAVE_UNISTD_H)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "have_const.h"
|
#include "../have_const.h"
|
||||||
#include "value.h"
|
#include "../value.h"
|
||||||
#include "custom.h"
|
#include "../custom.h"
|
||||||
|
|
||||||
#include "have_unused.h"
|
#include "../have_unused.h"
|
||||||
|
|
||||||
|
|
||||||
#include "attribute.h"
|
#include "../attribute.h"
|
||||||
#include "banned.h" /* include after system header <> includes */
|
#include "../banned.h" /* include after system header <> includes */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -24,20 +24,31 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ISO C requires a translation unit to contain at least one declaration,
|
||||||
|
* so we declare a global variable whose value is based on if CUSTOM is defined.
|
||||||
|
*/
|
||||||
|
#if defined(CUSTOM)
|
||||||
|
int c_pmodm127_allowed = 1; /* CUSTOM defined */
|
||||||
|
#else /* CUSTOM */
|
||||||
|
int c_pmodm127_allowed = 0; /* CUSTOM defined */
|
||||||
|
#endif /* CUSTOM */
|
||||||
|
|
||||||
|
|
||||||
#if defined(CUSTOM)
|
#if defined(CUSTOM)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "have_const.h"
|
#include "../have_const.h"
|
||||||
#include "value.h"
|
#include "../value.h"
|
||||||
#include "custom.h"
|
#include "../custom.h"
|
||||||
#include "zmath.h"
|
#include "../zmath.h"
|
||||||
|
|
||||||
#include "have_unused.h"
|
#include "../have_unused.h"
|
||||||
|
|
||||||
|
|
||||||
#include "attribute.h"
|
#include "../attribute.h"
|
||||||
#include "banned.h" /* include after system header <> includes */
|
#include "../banned.h" /* include after system header <> includes */
|
||||||
|
|
||||||
|
|
||||||
/* 2^255 */
|
/* 2^255 */
|
||||||
|
@@ -24,20 +24,31 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ISO C requires a translation unit to contain at least one declaration,
|
||||||
|
* so we declare a global variable whose value is based on if CUSTOM is defined.
|
||||||
|
*/
|
||||||
|
#if defined(CUSTOM)
|
||||||
|
int c_pzasusb8_allowed = 1; /* CUSTOM defined */
|
||||||
|
#else /* CUSTOM */
|
||||||
|
int c_pzasusb8_allowed = 0; /* CUSTOM defined */
|
||||||
|
#endif /* CUSTOM */
|
||||||
|
|
||||||
|
|
||||||
#if defined(CUSTOM)
|
#if defined(CUSTOM)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "have_const.h"
|
#include "../have_const.h"
|
||||||
#include "value.h"
|
#include "../value.h"
|
||||||
#include "custom.h"
|
#include "../custom.h"
|
||||||
#include "zmath.h"
|
#include "../zmath.h"
|
||||||
|
|
||||||
#include "have_unused.h"
|
#include "../have_unused.h"
|
||||||
|
|
||||||
|
|
||||||
#include "attribute.h"
|
#include "../attribute.h"
|
||||||
#include "banned.h" /* include after system header <> includes */
|
#include "../banned.h" /* include after system header <> includes */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -25,22 +25,33 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ISO C requires a translation unit to contain at least one declaration,
|
||||||
|
* so we declare a global variable whose value is based on if CUSTOM is defined.
|
||||||
|
*/
|
||||||
|
#if defined(CUSTOM)
|
||||||
|
int c_register_allowed = 1; /* CUSTOM defined */
|
||||||
|
#else /* CUSTOM */
|
||||||
|
int c_register_allowed = 0; /* CUSTOM defined */
|
||||||
|
#endif /* CUSTOM */
|
||||||
|
|
||||||
|
|
||||||
#if defined(CUSTOM)
|
#if defined(CUSTOM)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "have_const.h"
|
#include "../have_const.h"
|
||||||
#include "value.h"
|
#include "../value.h"
|
||||||
#include "custom.h"
|
#include "../custom.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "../config.h"
|
||||||
#include "calc.h"
|
#include "../calc.h"
|
||||||
|
|
||||||
#include "have_unused.h"
|
#include "../have_unused.h"
|
||||||
|
|
||||||
|
|
||||||
#include "attribute.h"
|
#include "../attribute.h"
|
||||||
#include "banned.h" /* include after system header <> includes */
|
#include "../banned.h" /* include after system header <> includes */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -25,40 +25,51 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ISO C requires a translation unit to contain at least one declaration,
|
||||||
|
* so we declare a global variable whose value is based on if CUSTOM is defined.
|
||||||
|
*/
|
||||||
|
#if defined(CUSTOM)
|
||||||
|
int c_sysinfo_allowed = 1; /* CUSTOM defined */
|
||||||
|
#else /* CUSTOM */
|
||||||
|
int c_sysinfo_allowed = 0; /* CUSTOM defined */
|
||||||
|
#endif /* CUSTOM */
|
||||||
|
|
||||||
|
|
||||||
#if defined(CUSTOM)
|
#if defined(CUSTOM)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "have_string.h"
|
#include "../have_string.h"
|
||||||
#if defined(HAVE_STRING_H)
|
#if defined(HAVE_STRING_H)
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "have_const.h"
|
#include "../have_const.h"
|
||||||
#include "value.h"
|
#include "../value.h"
|
||||||
#include "custom.h"
|
#include "../custom.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "../config.h"
|
||||||
#include "lib_calc.h"
|
#include "../lib_calc.h"
|
||||||
#include "calc.h"
|
#include "../calc.h"
|
||||||
#include "longbits.h"
|
#include "../longbits.h"
|
||||||
#define CHECK_L_FORMAT
|
#define CHECK_L_FORMAT
|
||||||
#include "block.h"
|
#include "../block.h"
|
||||||
#include "calcerr.h"
|
#include "../calcerr.h"
|
||||||
#include "conf.h"
|
#include "../conf.h"
|
||||||
#include "endian_calc.h"
|
#include "../endian_calc.h"
|
||||||
#include "fposval.h"
|
#include "../fposval.h"
|
||||||
#include "hist.h"
|
#include "../hist.h"
|
||||||
#include "prime.h"
|
#include "../prime.h"
|
||||||
#include "zrand.h"
|
#include "../zrand.h"
|
||||||
#include "zrandom.h"
|
#include "../zrandom.h"
|
||||||
|
|
||||||
#include "have_unused.h"
|
#include "../have_unused.h"
|
||||||
|
|
||||||
|
|
||||||
#include "attribute.h"
|
#include "../attribute.h"
|
||||||
#include "banned.h" /* include after system header <> includes */
|
#include "../banned.h" /* include after system header <> includes */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -26,12 +26,12 @@
|
|||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "have_const.h"
|
#include "../have_const.h"
|
||||||
#include "value.h"
|
#include "../value.h"
|
||||||
#include "custom.h"
|
#include "../custom.h"
|
||||||
|
|
||||||
|
|
||||||
#include "banned.h" /* include after system header <> includes */
|
#include "../banned.h" /* include after system header <> includes */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -58,8 +58,7 @@ CONFIG_MKF= ../Makefile.config
|
|||||||
#
|
#
|
||||||
TARGET_MKF= ../Makefile.target
|
TARGET_MKF= ../Makefile.target
|
||||||
|
|
||||||
# Local file that is included just prior to the first rule,
|
# Host target information.
|
||||||
# that allows one to override any values set in this Makefile.
|
|
||||||
#
|
#
|
||||||
LOCAL_MKF= ../Makefile.local
|
LOCAL_MKF= ../Makefile.local
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user