mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.12.4.11
This commit is contained in:
242
Makefile
242
Makefile
@@ -4,7 +4,7 @@
|
||||
#
|
||||
########################################################################
|
||||
# Gnu makefile: # This is a Gnu make makefile. If your make does not #
|
||||
# Gnu makefile: # understand this makefilkke format, then edit and use #
|
||||
# Gnu makefile: # understand this makefile format, then edit and use #
|
||||
# Gnu makefile: # Makefile.simple instead of this Makefile. #
|
||||
########################################################################
|
||||
#
|
||||
@@ -12,12 +12,12 @@
|
||||
#
|
||||
# NOTE: This is NOT the calc rpm Makefile. This Makefile is a generic
|
||||
# Makefile for the people who build calc from the bzip2-ed tarball.
|
||||
# Without modification, it not assume the system has readline, ncurses
|
||||
# or less. It compiles with gcc -O3 -g3 as well. You can change all
|
||||
# this by modifying the Makefile variables below.
|
||||
# Without modification, it does not assume the system has readline,
|
||||
# ncurses or less. It compiles with gcc -O3 -g3 as well. You can
|
||||
# change all this by modifying the Makefile variables below.
|
||||
#
|
||||
# NOTE: You might want use the READLINE facility if your system
|
||||
# has the GNU readline headers and libaraies:
|
||||
# has the GNU readline headers and libraries:
|
||||
#
|
||||
# USE_READLINE= -DUSE_READLINE
|
||||
# READLINE_LIB= -lreadline
|
||||
@@ -26,7 +26,7 @@
|
||||
# Copyright (C) 1999-2008 Landon Curt Noll
|
||||
#
|
||||
# Calc is open software; you can redistribute it and/or modify it under
|
||||
# the terms of the version 2.1 of the GNU Lesser General Public License
|
||||
# the terms of version 2.1 of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation.
|
||||
#
|
||||
# Calc is distributed in the hope that it will be useful, but WITHOUT
|
||||
@@ -39,9 +39,9 @@
|
||||
# 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: 30.54 $$
|
||||
# @(#) $Id: Makefile.ship,v 30.54 2013/08/11 05:40:18 chongo Exp $
|
||||
# @(#) $Source: /usr/local/src/cmd/calc/RCS/Makefile.ship,v $
|
||||
MAKEFILE_REV= $$Revision: 30.58 $$
|
||||
# @(#) $Id: Makefile.ship,v 30.58 2013/08/18 20:36:50 chongo Exp $
|
||||
# @(#) $Source: /usr/local/src/bin/calc/RCS/Makefile.ship,v $
|
||||
#
|
||||
# Under source code control: 1990/02/15 01:48:41
|
||||
# File existed as early as: before 1990
|
||||
@@ -61,7 +61,7 @@ MAKEFILE_REV= $$Revision: 30.54 $$
|
||||
#
|
||||
# make ...__optional_arguments_... target=value
|
||||
|
||||
# Try uname -s if the target was not alreadhy set on the make command line
|
||||
# Try uname -s if the target was not already set on the make command line
|
||||
#
|
||||
ifeq ($(target),)
|
||||
target=$(shell uname -s 2>/dev/null)
|
||||
@@ -101,13 +101,13 @@ TERMCONTROL=
|
||||
# If you do not have vsprintf(), then calc will try sprintf() and hope
|
||||
# for the best.
|
||||
#
|
||||
# A simular problem occurs if your system does not have a vsnprintf()
|
||||
# A similar problem occurs if your system does not have a vsnprintf()
|
||||
# function. This function is like the vsprintf() function except that
|
||||
# there is an extra second argument that controls the maximum size
|
||||
# string that is produced.
|
||||
#
|
||||
# If HAVE_VSPRINTF is empty, this Makefile will run the have_stdvs.c and/or
|
||||
# have_varvs.c program to determine if vsprintf() is supported. If
|
||||
# have_varvs.c program to determine if vsprintf() is supported. If
|
||||
# HAVE_VSPRINTF is set to -DDONT_HAVE_VSPRINTF then calc will hope that
|
||||
# sprintf() will work.
|
||||
#
|
||||
@@ -243,13 +243,13 @@ INODE_BITS=
|
||||
#INODE_BITS= 64
|
||||
|
||||
# Determine if we have an off_t which one can perform arithmetic operations,
|
||||
# assignments and comparisons. On some systems off_t is some sort of union
|
||||
# assignments and comparisons. On some systems off_t is some sort of union
|
||||
# or struct.
|
||||
#
|
||||
# If HAVE_OFFSCL is empty, this Makefile will run the have_offscl program
|
||||
# to determine if off_t is a scalar. If HAVE_OFFSCL is set to the value
|
||||
# -DOFF_T_NON_SCALAR when calc will assume that off_t some sort of
|
||||
# union or struct which.
|
||||
# union or struct.
|
||||
#
|
||||
# If in doubt, leave HAVE_OFFSCL empty and this Makefile will figure it out.
|
||||
#
|
||||
@@ -257,7 +257,7 @@ HAVE_OFFSCL=
|
||||
#HAVE_OFFSCL= -DOFF_T_NON_SCALAR
|
||||
|
||||
# Determine if we have an fpos_t which one can perform arithmetic operations,
|
||||
# assignments and comparisons. On some systems fpos_t is some sort of union
|
||||
# assignments and comparisons. On some systems fpos_t is some sort of union
|
||||
# or struct. Some systems do not have an fpos_t and long is as a file
|
||||
# offset instead.
|
||||
#
|
||||
@@ -265,7 +265,7 @@ HAVE_OFFSCL=
|
||||
# to determine if off_t is a scalar, or if there is no off_t and long
|
||||
# (a scalar) should be used instead. If HAVE_POSSCL is set to the value
|
||||
# -DFILEPOS_NON_SCALAR when calc will assume that fpos_t exists and is
|
||||
# some sort of union or struct which.
|
||||
# some sort of union or struct.
|
||||
#
|
||||
# If in doubt, leave HAVE_POSSCL empty and this Makefile will figure it out.
|
||||
#
|
||||
@@ -286,7 +286,7 @@ HAVE_CONST=
|
||||
# Determine if we have uid_t
|
||||
#
|
||||
# If HAVE_UID_T is empty, this Makefile will run the have_uid_t program
|
||||
# to determine if const is supported. If HAVE_UID_T is set to -DHAVE_NO_UID_T,
|
||||
# to determine if uid_t is supported. If HAVE_UID_T is set to -DHAVE_NO_UID_T,
|
||||
# then calc will treat uid_t as an unsigned short. This only matters if
|
||||
# $HOME is not set and calc must look up the home directory in /etc/passwd.
|
||||
#
|
||||
@@ -313,7 +313,7 @@ HAVE_NEWSTR=
|
||||
# If HAVE_MEMMOVE is empty, this Makefile will run the have_memmv program
|
||||
# to determine if memmove() is supported. If HAVE_MEMMOVE is set to
|
||||
# -DHAVE_NO_MEMMOVE, then calc will use internal functions to simulate
|
||||
# the memory move function that does correct overlapping memory modes.
|
||||
# the memory move function that does correct overlapping memory moves.
|
||||
#
|
||||
# If in doubt, leave HAVE_MEMMOVE empty and this Makefile will figure it out.
|
||||
#
|
||||
@@ -322,10 +322,10 @@ HAVE_MEMMOVE=
|
||||
|
||||
# Determine if we have ustat()
|
||||
#
|
||||
# If HAVE_USTAT is empty, this Makefile will run the have_memmv program
|
||||
# to determine if ustat() is supported. If HAVE_USTAT is set to
|
||||
# If HAVE_USTAT is empty, this Makefile will run the have_ustat program
|
||||
# to determine if ustat() is supported. If HAVE_USTAT is set to
|
||||
# -DHAVE_NO_USTAT, then calc will use internal functions to simulate
|
||||
# the memory move function that does correct overlapping memory modes.
|
||||
# the ustat() function that gets file system statistics.
|
||||
#
|
||||
# Select HAVE_USTAT= -DHAVE_NO_USTAT for DJGPP.
|
||||
#
|
||||
@@ -336,10 +336,10 @@ HAVE_USTAT=
|
||||
|
||||
# Determine if we have getsid()
|
||||
#
|
||||
# If HAVE_GETSID is empty, this Makefile will run the have_memmv program
|
||||
# If HAVE_GETSID is empty, this Makefile will run the have_getsid program
|
||||
# to determine if getsid() is supported. If HAVE_GETSID is set to
|
||||
# -DHAVE_NO_GETSID, then calc will use internal functions to simulate
|
||||
# the memory move function that does correct overlapping memory modes.
|
||||
# the getsid() function that gets session ID.
|
||||
#
|
||||
# Select HAVE_GETSID= -DHAVE_NO_GETSID for DJGPP.
|
||||
#
|
||||
@@ -350,10 +350,10 @@ HAVE_GETSID=
|
||||
|
||||
# Determine if we have getpgid()
|
||||
#
|
||||
# If HAVE_GETPGID is empty, this Makefile will run the have_memmv program
|
||||
# If HAVE_GETPGID is empty, this Makefile will run the have_getpgid program
|
||||
# to determine if getpgid() is supported. If HAVE_GETPGID is set to
|
||||
# -DHAVE_NO_GETPGID, then calc will use internal functions to simulate
|
||||
# the memory move function that does correct overlapping memory modes.
|
||||
# the getpgid() function that sets the process group ID.
|
||||
#
|
||||
# Select HAVE_GETPGID= -DHAVE_NO_GETPGID for DJGPP.
|
||||
#
|
||||
@@ -364,10 +364,10 @@ HAVE_GETPGID=
|
||||
|
||||
# Determine if we have clock_gettime()
|
||||
#
|
||||
# If HAVE_GETTIME is empty, this Makefile will run the have_memmv program
|
||||
# to determine if clock_gettime() is supported. If HAVE_GETTIME is set to
|
||||
# If HAVE_GETTIME is empty, this Makefile will run the have_gettime program
|
||||
# to determine if clock_gettime() is supported. If HAVE_GETTIME is set to
|
||||
# -DHAVE_NO_GETTIME, then calc will use internal functions to simulate
|
||||
# the memory move function that does correct overlapping memory modes.
|
||||
# the clock_gettime() function.
|
||||
#
|
||||
# Select HAVE_GETTIME= -DHAVE_NO_GETTIME for DJGPP.
|
||||
#
|
||||
@@ -378,10 +378,10 @@ HAVE_GETTIME=
|
||||
|
||||
# Determine if we have getprid()
|
||||
#
|
||||
# If HAVE_GETPRID is empty, this Makefile will run the have_memmv program
|
||||
# If HAVE_GETPRID is empty, this Makefile will run the have_getprid program
|
||||
# to determine if getprid() is supported. If HAVE_GETPRID is set to
|
||||
# -DHAVE_NO_GETPRID, then calc will use internal functions to simulate
|
||||
# the memory move function that does correct overlapping memory modes.
|
||||
# the getprid() function.
|
||||
#
|
||||
# Select HAVE_GETPRID= -DHAVE_NO_GETPRID for DJGPP.
|
||||
#
|
||||
@@ -392,7 +392,7 @@ HAVE_GETPRID=
|
||||
|
||||
# Determine if we have the /dev/urandom
|
||||
#
|
||||
# HAVE_URANDOM_H= let the Makefile look /dev/urandom
|
||||
# HAVE_URANDOM_H= let the Makefile look for /dev/urandom
|
||||
# HAVE_URANDOM_H= YES assume that /dev/urandom exists
|
||||
# HAVE_URANDOM_H= NO assume that /dev/urandom does not exist
|
||||
#
|
||||
@@ -406,10 +406,10 @@ HAVE_URANDOM_H=
|
||||
|
||||
# Determine if we have getrusage()
|
||||
#
|
||||
# If HAVE_GETRUSAGE is empty, this Makefile will run the have_memmv program
|
||||
# If HAVE_GETRUSAGE is empty, this Makefile will run the have_rusage program
|
||||
# to determine if getrusage() is supported. If HAVE_GETRUSAGE is set to
|
||||
# -DHAVE_NO_GETRUSAGE, then calc will use internal functions to simulate
|
||||
# the memory move function that does correct overlapping memory modes.
|
||||
# the getrusage() function.
|
||||
#
|
||||
# If in doubt, leave HAVE_GETRUSAGE empty and this Makefile will figure it out.
|
||||
#
|
||||
@@ -418,10 +418,10 @@ HAVE_GETRUSAGE=
|
||||
|
||||
# Determine if we have strdup()
|
||||
#
|
||||
# If HAVE_STRDUP is empty, this Makefile will run the have_memmv program
|
||||
# If HAVE_STRDUP is empty, this Makefile will run the have_strdup program
|
||||
# to determine if strdup() is supported. If HAVE_STRDUP is set to
|
||||
# -DHAVE_NO_STRDUP, then calc will use internal functions to simulate
|
||||
# the memory move function that does correct overlapping memory modes.
|
||||
# the strdup() function.
|
||||
#
|
||||
# If in doubt, leave HAVE_STRDUP empty and this Makefile will figure it out.
|
||||
#
|
||||
@@ -429,10 +429,10 @@ HAVE_STRDUP=
|
||||
#HAVE_STRDUP= -DHAVE_NO_STRDUP
|
||||
|
||||
# Some architectures such as Sparc do not allow one to access 32 bit values
|
||||
# that are not alligned on a 32 bit boundary.
|
||||
# that are not aligned on a 32 bit boundary.
|
||||
#
|
||||
# The Dec Alpha running OSF/1 will produce alignment error messages when
|
||||
# align32.c tries to figure out if alignment is needed. Use the
|
||||
# align32.c tries to figure out if alignment is needed. Use the
|
||||
# ALIGN32= -DMUST_ALIGN32 to force alignment and avoid such error messages.
|
||||
#
|
||||
# ALIGN32= let align32.c figure out if alignment is needed
|
||||
@@ -587,7 +587,7 @@ HAVE_UNUSED=
|
||||
#INCDIR= /dev/env/DJDIR/include
|
||||
INCDIR= /usr/include
|
||||
|
||||
# Where to install calc realted things
|
||||
# Where to install calc related things
|
||||
#
|
||||
# ${BINDIR} where to install calc binary files
|
||||
# ${LIBDIR} where calc link library (*.a) files are installed
|
||||
@@ -672,7 +672,7 @@ SCRIPTDIR= ${BINDIR}/cscript
|
||||
# T - top level directory under which calc will be installed
|
||||
#
|
||||
# The calc install is performed under ${T}, the calc build is
|
||||
# performed under /. The purpose for ${T} is to allow someone
|
||||
# performed under /. The purpose for ${T} is to allow someone
|
||||
# to install calc somewhere other than into the system area.
|
||||
#
|
||||
# For example, if:
|
||||
@@ -690,7 +690,7 @@ SCRIPTDIR= ${BINDIR}/cscript
|
||||
# calc binary files: /var/tmp/testing/usr/bin
|
||||
# calc link library: /var/tmp/testing/usr/lib
|
||||
# calc help, .cal ...: /var/tmp/testing/usr/share/calc
|
||||
# ... etc ... /var/tmp/testing/...
|
||||
# ... etc ... /var/tmp/testing/...
|
||||
#
|
||||
# If ${T} is empty, calc is installed under /, which is the same
|
||||
# top of tree for which it was built. If ${T} is non-empty, then
|
||||
@@ -754,12 +754,12 @@ CATEXT= 1
|
||||
# If NROFF is non-empty, then
|
||||
#
|
||||
# ${NROFF} ${NROFF_ARG} calc.1 > ${CATDIR}/calc.${CATEXT}
|
||||
# is used to built and install the cat page
|
||||
# is used to build and install the cat page
|
||||
#
|
||||
# else (NROFF is empty)
|
||||
#
|
||||
# ${MANMAKE} calc.1 ${CATDIR}
|
||||
# is used to built and install the cat page
|
||||
# is used to build and install the cat page
|
||||
# else
|
||||
#
|
||||
# The cat page is not built or installed
|
||||
@@ -782,8 +782,8 @@ CATMODE= 0444
|
||||
|
||||
# By default, custom builtin functions may only be executed if calc
|
||||
# is given the -C option. This is because custom builtin functions
|
||||
# may invoke non-standard or non-portable code. One may completely
|
||||
# disable custom builtin functions by not compiling any of code
|
||||
# may invoke non-standard or non-portable code. One may completely
|
||||
# disable custom builtin functions by not compiling any custom code
|
||||
#
|
||||
# ALLOW_CUSTOM= -DCUSTOM # allow custom only if -C is given
|
||||
# ALLOW_CUSTOM= # disable custom even if -C is given
|
||||
@@ -794,7 +794,7 @@ ALLOW_CUSTOM= -DCUSTOM
|
||||
#ALLOW_CUSTOM=
|
||||
|
||||
# If the $CALCPATH environment variable is not defined, then the following
|
||||
# path will be search for calc resource file routines.
|
||||
# path will be searched for calc resource file routines.
|
||||
#
|
||||
# Select CALCPATH= .;./cal;~/.cal;${CALC_SHAREDIR};${CUSTOMCALDIR} for DJGPP.
|
||||
#
|
||||
@@ -809,7 +809,7 @@ endif
|
||||
#endif /* end of skip for non-Gnu makefiles */
|
||||
|
||||
# If the $CALCRC environment variable is not defined, then the following
|
||||
# path will be search for calc resource files.
|
||||
# path will be searched for calc resource files.
|
||||
#
|
||||
# Select CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit for DJGPP.
|
||||
#
|
||||
@@ -817,7 +817,7 @@ CALCRC= ${CALC_SHAREDIR}/startup:~/.calcrc:./.calcinit
|
||||
#CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit
|
||||
|
||||
# Determine of the GNU-readline facility will be used instead of the
|
||||
# built-in calc binding method.
|
||||
# builtin calc binding method.
|
||||
#
|
||||
# USE_READLINE= Do not use GNU-readline, use calc bindings
|
||||
# USE_READLINE= -DUSE_READLINE Use GNU-readline, do not use calc bindings
|
||||
@@ -831,7 +831,7 @@ CALCRC= ${CALC_SHAREDIR}/startup:~/.calcrc:./.calcinit
|
||||
# READLINE_INCLUDE Where the readline include files reside
|
||||
# (leave blank if they are /usr/include/readline)
|
||||
#
|
||||
# NOTE: The GNU-readline code is not shipped with calc. You must have
|
||||
# NOTE: The GNU-readline code is not shipped with calc. You must have
|
||||
# the appropriate headers and link libs installed on your system in
|
||||
# order to use it.
|
||||
#
|
||||
@@ -908,9 +908,9 @@ RANLIB=ranlib
|
||||
#RANLIB=:
|
||||
|
||||
# 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
|
||||
# MAKE_FILE is empty, then they wont.
|
||||
# MAKE_FILE is empty, then they won't.
|
||||
#
|
||||
# If in doubt, set MAKE_FILE to Makefile
|
||||
#
|
||||
@@ -971,9 +971,9 @@ CALC_ENV= CALCPATH=./cal LD_LIBRARY_PATH=.
|
||||
#
|
||||
# ${MKDIR} ${MKDIR_ARG}
|
||||
#
|
||||
# to create directorties. Normall this amounts to usins mkdir -p dir ...
|
||||
# Some older systems may not have mkdir -p. If you system does not
|
||||
# make mkdir -p, then set MKDIR_ARG to empty.
|
||||
# to create directories. Normally this amounts to using mkdir -p dir ...
|
||||
# Some older systems may not have mkdir -p. If your system does not
|
||||
# have mkdir -p, then set MKDIR_ARG to empty.
|
||||
#
|
||||
# MKDIR_ARG= -p # use mkdir -p when creating paths
|
||||
# MKDIR_ARG= # use if system does not understand mkdir -p
|
||||
@@ -981,8 +981,8 @@ CALC_ENV= CALCPATH=./cal LD_LIBRARY_PATH=.
|
||||
MKDIR_ARG= -p
|
||||
#MKDIR_ARG=
|
||||
|
||||
# Some out of date operating systems require / want an executable to
|
||||
# end with a certain file extension. Some compile systems such as
|
||||
# Some out of date operating systems require/want an executable to
|
||||
# end with a certain file extension. Some compiler systems such as
|
||||
# windoz build calc as calc.exe. The EXT variable is used to denote
|
||||
# the extension required by such. Note that Cygwin requires EXT to be
|
||||
# the same as Linux/Un*x/GNU, even though it runs under windoz.
|
||||
@@ -997,7 +997,7 @@ EXT=
|
||||
|
||||
# The default calc versions
|
||||
#
|
||||
VERSION= 2.12.4.10
|
||||
VERSION= 2.12.4.11
|
||||
VERS= 2.12.4
|
||||
VER= 2.12
|
||||
VE= 2
|
||||
@@ -1048,11 +1048,11 @@ STRIP= strip
|
||||
# Extra compiling and linking flags
|
||||
#
|
||||
# EXTRA_CFLAGS are flags given to ${CC} when compiling C files
|
||||
# EXTRA_LDFLAGS are flags given to ${CC} when linking progs
|
||||
# EXTRA_LDFLAGS are flags given to ${CC} when linking programs
|
||||
#
|
||||
# Both CFLAGS and LDFLAGS are left blank in this Makefile by
|
||||
# default so that users may use them on the make command line
|
||||
# to always the way that C is compiled and files are linked
|
||||
# to always set the way that C is compiled and files are linked
|
||||
# respectively. For example:
|
||||
#
|
||||
# make all EXTRA_CFLAGS="-DMAGIC" EXTRA_LDFLAGS="-lmagic"
|
||||
@@ -1060,13 +1060,13 @@ STRIP= strip
|
||||
# NOTE: These should be left blank in this Makefile to make it
|
||||
# easier to add stuff on the command line. If you want to
|
||||
# to change the way calc is compiled by this Makefile, change
|
||||
# the appropirate host target section below or a flag above.
|
||||
# the appropriate host target section below or a flag above.
|
||||
#
|
||||
EXTRA_CFLAGS=
|
||||
EXTRA_LDFLAGS=
|
||||
|
||||
# COMMON_CFLAGS are the common ${CC} flags used for all progs, both
|
||||
# intermediate and final calc and calc related progs
|
||||
# COMMON_CFLAGS are the common ${CC} flags used for all programs, both
|
||||
# intermediate and final calc and calc related programs
|
||||
#
|
||||
#if 0 /* start of skip for non-Gnu makefiles */
|
||||
ifdef ALLOW_CUSTOM
|
||||
@@ -1078,8 +1078,8 @@ COMMON_CFLAGS= -DCALC_SRC -UCUSTOM ${CCWARN} ${CCMISC} ${EXTRA_CFLAGS}
|
||||
endif
|
||||
#endif /* end of skip for non-Gnu makefiles */
|
||||
|
||||
# COMMON_LDFLAGS are the common flags used for linking all progs, both
|
||||
# intermediate and final calc and calc related progs
|
||||
# COMMON_LDFLAGS are the common flags used for linking all programs, both
|
||||
# intermediate and final calc and calc related programs
|
||||
#
|
||||
COMMON_LDFLAGS= ${EXTRA_LDFLAGS}
|
||||
|
||||
@@ -1097,16 +1097,16 @@ COMMON_LDFLAGS= ${EXTRA_LDFLAGS}
|
||||
# BLD_TYPE= calc-static-only
|
||||
#
|
||||
# CC_SHARE are flags given to ${CC} to build .o files suitable for shared libs
|
||||
# DEFAULT_LIB_INSTALL_PATH is where calc progs look for calc shared libs
|
||||
# DEFAULT_LIB_INSTALL_PATH is where calc programs look for calc shared libs
|
||||
# LD_SHARE are common flags given to ${CC} to link with shared libraries
|
||||
# LIBCALC_SHLIB are flags given to ${CC} to build libcalc shared lib
|
||||
# LIBCALC_SHLIB are flags given to ${CC} to build libcalc shared libraries
|
||||
# LIBCUSTCALC_SHLIB are flags given to ${CC} to build libcustcalc shared lib
|
||||
#
|
||||
# NOTE: The above 4 values are unused if BLD_TYPE= calc-static-only
|
||||
#
|
||||
# CC_STATIC are flags given to ${CC} to build .o files suitable for static libs
|
||||
# LD_STATIC are common flags given to ${CC} to link with static libraries
|
||||
# LIBCALC_STATIC are flags given to ${CC} to build libcalc static lib
|
||||
# LIBCALC_STATIC are flags given to ${CC} to build libcalc static libraries
|
||||
# LIBCUSTCALC_STATIC are flags given to ${CC} to build libcustcalc static lib
|
||||
#
|
||||
# NOTE: The above 4 values are unused if BLD_TYPE= calc-dynamic-only
|
||||
@@ -1119,7 +1119,7 @@ COMMON_LDFLAGS= ${EXTRA_LDFLAGS}
|
||||
# to abort on warnings, then leave CCWERR blank.
|
||||
# CCMISC are misc flags given to ${CC}
|
||||
#
|
||||
# LCC how the C compiler is invoked on locally executed intermediate progs
|
||||
# LCC is how the C compiler is invoked on locally executed intermediate programs
|
||||
# CC is how the C compiler is invoked (with an optional Purify)
|
||||
#
|
||||
# Specific target overrides or modifications to default values
|
||||
@@ -1200,7 +1200,7 @@ CCMISC= ${DARWIN_ARCH}
|
||||
LCC= MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} gcc
|
||||
CC= ${PURIFY} ${LCC} ${CCWERR}
|
||||
#
|
||||
# Darmin dynamic shared lib filenames
|
||||
# Darwin dynamic shared lib filenames
|
||||
LIB_EXT:= .dylib
|
||||
LIB_EXT_VERSION:= .${VERSION}${LIB_EXT}
|
||||
LIB_EXT_VERS:= .${VERS}${LIB_EXT}
|
||||
@@ -1403,10 +1403,10 @@ CC= ${PURIFY} ${LCC} ${CCWERR}
|
||||
#
|
||||
# The simple makefile forces the use of static ${CC} flags
|
||||
#
|
||||
# ICFLAGS are given to ${CC} for intermediate progs used to help compile calc
|
||||
# CFLAGS are given to ${CC} for calc progs other than intermediate progs
|
||||
# ILDFLAGS for ${CC} in linking intermediate progs used to help compile calc
|
||||
# LDFLAGS for ${CC} in linking calc progs other than intermediate progs
|
||||
# ICFLAGS are given to ${CC} for intermediate programs used to help compile calc
|
||||
# CFLAGS are given to ${CC} for calc programs other than intermediate programs
|
||||
# ILDFLAGS for ${CC} in linking intermediate programs used to help compile calc
|
||||
# LDFLAGS for ${CC} in linking calc programs other than intermediate programs
|
||||
#
|
||||
ICFLAGS= ${COMMON_CFLAGS} ${CC_STATIC}
|
||||
CFLAGS= ${ICFLAGS} ${CCOPT}
|
||||
@@ -1506,8 +1506,8 @@ endif
|
||||
|
||||
# Required flags to compile C files for calc
|
||||
#
|
||||
# ICFLAGS are given to ${CC} for intermediate progs used to help compile calc
|
||||
# CFLAGS are given to ${CC} for calc progs other than intermediate progs
|
||||
# ICFLAGS are given to ${CC} for intermediate programs used to help compile calc
|
||||
# CFLAGS are given to ${CC} for calc programs other than intermediate programs
|
||||
#
|
||||
# NOTE: This does not work for: make-XYZ-only and BLD_TYPE != make-XYZ-only
|
||||
#
|
||||
@@ -1520,8 +1520,8 @@ CFLAGS= ${ICFLAGS} ${CCOPT}
|
||||
|
||||
# Required flags to link files for calc
|
||||
#
|
||||
# ILDFLAGS for ${CC} in linking intermediate progs used to help compile calc
|
||||
# LDFLAGS for ${CC} in linking calc progs other than intermediate progs
|
||||
# ILDFLAGS for ${CC} in linking intermediate programs used to help compile calc
|
||||
# LDFLAGS for ${CC} in linking calc programs other than intermediate programs
|
||||
#
|
||||
ILDFLAGS= ${COMMON_LDFLAGS}
|
||||
LDFLAGS= ${LD_DEBUG} ${ILDFLAGS}
|
||||
@@ -1740,7 +1740,7 @@ CUSTOM_PASSDOWN= \
|
||||
VERSION=${VERSION} \
|
||||
target=${target}
|
||||
|
||||
# The compelte list of Makefile vars passed down to help/Makefile.
|
||||
# The complete list of Makefile vars passed down to help/Makefile.
|
||||
#
|
||||
HELP_PASSDOWN= \
|
||||
AR=${AR} \
|
||||
@@ -1777,7 +1777,7 @@ HELP_PASSDOWN= \
|
||||
TOUCH=${TOUCH} \
|
||||
TRUE=${TRUE}
|
||||
|
||||
# The compelte list of Makefile vars passed down to cal/Makefile.
|
||||
# The complete list of Makefile vars passed down to cal/Makefile.
|
||||
#
|
||||
CAL_PASSDOWN= \
|
||||
AR=${AR} \
|
||||
@@ -1805,7 +1805,7 @@ CAL_PASSDOWN= \
|
||||
TOUCH=${TOUCH} \
|
||||
TRUE=${TRUE}
|
||||
|
||||
# The compelte list of Makefile vars passed down to cscript/Makefile.
|
||||
# The complete list of Makefile vars passed down to cscript/Makefile.
|
||||
#
|
||||
CSCRIPT_PASSDOWN= \
|
||||
AR=${AR} \
|
||||
@@ -1854,7 +1854,7 @@ DISTLIST= ${C_SRC} ${H_SRC} ${MAKE_FILE} BUGS CHANGES LIBRARY README \
|
||||
README.WINDOWS calc.man HOWTO.INSTALL ${UTIL_MISC_SRC} ${LICENSE} \
|
||||
sample.README calc.spec.in rpm.mk
|
||||
|
||||
# These files are used to make (but not built) a calc .a link library
|
||||
# These files are used to make (but not build) a calc .a link library
|
||||
#
|
||||
CALCLIBLIST= ${LIBSRC} ${UTIL_C_SRC} ${LIB_H_SRC} ${MAKE_FILE} \
|
||||
${UTIL_MISC_SRC} BUGS CHANGES LIBRARY
|
||||
@@ -1875,7 +1875,7 @@ CALC_STATIC_LIBS= libcalc.a
|
||||
endif
|
||||
#endif /* end of skip for non-Gnu makefiles */
|
||||
|
||||
# Libaraies created and used to build calc
|
||||
# Libraries created and used to build calc
|
||||
#
|
||||
#if 0 /* start of skip for non-Gnu makefiles */
|
||||
ifdef ALLOW_CUSTOM
|
||||
@@ -1887,7 +1887,7 @@ CALC_DYNAMIC_LIBS= libcalc${LIB_EXT_VERSION}
|
||||
endif
|
||||
#endif /* end of skip for non-Gnu makefiles */
|
||||
|
||||
# Symlinks of dymanic shared libraries
|
||||
# Symlinks of dynamic shared libraries
|
||||
#
|
||||
#if 0 /* start of skip for non-Gnu makefiles */
|
||||
ifdef ALLOW_CUSTOM
|
||||
@@ -1903,7 +1903,7 @@ SYM_DYNAMIC_LIBS= libcalc${LIB_EXT_VER} libcalc${LIB_EXT_VE} libcalc${LIB_EXT} \
|
||||
endif
|
||||
#endif /* end of skip for non-Gnu makefiles */
|
||||
|
||||
# list of sample programs to that need to be built to satisfy sample rule
|
||||
# list of sample programs that need to be built to satisfy sample rule
|
||||
#
|
||||
# NOTE: The ${SAMPLE_TARGETS} and ${SAMPLE_STATIC_TARGETS} are built but
|
||||
# not installed at this time.
|
||||
@@ -1914,7 +1914,7 @@ endif
|
||||
SAMPLE_TARGETS= sample_rand${EXT} sample_many${EXT}
|
||||
SAMPLE_STATIC_TARGETS= sample_rand-static${EXT} sample_many-static${EXT}
|
||||
|
||||
# list of cscript programs to that need to be built to satisfy cscript/.all
|
||||
# list of cscript programs that need to be built to satisfy cscript/.all
|
||||
#
|
||||
# NOTE: This list MUST be coordinated with the ${CSCRIPT_TARGETS} variable
|
||||
# in the cscript/Makefile
|
||||
@@ -1977,7 +1977,7 @@ calc-dynamic-only: ${DYNAMIC_FIRST_TARGETS} ${EARLY_TARGETS} \
|
||||
echo " ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
|
||||
echo " ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
|
||||
echo "" 1>&2; \
|
||||
echo "NOTE: It is a very good idea to c first clobber any" 1>&2; \
|
||||
echo "NOTE: It is a very good idea to first clobber any" 1>&2; \
|
||||
echo " previously built .o, libs and executables" 1>&2; \
|
||||
echo " before switching to $$r!" 1>&2; \
|
||||
echo "" 1>&2; \
|
||||
@@ -1993,7 +1993,7 @@ calc-dynamic-only: ${DYNAMIC_FIRST_TARGETS} ${EARLY_TARGETS} \
|
||||
echo " ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
|
||||
echo " ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
|
||||
echo "" 1>&2; \
|
||||
echo "to clean out any previously build static files." 1>&2; \
|
||||
echo "to clean out any previously built static files." 1>&2; \
|
||||
echo "" 1>&2; \
|
||||
echo "=== aborting make ===" 1>&2; \
|
||||
exit 2; \
|
||||
@@ -2023,7 +2023,7 @@ calc-static-only: ${STATIC_FIRST_TARGETS} ${EARLY_TARGETS} \
|
||||
echo " ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
|
||||
echo " ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
|
||||
echo "" 1>&2; \
|
||||
echo "NOTE: It is a very good idea to c first clobber any" 1>&2; \
|
||||
echo "NOTE: It is a very good idea to first clobber any" 1>&2; \
|
||||
echo " previously built .o, libs and executables" 1>&2; \
|
||||
echo " before switching to $$r!" 1>&2; \
|
||||
echo "" 1>&2; \
|
||||
@@ -2039,7 +2039,7 @@ calc-static-only: ${STATIC_FIRST_TARGETS} ${EARLY_TARGETS} \
|
||||
echo " ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
|
||||
echo " ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
|
||||
echo "" 1>&2; \
|
||||
echo "to clean out any previously build dynamic files." 1>&2; \
|
||||
echo "to clean out any previously built dynamic files." 1>&2; \
|
||||
echo "" 1>&2; \
|
||||
echo "=== aborting make ===" 1>&2; \
|
||||
exit 4; \
|
||||
@@ -2135,8 +2135,8 @@ seed.o: seed.c no_implicit.arg ${MAKE_FILE}
|
||||
###
|
||||
#
|
||||
# The next set of rules cause the .h files BUILD_H_SRC files to be built
|
||||
# according tot he system and the Makefile variables above. The hsrc rule
|
||||
# is a convenient rule to invoke to built all of the BUILD_H_SRC.
|
||||
# according to the system and the Makefile variables above. The hsrc rule
|
||||
# is a convenient rule to invoke to build all of the BUILD_H_SRC.
|
||||
#
|
||||
# We add in the BUILD_C_SRC files because they are similar to the
|
||||
# BUILD_H_SRC files in terms of the build process.
|
||||
@@ -3592,7 +3592,7 @@ endif
|
||||
|
||||
###
|
||||
#
|
||||
# building calc-static and static lib*.a libraires
|
||||
# building calc-static and static lib*.a libraries
|
||||
#
|
||||
###
|
||||
|
||||
@@ -3631,10 +3631,10 @@ sample_many-static${EXT}: sample_many.o ${CALC_STATIC_LIBS} ${MAKE_FILE}
|
||||
|
||||
###
|
||||
#
|
||||
# Home grown make dependency rules. Your system make not support
|
||||
# Homegrown make dependency rules. Your system may not support
|
||||
# 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
|
||||
# prevention lines. This allows us to build a static depend list that will
|
||||
# satisfy all possible cpp symbol definition combinations.
|
||||
@@ -3744,21 +3744,21 @@ h_list:
|
||||
# 1 level version string.
|
||||
#
|
||||
# version:
|
||||
# This rule simply echos the value found in this makefile.
|
||||
# This rule simply echoes the value found in this makefile.
|
||||
# This rule produces the full version string. Note that the
|
||||
# full version could be 4 or 3 levels long depending on the
|
||||
# minor patch number.
|
||||
#
|
||||
# vers:
|
||||
# This rule simply echos the value found in this makefile.
|
||||
# This rule simply echoes the value found in this makefile.
|
||||
# This rule produces only a 3 level version string.
|
||||
#
|
||||
# ver:
|
||||
# This rule simply echos the value found in this makefile.
|
||||
# This rule simply echoes the value found in this makefile.
|
||||
# This rule produces only a 2 level version string.
|
||||
#
|
||||
# ve:
|
||||
# This rule simply echos the value found in this makefile.
|
||||
# This rule simply echoes the value found in this makefile.
|
||||
# This rule produces only a 1 level version string.
|
||||
#
|
||||
###
|
||||
@@ -3876,7 +3876,7 @@ custom/Makefile.simple: custom/Makefile
|
||||
#
|
||||
# Doing a 'make chk' will cause only the context around interesting
|
||||
# (and error) messages to be printed. Unlike 'make check', this
|
||||
# rule does not cause things to be built. I.e., the all rule is
|
||||
# rule does not cause things to be built. i.e., the all rule is
|
||||
# not invoked.
|
||||
#
|
||||
###
|
||||
@@ -4072,34 +4072,38 @@ env:
|
||||
|
||||
mkdebug: env version.c
|
||||
@echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||
@echo '=-=-=-=-= Determining the source version =-=-=-=-='
|
||||
@echo '=-=-=-= Determining the source version =-=-=-='
|
||||
@${MAKE} -f Makefile Q= V=@ ver_calc${EXT}
|
||||
-@./ver_calc${EXT}
|
||||
@echo '=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-=-='
|
||||
@echo '=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-='
|
||||
@${MAKE} -f Makefile Q= V=@ all
|
||||
@echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||
@echo '=-=-=-=-= Determining the binary version =-=-=-=-='
|
||||
@echo '=-=-=-= Back to the main Makefile for $@ rule =-=-=-='
|
||||
@echo '=-=-=-= Determining the binary version =-=-=-='
|
||||
-@./calc${EXT} -e -q -v
|
||||
@echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||
@echo '=-=-=-= Back to the main Makefile for $@ rule =-=-=-='
|
||||
@echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||
|
||||
debug: env
|
||||
@echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||
@echo '=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ clobber =-=-=-=-='
|
||||
@echo '=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ clobber =-=-=-='
|
||||
@${MAKE} -f Makefile Q= V=@ clobber
|
||||
@echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||
@echo '=-=-=-=-= Determining the source version =-=-=-=-='
|
||||
@echo '=-=-=-= Back to the main Makefile for $@ rule =-=-=-='
|
||||
@echo '=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-='
|
||||
@echo '=-=-= this may take a bit of time =-=-='
|
||||
@${MAKE} -f Makefile Q= V=@ all
|
||||
@echo '=-=-=-= Back to the main Makefile for $@ rule =-=-=-='
|
||||
@echo '=-=-=-= Determining the source version =-=-=-='
|
||||
@${MAKE} -f Makefile Q= V=@ ver_calc${EXT}
|
||||
-@./ver_calc${EXT}
|
||||
@echo '=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-=-='
|
||||
@${MAKE} -f Makefile Q= V=@ all
|
||||
@echo '=-=-=-=-= Determining the binary version =-=-=-=-='
|
||||
-@./calc${EXT} -e -q -v
|
||||
@echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||
@echo '=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ chk =-=-=-=-='
|
||||
@echo '=-=-=-=-= this may take a while =-=-=-=-='
|
||||
@${MAKE} -f Makefile Q= V=@ chk
|
||||
@echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||
@echo '=-=-=-= Back to the main Makefile for $@ rule =-=-=-='
|
||||
@echo -n '=-=-=-= Print #defile values if custom functions '
|
||||
@echo 'are allowed =-=-=-='
|
||||
-@./calc${EXT} -e -q -C 'print custom("sysinfo", 2);'
|
||||
@echo '=-=-=-= Back to the main Makefile for $@ rule =-=-=-='
|
||||
@echo '=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ check =-=-=-='
|
||||
@echo '=-=-= this may take a while =-=-='
|
||||
@${MAKE} -f Makefile Q= V=@ check
|
||||
@echo '=-=-=-= Back to the main Makefile for $@ rule =-=-=-='
|
||||
@echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||
|
||||
###
|
||||
@@ -4210,7 +4214,7 @@ inst_files: ${MAKE_FILE} help/Makefile cal/Makefile custom/Makefile \
|
||||
${Q} LANG=C ${SORT} -u inst_files -o inst_files
|
||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||
|
||||
# The olduninstall rule will remove calc files from the older, histroic
|
||||
# The olduninstall rule will remove calc files from the older, historic
|
||||
# locations under the /usr/local directory. If you are using the
|
||||
# new default values for ${BINDIR}, ${CALC_SHAREDIR}, ${INCDIR} and ${LIBDIR}
|
||||
# then you can use this rule to clean out the older calc stuff under
|
||||
@@ -4329,7 +4333,7 @@ clobber: custom/Makefile clean
|
||||
|
||||
# install everything
|
||||
#
|
||||
# NOTE: Keep the uninstall rule in reverse order to the install rule
|
||||
# NOTE: Keep the uninstall rule in the reverse order of the install rule
|
||||
#
|
||||
install: custom/Makefile ${LIB_H_SRC} ${BUILD_H_SRC} calc.1 all
|
||||
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||
@@ -4636,7 +4640,7 @@ endif
|
||||
|
||||
# Try to remove everything that was installed
|
||||
#
|
||||
# NOTE: Keep the uninstall rule in reverse order to the install rule
|
||||
# NOTE: Keep the uninstall rule in the reverse order of the install rule
|
||||
#
|
||||
uninstall: custom/Makefile
|
||||
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||
@@ -4840,7 +4844,7 @@ strip:
|
||||
done
|
||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||
|
||||
# calc-symlink - setup symlinks from stardard locations into the ${T} tree
|
||||
# calc-symlink - setup symlinks from standard locations into the ${T} tree
|
||||
#
|
||||
calc-symlink:
|
||||
${Q}if [ -z "${T}" ]; then \
|
||||
|
Reference in New Issue
Block a user