Release calc version 2.11.9

This commit is contained in:
Landon Curt Noll
2004-02-23 01:33:47 -08:00
parent b4952bd44f
commit 66c3d26611
38 changed files with 597 additions and 278 deletions

View File

@@ -26,8 +26,8 @@
# received a copy with calc; if not, write to Free Software Foundation, Inc.
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#
MAKEFILE_REV= $$Revision: 29.62 $$
# @(#) $Id: Makefile.ship,v 29.62 2003/02/25 17:38:22 chongo Exp $
MAKEFILE_REV= $$Revision: 29.68 $$
# @(#) $Id: Makefile.ship,v 29.68 2004/02/23 09:30:32 chongo Exp $
# @(#) $Source: /usr/local/src/cmd/calc/RCS/Makefile.ship,v $
#
# Under source code control: 1990/02/15 01:48:41
@@ -549,13 +549,28 @@ HAVE_UNISTD_H=
# Determine if our compiler allows the -Wno-implicit flag
#
# HAVE_NO_IMPLICIT= Our compiler does not have -Wno-implicit flags
# HAVE_NO_IMPLICIT= let the Makefile test the -Wno-implicit flag
# HAVE_NO_IMPLICIT= NO Our compiler does not have -Wno-implicit flags
# HAVE_NO_IMPLICIT= YES Our compiler has a -Wno-implicit flag
#
# HAVE_NO_IMPLICIT=
# Select HAVE_NO_IMPLICIT= for DJGPP.
#
HAVE_NO_IMPLICIT=
# HAVE_NO_IMPLICIT= NO
HAVE_NO_IMPLICIT= YES
# HAVE_NO_IMPLICIT= YES
# Determine if our compiler allows the unused attribute
#
# If HAVE_UNUSED is empty, this Makefile will run the have_unused program
# to determine if the unused attribute is supported. If HAVE_UNUSED is set to
# -DHAVE_NO_UNUSED, then the unused attribute will not be used.
#
# Select HAVE_UNUSED= for DJGPP.
#
# If in doubt, leave HAVE_UNUSED empty and this Makefile will figure it out.
#
HAVE_UNUSED=
#HAVE_UNUSED= -DHAVE_NO_UNUSED
# System include files
#
@@ -985,7 +1000,7 @@ MKDIR_ARG= -p
# For better performance, set the following above: DEBUG= -O2 -g3
# You might even try: DEBUG= -O3 -g3
#
CCWARN= -Wall -Wno-comment
CCWARN= -Wall -W -Wno-comment
CCOPT= ${DEBUG} ${NO_SHARED}
CCMISC=
#
@@ -1005,7 +1020,7 @@ CC= ${PURIFY} ${LCC}
# For better performance, set the following above: DEBUG= -O2 -g3
# You might even try: DEBUG= -O3 -g3
#
#CCWARN= -Wall -Wno-comment
#CCWARN= -Wall -W -Wno-comment
#CCOPT= ${DEBUG} ${NO_SHARED}
#CCMISC=
#
@@ -1265,7 +1280,7 @@ BUILD_H_SRC= align32.h args.h calcerr.h conf.h endian_calc.h \
have_unistd.h longbits.h longlong.h terminal.h \
have_ustat.h have_getsid.h have_getpgid.h \
have_gettime.h have_getprid.h have_urandom.h have_rusage.h \
have_strdup.h
have_strdup.h have_unused.h
# we build these .c files during the make
#
@@ -1280,7 +1295,7 @@ UTIL_C_SRC= align32.c endian.c longbits.c have_newstr.c have_uid_t.c \
have_fpos_pos.c longlong.c have_offscl.c have_posscl.c have_memmv.c \
have_ustat.c have_getsid.c have_getpgid.c \
have_gettime.c have_getprid.c have_rusage.c have_strdup.c \
no_implicit.c
no_implicit.c have_unused.c
# these awk and sed tools are used in the process of building BUILD_H_SRC
# and BUILD_C_SRC
@@ -1297,7 +1312,7 @@ UTIL_OBJS= endian.o longbits.o have_newstr.o have_uid_t.o \
try_strarg.o have_stdvs.o have_varvs.o have_posscl.o have_memmv.o \
have_ustat.o have_getsid.o have_getpgid.o \
have_gettime.o have_getprid.o ver_calc.o have_rusage.o have_strdup.o \
no_implicit.o
no_implicit.o have_unused.o
# these temp files may be created (and removed) during the build of BUILD_C_SRC
#
@@ -1311,7 +1326,7 @@ UTIL_PROGS= align32 fposval have_uid_t longlong have_const \
endian longbits have_newstr have_stdvs have_varvs \
have_ustat have_getsid have_getpgid \
have_gettime have_getprid ver_calc have_strdup \
no_implicit no_implicit.arg
no_implicit no_implicit.arg have_unused
# The complete list of Makefile vars passed down to custom/Makefile.
#
@@ -1555,7 +1570,7 @@ func.o: func.c ${MAKE_FILE}
${CC} ${CFLAGS} ${ALLOW_CUSTOM} -c func.c
seed.o: seed.c no_implicit.arg ${MAKE_FILE}
${CC} ${CFLAGS} "`cat no_implicit.arg`" -c seed.c
${CC} ${CFLAGS} `cat no_implicit.arg` -c seed.c
##
#
@@ -2886,13 +2901,15 @@ no_implicit.arg: no_implicit.c ${MAKE_FILE}
-${Q}rm -f no_implicit no_implicit.o no_implicit.arg
${Q}echo 'forming no_implicit.arg'
-${Q}if [ X"${HAVE_NO_IMPLICIT}" = X"YES" ]; then \
echo ""'-Wno-implicit' > no_implicit.arg; \
elif [ X"${HAVE_NO_IMPLICIT}" = X"NO" ]; then \
touch no_implicit.arg; \
else \
${LCC} -Wno-implicit ${ICFLAGS} -DHAVE_NO_IMPLICIT \
no_implicit.c -c >/dev/null 2>&1; \
${LCC} ${ILDFLAGS} no_implicit.o -o no_implicit >/dev/null 2>&1; \
${SHELL} -c "./no_implicit > no_implicit.arg 2>/dev/null" \
>/dev/null 2>&1; true; \
else \
touch no_implicit.arg; \
fi
${Q}echo 'no_implicit.arg formed'
-@if [ -z "${Q}" ]; then \
@@ -2905,6 +2922,46 @@ no_implicit.arg: no_implicit.c ${MAKE_FILE}
true; \
fi
have_unused.h: have_unused.c ${MAKE_FILE}
-${Q}rm -f have_unused have_unused.o unused_tmp have_unused.h
${Q}echo 'forming have_unused.h'
${Q}echo '/*' > have_unused.h
${Q}echo ' * DO NOT EDIT -- generated by the Makefile' >> have_unused.h
${Q}echo ' */' >> have_unused.h
${Q}echo '' >> have_unused.h
${Q}echo '' >> have_unused.h
${Q}echo '#if !defined(__HAVE_UNUSED_H__)' >> have_unused.h
${Q}echo '#define __HAVE_UNUSED_H__' >> have_unused.h
${Q}echo '' >> have_unused.h
${Q}echo '' >> have_unused.h
${Q}echo '/* do we have/want the unused attribute? */' >> have_unused.h
-${Q}rm -f have_unused.o have_unused
-${Q}${LCC} ${ICFLAGS} ${HAVE_UNUSED} have_unused.c -c \
>/dev/null 2>&1; true
-${Q}${LCC} ${ILDFLAGS} have_unused.o -o have_unused \
>/dev/null 2>&1; true
-${Q}${SHELL} -c "./have_unused > unused_tmp 2>/dev/null" \
>/dev/null 2>&1; true
-${Q}if [ -s unused_tmp ]; then \
cat unused_tmp >> have_unused.h; \
else \
echo '#undef HAVE_UNUSED /* no */' >> have_unused.h; \
fi
${Q}echo '' >> have_unused.h
${Q}echo '' >> have_unused.h
${Q}echo '#endif /* !__HAVE_UNUSED_H__ */' >> have_unused.h
-${Q}rm -f have_unused have_unused.o unused_tmp
${Q}echo 'have_unused.h formed'
-@if [ -z "${Q}" ]; then \
echo ''; \
echo '=-=-= start of $@ =-=-='; \
cat $@; \
echo '=-=-= end of $@ =-=-='; \
echo ''; \
else \
true; \
fi
##
#
# Build .h files for windoz based systems
@@ -3147,7 +3204,7 @@ h_list:
# print the calc version
#
ver_calc: version.c
ver_calc: version.c have_unused.h
-rm -f $@
${LCC} ${ICFLAGS} -DCALC_VER ${ILDFLAGS} version.c -o $@
@@ -3907,6 +3964,7 @@ calc.o: have_strdup.h
calc.o: have_string.h
calc.o: have_uid_t.h
calc.o: have_unistd.h
calc.o: have_unused.h
calc.o: hist.h
calc.o: label.h
calc.o: longbits.h
@@ -4134,6 +4192,7 @@ func.o: have_strdup.h
func.o: have_string.h
func.o: have_times.h
func.o: have_unistd.h
func.o: have_unused.h
func.o: label.h
func.o: longbits.h
func.o: md5.h
@@ -4200,6 +4259,7 @@ have_stdvs.o: have_unistd.h
have_strdup.o: have_strdup.c
have_uid_t.o: have_uid_t.c
have_uid_t.o: have_unistd.h
have_unused.o: have_unused.c
have_ustat.o: have_ustat.c
have_varvs.o: have_string.h
have_varvs.o: have_unistd.h
@@ -4249,6 +4309,7 @@ hist.o: have_stdlib.h
hist.o: have_strdup.h
hist.o: have_string.h
hist.o: have_unistd.h
hist.o: have_unused.h
hist.o: hist.c
hist.o: hist.h
hist.o: longbits.h
@@ -4418,6 +4479,7 @@ matfunc.o: have_memmv.h
matfunc.o: have_newstr.h
matfunc.o: have_stdlib.h
matfunc.o: have_string.h
matfunc.o: have_unused.h
matfunc.o: longbits.h
matfunc.o: matfunc.c
matfunc.o: md5.h
@@ -4533,6 +4595,7 @@ opcodes.o: have_memmv.h
opcodes.o: have_newstr.h
opcodes.o: have_stdlib.h
opcodes.o: have_string.h
opcodes.o: have_unused.h
opcodes.o: hist.h
opcodes.o: label.h
opcodes.o: longbits.h
@@ -4633,6 +4696,7 @@ qio.o: have_memmv.h
qio.o: have_newstr.h
qio.o: have_stdlib.h
qio.o: have_string.h
qio.o: have_unused.h
qio.o: longbits.h
qio.o: nametype.h
qio.o: qio.c
@@ -4944,6 +5008,7 @@ version.o: have_memmv.h
version.o: have_newstr.h
version.o: have_stdlib.h
version.o: have_string.h
version.o: have_unused.h
version.o: longbits.h
version.o: md5.h
version.o: nametype.h
@@ -5067,6 +5132,7 @@ zrand.o: have_memmv.h
zrand.o: have_newstr.h
zrand.o: have_stdlib.h
zrand.o: have_string.h
zrand.o: have_unused.h
zrand.o: longbits.h
zrand.o: md5.h
zrand.o: nametype.h
@@ -5093,6 +5159,7 @@ zrandom.o: have_memmv.h
zrandom.o: have_newstr.h
zrandom.o: have_stdlib.h
zrandom.o: have_string.h
zrandom.o: have_unused.h
zrandom.o: longbits.h
zrandom.o: md5.h
zrandom.o: nametype.h