3 # calc - arbitrary precision calculator
5 ########################################################################
6 # Gnu makefile: # This is a Gnu make makefile. If your make does not #
7 # Gnu makefile: # understand this makefilkke format, then edit and use #
8 # Gnu makefile: # Makefile.simple instead of this Makefile. #
9 ########################################################################
11 # (Generic calc makefile)
13 # NOTE: This is NOT the calc rpm Makefile. This Makefile is a generic
14 # Makefile for the people who build calc from the bzip2-ed tarball.
15 # Without modification, it not assume the system has readline, ncurses
16 # or less. It compiles with gcc -O3 -g3 as well. You can change all
17 # this by modifying the Makefile variables below.
19 # NOTE: You might want use the READLINE facility if your system
20 # has the GNU readline headers and libaraies:
22 # USE_READLINE= -DUSE_READLINE
23 # READLINE_LIB= -lreadline
24 # READLINE_EXTRAS= -lhistory -lncurses
26 # Copyright (C) 1999-2008 Landon Curt Noll
28 # Calc is open software; you can redistribute it and/or modify it under
29 # the terms of the version 2.1 of the GNU Lesser General Public License
30 # as published by the Free Software Foundation.
32 # Calc is distributed in the hope that it will be useful, but WITHOUT
33 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
34 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
35 # Public License for more details.
37 # A copy of version 2.1 of the GNU Lesser General Public License is
38 # distributed with calc under the filename COPYING-LGPL. You should have
39 # received a copy with calc; if not, write to Free Software Foundation, Inc.
40 # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
42 MAKEFILE_REV
= $$Revision: 30.54 $$
43 # @(#) $Id: Makefile.ship,v 30.54 2013/08/11 05:40:18 chongo Exp $
44 # @(#) $Source: /usr/local/src/cmd/calc/RCS/Makefile.ship,v $
46 # Under source code control: 1990/02/15 01:48:41
47 # File existed as early as: before 1990
49 # chongo <was here> /\oo/\ http://www.isthe.com/chongo/
50 # Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
52 # calculator by David I. Bell with help/mods from others
53 # Makefile by Landon Curt Noll
55 #if 0 /* start of skip for non-Gnu makefiles */
56 ##############################################################################
57 #-=-=-=-=-=-=-=-=- Identify the target machine, if possible -=-=-=-=-=-=-=-=-#
58 ##############################################################################
60 # NOTE: You can force a target value by defining target as in:
62 # make ...__optional_arguments_... target=value
64 # Try uname -s if the target was not alreadhy set on the make command line
67 target
=$(shell uname
-s
2>/dev
/null
)
69 #endif /* end of skip for non-Gnu makefiles */
71 ##############################################################################
72 #-=-=-=-=-=-=-=-=- You may want to change some values below -=-=-=-=-=-=-=-=-#
73 ##############################################################################
75 # Determine the type of terminal controls that you want to use
79 # (nothing) let the Makefile guess at what you need
80 # -DUSE_TERMIOS use struct termios from <termios.h>
81 # -DUSE_TERMIO use struct termios from <termio.h>
82 # -DUSE_SGTTY use struct sgttyb from <sys/ioctl.h>
83 # -DUSE_NOTHING windoz system, don't use any of them
85 # Select TERMCONTROL= -DUSE_TERMIOS for DJGPP.
87 # If in doubt, leave TERMCONTROL empty.
90 #TERMCONTROL= -DUSE_TERMIOS
91 #TERMCONTROL= -DUSE_TERMIO
92 #TERMCONTROL= -DUSE_SGTTY
93 #TERMCONTROL= -DUSE_WIN32
95 # If your system does not have a vsprintf() function, you could be in trouble.
97 # vsprintf(string, format, ap)
99 # This function works like sprintf except that the 3rd arg is a va_list
100 # strarg (or varargs) list. Some old systems do not have vsprintf().
101 # If you do not have vsprintf(), then calc will try sprintf() and hope
104 # A simular problem occurs if your system does not have a vsnprintf()
105 # function. This function is like the vsprintf() function except that
106 # there is an extra second argument that controls the maximum size
107 # string that is produced.
109 # If HAVE_VSPRINTF is empty, this Makefile will run the have_stdvs.c and/or
110 # have_varvs.c program to determine if vsprintf() is supported. If
111 # HAVE_VSPRINTF is set to -DDONT_HAVE_VSPRINTF then calc will hope that
112 # sprintf() will work.
114 # If in doubt, leave HAVE_VSPRINTF empty.
117 #HAVE_VSPRINTF= -DDONT_HAVE_VSPRINTF
119 # Determine the byte order of your machine
121 # Big Endian: Amdahl, 68k, Pyramid, Mips, Sparc, ...
122 # Little Endian: Vax, 32k, Spim (Dec Mips), i386, i486, ...
124 # If in doubt, leave CALC_BYTE_ORDER empty. This Makefile will attempt to
125 # use BYTE_ORDER in <machine/endian.h> or it will attempt to run
126 # the endian program. If you get syntax errors when you compile,
127 # try forcing the value to be -DBIG_ENDIAN and run the calc regression
128 # tests. (see the README file) If the calc regression tests fail, do
129 # a make clobber and try -DCALC_LITTLE_ENDIAN. If that fails, ask a wizard
132 # Select CALC_BYTE_ORDER= -DCALC_LITTLE_ENDIAN for DJGPP.
135 #CALC_BYTE_ORDER= -DBIG_ENDIAN
136 #CALC_BYTE_ORDER= -DLITTLE_ENDIAN
138 # Determine the number of bits in a long
140 # If in doubt, leave LONG_BITS empty. This Makefile will run
141 # the longbits program to determine the length.
143 # In order to avoid make brain damage in some systems, we avoid placing
144 # a space after the ='s below.
146 # Select LONG_BITS= 32 for DJGPP.
152 # Determine if we have the ANSI C fgetpos and fsetpos alternate interface
153 # to the ftell() and fseek() (with whence set to SEEK_SET) functions.
155 # If HAVE_FPOS is empty, this Makefile will run the have_fpos program
156 # to determine if there is are fgetpos and fsetpos functions. If HAVE_FPOS
157 # is set to -DHAVE_NO_FPOS, then calc will use ftell() and fseek().
159 # If in doubt, leave HAVE_FPOS empty and this Makefile will figure it out.
162 #HAVE_FPOS= -DHAVE_NO_FPOS
164 # Determine if we have an __pos element of a file position (fpos_t) structure.
166 # If HAVE_FPOS_POS is empty, this Makefile will run the have_fpos_pos program
167 # to determine if fpos_t has a __pos structure element. If HAVE_FPOS_POS
168 # is set to -DHAVE_NO_FPOS_POS, then calc assume there is no __pos element.
170 # Select HAVE_FPOS_POS= -DHAVE_NO_FPOS_POS for DJGPP.
172 # If in doubt, leave HAVE_FPOS_POS empty and this Makefile will figure it out.
175 #HAVE_FPOS_POS= -DHAVE_NO_FPOS_POS
177 # Determine the size of the __pos element in fpos_t, if it exists.
179 # If FPOS_POS_BITS is empty, then the Makefile will determine the size of
180 # the file position value of the __pos element.
182 # If there is no __pos element in fpos_t (say because fpos_t is a scalar),
183 # leave FPOS_POS_BITS blank.
185 # If in doubt, leave FPOS_POS_BITS empty and this Makefile will figure it out.
191 # Determine the size of a file position value.
193 # If FPOS_BITS is empty, then the Makefile will determine the size of
194 # the file position value.
196 # Select FPOS_BITS= 32 for DJGPP.
198 # If in doubt, leave FPOS_BITS empty and this Makefile will figure it out.
204 # Determine the size of the off_t file offset element
206 # If OFF_T_BITS is empty, then the Makefile will determine the size of
207 # the file offset value.
209 # Select OFF_T_BITS= 32 for DJGPP.
211 # If in doubt, leave OFF_T_BITS empty and this Makefile will figure it out.
217 # Determine the size of the dev_t device value
219 # If DEV_BITS is empty, then the Makefile will determine the size of
220 # the dev_t device value
222 # Select DEV_BITS= 32 for DJGPP.
224 # If in doubt, leave DEV_BITS empty and this Makefile will figure it out.
231 # Determine the size of the ino_t device value
233 # If INODE_BITS is empty, then the Makefile will determine the size of
234 # the ino_t inode value
236 # Select INODE_BITS= 32 for DJGPP.
238 # If in doubt, leave INODE_BITS empty and this Makefile will figure it out.
245 # Determine if we have an off_t which one can perform arithmetic operations,
246 # assignments and comparisons. On some systems off_t is some sort of union
249 # If HAVE_OFFSCL is empty, this Makefile will run the have_offscl program
250 # to determine if off_t is a scalar. If HAVE_OFFSCL is set to the value
251 # -DOFF_T_NON_SCALAR when calc will assume that off_t some sort of
252 # union or struct which.
254 # If in doubt, leave HAVE_OFFSCL empty and this Makefile will figure it out.
257 #HAVE_OFFSCL= -DOFF_T_NON_SCALAR
259 # Determine if we have an fpos_t which one can perform arithmetic operations,
260 # assignments and comparisons. On some systems fpos_t is some sort of union
261 # or struct. Some systems do not have an fpos_t and long is as a file
264 # If HAVE_POSSCL is empty, this Makefile will run the have_offscl program
265 # to determine if off_t is a scalar, or if there is no off_t and long
266 # (a scalar) should be used instead. If HAVE_POSSCL is set to the value
267 # -DFILEPOS_NON_SCALAR when calc will assume that fpos_t exists and is
268 # some sort of union or struct which.
270 # If in doubt, leave HAVE_POSSCL empty and this Makefile will figure it out.
273 #HAVE_POSSCL= -DFILEPOS_NON_SCALAR
275 # Determine if we have ANSI C const.
277 # If HAVE_CONST is empty, this Makefile will run the have_const program
278 # to determine if const is supported. If HAVE_CONST is set to -DHAVE_NO_CONST,
279 # then calc will not use const.
281 # If in doubt, leave HAVE_CONST empty and this Makefile will figure it out.
284 #HAVE_CONST= -DHAVE_NO_CONST
286 # Determine if we have uid_t
288 # If HAVE_UID_T is empty, this Makefile will run the have_uid_t program
289 # to determine if const is supported. If HAVE_UID_T is set to -DHAVE_NO_UID_T,
290 # then calc will treat uid_t as an unsigned short. This only matters if
291 # $HOME is not set and calc must look up the home directory in /etc/passwd.
293 # If in doubt, leave HAVE_UID_T empty and this Makefile will figure it out.
296 #HAVE_UID_T= -DHAVE_NO_UID_T
298 # Determine if we have memcpy(), memset() and strchr()
300 # If HAVE_NEWSTR is empty, this Makefile will run the have_newstr program
301 # to determine if memcpy(), memset() and strchr() are supported. If
302 # HAVE_NEWSTR is set to -DHAVE_NO_NEWSTR, then calc will use bcopy() instead
303 # of memcpy(), use bfill() instead of memset(), and use index() instead of
306 # If in doubt, leave HAVE_NEWSTR empty and this Makefile will figure it out.
309 #HAVE_NEWSTR= -DHAVE_NO_NEWSTR
311 # Determine if we have memmove()
313 # If HAVE_MEMMOVE is empty, this Makefile will run the have_memmv program
314 # to determine if memmove() is supported. If HAVE_MEMMOVE is set to
315 # -DHAVE_NO_MEMMOVE, then calc will use internal functions to simulate
316 # the memory move function that does correct overlapping memory modes.
318 # If in doubt, leave HAVE_MEMMOVE empty and this Makefile will figure it out.
321 #HAVE_MEMMOVE= -DHAVE_NO_MEMMOVE
323 # Determine if we have ustat()
325 # If HAVE_USTAT is empty, this Makefile will run the have_memmv program
326 # to determine if ustat() is supported. If HAVE_USTAT is set to
327 # -DHAVE_NO_USTAT, then calc will use internal functions to simulate
328 # the memory move function that does correct overlapping memory modes.
330 # Select HAVE_USTAT= -DHAVE_NO_USTAT for DJGPP.
332 # If in doubt, leave HAVE_USTAT empty and this Makefile will figure it out.
335 #HAVE_USTAT= -DHAVE_NO_USTAT
337 # Determine if we have getsid()
339 # If HAVE_GETSID is empty, this Makefile will run the have_memmv program
340 # to determine if getsid() is supported. If HAVE_GETSID is set to
341 # -DHAVE_NO_GETSID, then calc will use internal functions to simulate
342 # the memory move function that does correct overlapping memory modes.
344 # Select HAVE_GETSID= -DHAVE_NO_GETSID for DJGPP.
346 # If in doubt, leave HAVE_GETSID empty and this Makefile will figure it out.
349 #HAVE_GETSID= -DHAVE_NO_GETSID
351 # Determine if we have getpgid()
353 # If HAVE_GETPGID is empty, this Makefile will run the have_memmv program
354 # to determine if getpgid() is supported. If HAVE_GETPGID is set to
355 # -DHAVE_NO_GETPGID, then calc will use internal functions to simulate
356 # the memory move function that does correct overlapping memory modes.
358 # Select HAVE_GETPGID= -DHAVE_NO_GETPGID for DJGPP.
360 # If in doubt, leave HAVE_GETPGID empty and this Makefile will figure it out.
363 #HAVE_GETPGID= -DHAVE_NO_GETPGID
365 # Determine if we have clock_gettime()
367 # If HAVE_GETTIME is empty, this Makefile will run the have_memmv program
368 # to determine if clock_gettime() is supported. If HAVE_GETTIME is set to
369 # -DHAVE_NO_GETTIME, then calc will use internal functions to simulate
370 # the memory move function that does correct overlapping memory modes.
372 # Select HAVE_GETTIME= -DHAVE_NO_GETTIME for DJGPP.
374 # If in doubt, leave HAVE_GETTIME empty and this Makefile will figure it out.
377 #HAVE_GETTIME= -DHAVE_NO_GETTIME
379 # Determine if we have getprid()
381 # If HAVE_GETPRID is empty, this Makefile will run the have_memmv program
382 # to determine if getprid() is supported. If HAVE_GETPRID is set to
383 # -DHAVE_NO_GETPRID, then calc will use internal functions to simulate
384 # the memory move function that does correct overlapping memory modes.
386 # Select HAVE_GETPRID= -DHAVE_NO_GETPRID for DJGPP.
388 # If in doubt, leave HAVE_GETPRID empty and this Makefile will figure it out.
391 #HAVE_GETPRID= -DHAVE_NO_GETPRID
393 # Determine if we have the /dev/urandom
395 # HAVE_URANDOM_H= let the Makefile look /dev/urandom
396 # HAVE_URANDOM_H= YES assume that /dev/urandom exists
397 # HAVE_URANDOM_H= NO assume that /dev/urandom does not exist
399 # Select HAVE_URANDOM_H= NO for DJGPP.
401 # When in doubt, leave HAVE_URANDOM_H empty.
407 # Determine if we have getrusage()
409 # If HAVE_GETRUSAGE is empty, this Makefile will run the have_memmv program
410 # to determine if getrusage() is supported. If HAVE_GETRUSAGE is set to
411 # -DHAVE_NO_GETRUSAGE, then calc will use internal functions to simulate
412 # the memory move function that does correct overlapping memory modes.
414 # If in doubt, leave HAVE_GETRUSAGE empty and this Makefile will figure it out.
417 #HAVE_GETRUSAGE= -DHAVE_NO_GETRUSAGE
419 # Determine if we have strdup()
421 # If HAVE_STRDUP is empty, this Makefile will run the have_memmv program
422 # to determine if strdup() is supported. If HAVE_STRDUP is set to
423 # -DHAVE_NO_STRDUP, then calc will use internal functions to simulate
424 # the memory move function that does correct overlapping memory modes.
426 # If in doubt, leave HAVE_STRDUP empty and this Makefile will figure it out.
429 #HAVE_STRDUP= -DHAVE_NO_STRDUP
431 # Some architectures such as Sparc do not allow one to access 32 bit values
432 # that are not alligned on a 32 bit boundary.
434 # The Dec Alpha running OSF/1 will produce alignment error messages when
435 # align32.c tries to figure out if alignment is needed. Use the
436 # ALIGN32= -DMUST_ALIGN32 to force alignment and avoid such error messages.
438 # ALIGN32= let align32.c figure out if alignment is needed
439 # ALIGN32= -DMUST_ALIGN32 force 32 bit alignment
440 # ALIGN32= -UMUST_ALIGN32 allow non-alignment of 32 bit accesses
442 # Select ALIGN32= -UMUST_ALIGN32 for DJGPP.
444 # When in doubt, be safe and pick ALIGN32=-DMUST_ALIGN32.
447 #ALIGN32= -DMUST_ALIGN32
448 #ALIGN32= -UMUST_ALIGN32
450 # Determine if we have the <stdlib.h> include file.
452 # HAVE_STDLIB_H= let the Makefile look for the include file
453 # HAVE_STDLIB_H= YES assume that the include file exists
454 # HAVE_STDLIB_H= NO assume that the include file does not exist
456 # Select HAVE_STDLIB_H= YES for DJGPP.
458 # When in doubt, leave HAVE_STDLIB_H empty.
464 # Determine if we have the <string.h> include file.
466 # HAVE_STRING_H= let the Makefile look for the include file
467 # HAVE_STRING_H= YES assume that the include file exists
468 # HAVE_STRING_H= NO assume that the include file does not exist
470 # Select HAVE_STRING_H= YES for DJGPP.
472 # When in doubt, leave HAVE_STRING_H empty.
478 # Determine if we have the <times.h> include file.
480 # HAVE_TIMES_H= let the Makefile look for the include file
481 # HAVE_TIMES_H= YES assume that the include file exists
482 # HAVE_TIMES_H= NO assume that the include file does not exist
484 # Select HAVE_TIMES_H= NO for DJGPP.
486 # When in doubt, leave HAVE_TIMES_H empty.
492 # Determine if we have the <sys/times.h> include file.
494 # HAVE_SYS_TIMES_H= let the Makefile look for the include file
495 # HAVE_SYS_TIMES_H= YES assume that the include file exists
496 # HAVE_SYS_TIMES_H= NO assume that the include file does not exist
498 # Select HAVE_SYS_TIMES_H= YES for DJGPP.
500 # When in doubt, leave HAVE_SYS_TIMES_H empty.
503 #HAVE_SYS_TIMES_H= YES
504 #HAVE_SYS_TIMES_H= NO
506 # Determine if we have the <time.h> include file.
508 # HAVE_TIME_H= let the Makefile look for the include file
509 # HAVE_TIME_H= YES assume that the include file exists
510 # HAVE_TIME_H= NO assume that the include file does not exist
512 # Select HAVE_TIME_H= YES for DJGPP.
514 # When in doubt, leave HAVE_TIME_H empty.
520 # Determine if we have the <sys/time.h> include file.
522 # HAVE_SYS_TIME_H= let the Makefile look for the include file
523 # HAVE_SYS_TIME_H= YES assume that the include file exists
524 # HAVE_SYS_TIME_H= NO assume that the include file does not exist
526 # Select HAVE_SYS_TIME_H= YES for DJGPP.
528 # When in doubt, leave HAVE_SYS_TIME_H empty.
531 #HAVE_SYS_TIME_H= YES
534 # Determine if we have the <unistd.h> include file.
536 # HAVE_UNISTD_H= let the Makefile look for the include file
537 # HAVE_UNISTD_H= YES assume that the include file exists
538 # HAVE_UNISTD_H= NO assume that the include file does not exist
540 # Select HAVE_UNISTD_H= YES for DJGPP.
542 # When in doubt, leave HAVE_UNISTD_H empty.
548 # Determine if our compiler allows the -Wno-implicit flag
550 # HAVE_NO_IMPLICIT= let the Makefile test the -Wno-implicit flag
551 # HAVE_NO_IMPLICIT= NO Our compiler does not have -Wno-implicit flags
552 # HAVE_NO_IMPLICIT= YES Our compiler has a -Wno-implicit flag
554 # Select HAVE_NO_IMPLICIT= for DJGPP.
557 # HAVE_NO_IMPLICIT= NO
558 # HAVE_NO_IMPLICIT= YES
560 # Determine if our compiler allows the unused attribute
562 # If HAVE_UNUSED is empty, this Makefile will run the have_unused program
563 # to determine if the unused attribute is supported. If HAVE_UNUSED is set to
564 # -DHAVE_NO_UNUSED, then the unused attribute will not be used.
566 # Select HAVE_UNUSED= for DJGPP.
568 # If in doubt, leave HAVE_UNUSED empty and this Makefile will figure it out.
571 #HAVE_UNUSED= -DHAVE_NO_UNUSED
573 # System include files
575 # ${INCDIR} where the system include (.h) files are kept
579 # INCDIR= /dev/env/DJDIR/include
583 # INCDIR= /usr/include
586 #INCDIR= /usr/local/include
587 #INCDIR= /dev/env/DJDIR/include
590 # Where to install calc realted things
592 # ${BINDIR} where to install calc binary files
593 # ${LIBDIR} where calc link library (*.a) files are installed
594 # ${CALC_SHAREDIR} where to install calc help, .cal, startup, config files
595 # ${CALC_INCDIR} where the calc include files are installed
597 # NOTE: The install rule prepends installation paths with ${T}, which
598 # by default is empty. If ${T} is non-empty, then installation
599 # locations will be relative to the ${T} directory.
601 # NOTE: If you change LIBDIR to a non-standard location, you will need
602 # to make changes to your execution environment so that executables
603 # will search LIBDIR when they are resolving dynamic shared libraries.
605 # On OS X, this means you need to export $DYLD_LIBRARY_PATH
606 # to include the LIBDIR path in the value.
608 # On Linux and BSD, this means you need to export $LD_LIBRARY_PATH
609 # to include the LIBDIR path in the value.
611 # You might be better off not changing LIBDIR in the first place.
615 # BINDIR= /dev/env/DJDIR/bin
616 # LIBDIR= /dev/env/DJDIR/lib
617 # CALC_SHAREDIR= /dev/env/DJDIR/share/calc
623 # CALC_SHAREDIR= /usr/share/calc
625 #BINDIR= /usr/local/bin
626 #BINDIR= /dev/env/DJDIR/bin
629 #LIBDIR= /usr/local/lib
630 #LIBDIR= /dev/env/DJDIR/lib
633 #CALC_SHAREDIR= /usr/local/lib/calc
634 #CALC_SHAREDIR= /dev/env/DJDIR/share/calc
635 CALC_SHAREDIR
= /usr
/share
/calc
637 # NOTE: Do not set CALC_INCDIR to /usr/include or /usr/local/include!!!
638 # Always be sure that the CALC_INCDIR path ends in /calc to avoid
639 # conflicts with system or other application include files!!!
641 #CALC_INCDIR= /usr/local/include/calc
642 #CALC_INCDIR= /dev/env/DJDIR/include/calc
643 CALC_INCDIR
= ${INCDIR}/calc
645 # By default, these values are based CALC_SHAREDIR, INCDIR, BINDIR
646 # ---------------------------------------------------------------
647 # ${HELPDIR} where the help directory is installed
648 # ${CUSTOMCALDIR} where custom *.cal files are installed
649 # ${CUSTOMHELPDIR} where custom help files are installed
650 # ${CUSTOMINCDIR} where custom .h files are installed
651 # ${SCRIPTDIR} where calc shell scripts are installed
653 # NOTE: The install rule prepends installation paths with ${T}, which
654 # by default is empty. If ${T} is non-empty, then installation
655 # locations will be relative to the ${T} directory.
659 # HELPDIR= ${CALC_SHAREDIR}/help
660 # CALC_INCDIR= ${INCDIR}/calc
661 # CUSTOMCALDIR= ${CALC_SHAREDIR}/custom
662 # CUSTOMHELPDIR= ${CALC_SHAREDIR}/custhelp
663 # CUSTOMINCDIR= ${CALC_INCDIR}/custom
664 # SCRIPTDIR= ${BINDIR}/cscript
666 HELPDIR
= ${CALC_SHAREDIR}/help
667 CUSTOMCALDIR
= ${CALC_SHAREDIR}/custom
668 CUSTOMHELPDIR
= ${CALC_SHAREDIR}/custhelp
669 CUSTOMINCDIR
= ${CALC_INCDIR}/custom
670 SCRIPTDIR
= ${BINDIR}/cscript
672 # T - top level directory under which calc will be installed
674 # The calc install is performed under ${T}, the calc build is
675 # performed under /. The purpose for ${T} is to allow someone
676 # to install calc somewhere other than into the system area.
682 # CALC_SHAREDIR= /usr/share/calc
686 # T= /var/tmp/testing
688 # Then the installation locations will be:
690 # calc binary files: /var/tmp/testing/usr/bin
691 # calc link library: /var/tmp/testing/usr/lib
692 # calc help, .cal ...: /var/tmp/testing/usr/share/calc
693 # ... etc ... /var/tmp/testing/...
695 # If ${T} is empty, calc is installed under /, which is the same
696 # top of tree for which it was built. If ${T} is non-empty, then
697 # calc is installed under ${T}, as if one had to chroot under
698 # ${T} for calc to operate.
700 # If in doubt, use T=
704 # where man pages are installed
706 # Select MANDIR= /dev/env/DJDIR/man/man1 for DJGPP.
708 # Use MANDIR= to disable installation of the calc man (source) page.
711 #MANDIR= /usr/local/man/man1
712 #MANDIR= /usr/man/man1
713 MANDIR
= /usr
/share
/man
/man1
714 #MANDIR= /dev/env/DJDIR/man/man1
715 #MANDIR= /usr/man/u_man/man1
716 #MANDIR= /usr/contrib/man/man1
718 # where cat (formatted man) pages are installed
720 # Select CATDIR= /dev/env/DJDIR/man/cat1 for DJGPP.
722 # Use CATDIR= to disable installation of the calc cat (formatted) page.
725 #CATDIR= /usr/local/man/cat1
726 #CATDIR= /usr/local/catman/cat1
727 #CATDIR= /usr/man/cat1
728 #CATDIR= /usr/share/man/cat1
729 #CATDIR= /dev/env/DJDIR/man/cat1
730 #CATDIR= /var/cache/man/cat1
731 #CATDIR= /usr/man/u_man/cat1
732 #CATDIR= /usr/contrib/man/cat1
734 # extension to add on to the calc man page filename
736 # This is ignored if CATDIR is empty.
741 # extension to add on to the calc man page filename
743 # This is ignored if CATDIR is empty.
750 # how to format a man page
752 # If CATDIR is non-empty, then
754 # If NROFF is non-empty, then
756 # ${NROFF} ${NROFF_ARG} calc.1 > ${CATDIR}/calc.${CATEXT}
757 # is used to built and install the cat page
759 # else (NROFF is empty)
761 # ${MANMAKE} calc.1 ${CATDIR}
762 # is used to built and install the cat page
765 # The cat page is not built or installed
767 # Select NROFF= groff for DJGPP.
769 # If in doubt and you don't want to fool with man pages, set MANDIR
770 # and CATDIR to empty and ignore the NROFF, NROFF_ARG and MANMAKE
778 MANMAKE
= /usr
/local
/bin
/manmake
783 # By default, custom builtin functions may only be executed if calc
784 # is given the -C option. This is because custom builtin functions
785 # may invoke non-standard or non-portable code. One may completely
786 # disable custom builtin functions by not compiling any of code
788 # ALLOW_CUSTOM= -DCUSTOM # allow custom only if -C is given
789 # ALLOW_CUSTOM= # disable custom even if -C is given
791 # If in doubt, use ALLOW_CUSTOM= -DCUSTOM
793 ALLOW_CUSTOM
= -DCUSTOM
796 # If the $CALCPATH environment variable is not defined, then the following
797 # path will be search for calc resource file routines.
799 # Select CALCPATH= .;./cal;~/.cal;${CALC_SHAREDIR};${CUSTOMCALDIR} for DJGPP.
801 #if 0 /* start of skip for non-Gnu makefiles */
803 #endif /* end of skip for non-Gnu makefiles */
804 CALCPATH
= .
:.
/cal
:~
/.cal
:${CALC_SHAREDIR}:${CUSTOMCALDIR}
805 #if 0 /* start of skip for non-Gnu makefiles */
807 CALCPATH
= .
:.
/cal
:~
/.cal
:${CALC_SHAREDIR}
809 #endif /* end of skip for non-Gnu makefiles */
811 # If the $CALCRC environment variable is not defined, then the following
812 # path will be search for calc resource files.
814 # Select CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit for DJGPP.
816 CALCRC
= ${CALC_SHAREDIR}/startup
:~
/.calcrc
:.
/.calcinit
817 #CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit
819 # Determine of the GNU-readline facility will be used instead of the
820 # built-in calc binding method.
822 # USE_READLINE= Do not use GNU-readline, use calc bindings
823 # USE_READLINE= -DUSE_READLINE Use GNU-readline, do not use calc bindings
825 # NOTE: If you select the 'USE_READLINE= -DUSE_READLINE' mode, you must set:
827 # READLINE_LIB The flags needed to link in the readline
828 # and history link libraries
829 # READLINE_EXTRAS Flags and libs needed to use the readline
830 # and history link libraries
831 # READLINE_INCLUDE Where the readline include files reside
832 # (leave blank if they are /usr/include/readline)
834 # NOTE: The GNU-readline code is not shipped with calc. You must have
835 # the appropriate headers and link libs installed on your system in
838 # If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
841 #USE_READLINE= -DUSE_READLINE
846 #READLINE_LIB= -lreadline
847 #READLINE_EXTRAS= -lhistory -lncurses
849 #READLINE_LIB= -L/usr/gnu/lib -lreadline
850 #READLINE_EXTRAS= -lhistory -lncurses
852 #READLINE_LIB= -L/usr/local/lib -lreadline
853 #READLINE_EXTRAS= -lhistory -lncurses
855 # For Apple OS X: install fink from http://fink.sourceforge.net
856 # and then do a 'fink install readline' and then use:
858 #READLINE_LIB= -L/sw/lib -lreadline
859 #READLINE_EXTRAS= -lhistory -lncurses
862 #READLINE_INCLUDE= -I/usr/gnu/include
863 #READLINE_INCLUDE= -I/usr/local/include
865 # If $PAGER is not set, use this program to display a help file
867 # Select CALCPAGER= less.exe -ci for DJGPP.
873 #CALCPAGER= less.exe -ci
875 # Debug/Optimize options for ${CC} and ${LCC}
877 # Select DEBUG= -O2 -gstabs+ -DWINDOZ for DJGPP.
903 # Some systems require one to use ranlib to add a symbol table to
904 # a *.a link library. Set RANLIB to the utility that performs this
905 # action. Set RANLIB to : if your system does not need such a utility.
910 # Normally certain files depend on the Makefile. If the Makefile is
911 # changed, then certain steps should be redone. If MAKE_FILE is
912 # set to Makefile, then these files will depend on Makefile. If
913 # MAKE_FILE is empty, then they wont.
915 # If in doubt, set MAKE_FILE to Makefile
919 # Controlling file makefile basename (without the path)
921 # This is the basename same of the makefile that may/does/will drive
924 # If in doubt, set TOP_MAKE_FILE to Makefile
926 TOP_MAKE_FILE
= Makefile
928 # If you do not wish to use purify, set PURIFY to an empty string.
930 # If in doubt, use PURIFY=
933 #PURIFY= purify -m71-engine
934 #PURIFY= purify -logfile=pure.out
935 #PURIFY= purify -m71-engine -logfile=pure.out
938 # If you want to use a debugging link library such as a malloc debug link
939 # library, or need to add special ld flags after the calc link libraries
940 # are included, set ${LD_DEBUG} below.
942 # If in doubt, set LD_DEBUG to empty.
944 #LD_DEBUG= -lmalloc_cv
953 # the ${CALC_ENV} is used to supply the proper environment variables
954 # to calc. Most people will simply need 'CALCPATH=./cal' to ensure
955 # that these debug rules will only use calc resource files under the
956 # local source directory. The longer lines (with MALLOC_VERBOSE=1 ...)
957 # are useful for SGI IRIX people who have 'WorkShop Performance Tools'
958 # and who also set 'LD_DEBUG= -lmalloc_cv' above.
960 # If in doubt, use CALC_ENV= CALCPATH=./cal LD_LIBRARY_PATH=.:./custom
962 CALC_ENV
= CALCPATH
=.
/cal LD_LIBRARY_PATH
=.
963 #CALC_ENV= CALCPATH=./cal MALLOC_VERBOSE=1 MALLOC_TRACING=1 \
964 # MALLOC_FASTCHK=1 MALLOC_FULLWARN=1 LD_LIBRARY_PATH=.:./custom
965 #CALC_ENV= CALCPATH=./cal MALLOC_VERBOSE=1 MALLOC_TRACING=1 \
966 # MALLOC_FASTCHK=1 MALLOC_FULLWARN=1 MALLOC_CLEAR_FREE=1 \
967 # MALLOC_CLEAR_MALLOC=1 LD_LIBRARY_PATH=.:./custom
970 # The install rule uses:
972 # ${MKDIR} ${MKDIR_ARG}
974 # to create directorties. Normall this amounts to usins mkdir -p dir ...
975 # Some older systems may not have mkdir -p. If you system does not
976 # make mkdir -p, then set MKDIR_ARG to empty.
978 # MKDIR_ARG= -p # use mkdir -p when creating paths
979 # MKDIR_ARG= # use if system does not understand mkdir -p
984 # Some out of date operating systems require / want an executable to
985 # end with a certain file extension. Some compile systems such as
986 # windoz build calc as calc.exe. The EXT variable is used to denote
987 # the extension required by such. Note that Cygwin requires EXT to be
988 # the same as Linux/Un*x/GNU, even though it runs under windoz.
990 # EXT= # normal Un*x / Linux / GNU/Linux / Cygwin
993 # If in doubt, use EXT=
998 # The default calc versions
1005 # Names of shared libraries with versions
1008 LIB_EXT_VERSION
= ${LIB_EXT}.
${VERSION}
1009 LIB_EXT_VERS
= ${LIB_EXT}.
${VERS}
1010 LIB_EXT_VER
= ${LIB_EXT}.
${VER}
1011 LIB_EXT_VE
= ${LIB_EXT}.
${VE}
1013 # standard utilities used during make
1044 # assume the X11 makedepend tool for the depend rule
1045 MAKEDEPEND
= makedepend
1048 # Extra compiling and linking flags
1050 # EXTRA_CFLAGS are flags given to ${CC} when compiling C files
1051 # EXTRA_LDFLAGS are flags given to ${CC} when linking progs
1053 # Both CFLAGS and LDFLAGS are left blank in this Makefile by
1054 # default so that users may use them on the make command line
1055 # to always the way that C is compiled and files are linked
1056 # respectively. For example:
1058 # make all EXTRA_CFLAGS="-DMAGIC" EXTRA_LDFLAGS="-lmagic"
1060 # NOTE: These should be left blank in this Makefile to make it
1061 # easier to add stuff on the command line. If you want to
1062 # to change the way calc is compiled by this Makefile, change
1063 # the appropirate host target section below or a flag above.
1068 # COMMON_CFLAGS are the common ${CC} flags used for all progs, both
1069 # intermediate and final calc and calc related progs
1071 #if 0 /* start of skip for non-Gnu makefiles */
1073 #endif /* end of skip for non-Gnu makefiles */
1074 COMMON_CFLAGS
= -DCALC_SRC
${ALLOW_CUSTOM} ${CCWARN} ${CCMISC} ${EXTRA_CFLAGS}
1075 #if 0 /* start of skip for non-Gnu makefiles */
1077 COMMON_CFLAGS
= -DCALC_SRC
-UCUSTOM
${CCWARN} ${CCMISC} ${EXTRA_CFLAGS}
1079 #endif /* end of skip for non-Gnu makefiles */
1081 # COMMON_LDFLAGS are the common flags used for linking all progs, both
1082 # intermediate and final calc and calc related progs
1084 COMMON_LDFLAGS
= ${EXTRA_LDFLAGS}
1086 # start of host target cut - Do not remove this line
1087 ##############################################################################
1088 #-=-=-=-=-=- host target section - targets that override defaults -=-=-=-=-=-#
1089 ##############################################################################
1091 # Common values set in targets
1093 # BLD_TYPE determines if calc is built with static and/or dynamic libs.
1094 # Set this value to one of:
1096 # BLD_TYPE= calc-dynamic-only
1097 # BLD_TYPE= calc-static-only
1099 # CC_SHARE are flags given to ${CC} to build .o files suitable for shared libs
1100 # DEFAULT_LIB_INSTALL_PATH is where calc progs look for calc shared libs
1101 # LD_SHARE are common flags given to ${CC} to link with shared libraries
1102 # LIBCALC_SHLIB are flags given to ${CC} to build libcalc shared lib
1103 # LIBCUSTCALC_SHLIB are flags given to ${CC} to build libcustcalc shared lib
1105 # NOTE: The above 4 values are unused if BLD_TYPE= calc-static-only
1107 # CC_STATIC are flags given to ${CC} to build .o files suitable for static libs
1108 # LD_STATIC are common flags given to ${CC} to link with static libraries
1109 # LIBCALC_STATIC are flags given to ${CC} to build libcalc static lib
1110 # LIBCUSTCALC_STATIC are flags given to ${CC} to build libcustcalc static lib
1112 # NOTE: The above 4 values are unused if BLD_TYPE= calc-dynamic-only
1114 # CCOPT are flags given to ${CC} for optimization
1115 # CCWARN are flags given to ${CC} for warning message control
1116 # CCWERR are flags given to ${CC} to make warnings fatal errors
1117 # NOTE: CCWERR is only set in development Makefiles and must only be
1118 # used with ${CC}, not ${LCC}. If you do not want the compiler
1119 # to abort on warnings, then leave CCWERR blank.
1120 # CCMISC are misc flags given to ${CC}
1122 # LCC how the C compiler is invoked on locally executed intermediate progs
1123 # CC is how the C compiler is invoked (with an optional Purify)
1125 # Specific target overrides or modifications to default values
1127 ##########################################################################
1128 # NOTE: If your target is not supported below and the default target #
1129 # is not suitable for your needs, please send to the: #
1131 # calc-contrib at asthe dot com #
1133 # EMail address an "ifeq ($(target),YOUR_TARGET_NAME)" ... "endif" #
1134 # set of lines so that we can consider them for the next release. #
1135 ##########################################################################
1137 #if 0 /* start of skip for non-Gnu makefiles */
1142 ifeq ($(target
),Linux
)
1144 BLD_TYPE
= calc-dynamic-only
1147 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:/lib
:/usr
/lib
:${LIBDIR}:/usr
/local
/lib
1148 LD_SHARE
= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1149 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1150 LIBCALC_SHLIB
= -shared
"-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1152 LIBCUSTCALC_SHLIB
= -shared
"-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1162 CCWARN
= -Wall
-W
-Wno-comment
1168 CC
= ${PURIFY} ${LCC} ${CCWERR}
1172 #################################
1173 # Apple MacOS X / Darwin target #
1174 #################################
1176 ifeq ($(target
),Darwin
)
1178 BLD_TYPE
= calc-dynamic-only
1181 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:${LIBDIR}:/usr
/local
/lib
1182 LD_SHARE
= ${DARWIN_ARCH}
1183 LIBCALC_SHLIB
= -single_module
-undefined dynamic_lookup
-dynamiclib
1185 LIBCUSTCALC_SHLIB
= -single_module
-undefined dynamic_lookup
-dynamiclib
1191 LD_STATIC
= ${DARWIN_ARCH}
1195 CCWARN
= -Wall
-W
-Wno-comment
1198 CCMISC
= ${DARWIN_ARCH}
1200 LCC
= MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET} gcc
1201 CC
= ${PURIFY} ${LCC} ${CCWERR}
1203 # Darmin dynamic shared lib filenames
1205 LIB_EXT_VERSION
:= .
${VERSION}${LIB_EXT}
1206 LIB_EXT_VERS
:= .
${VERS}${LIB_EXT}
1207 LIB_EXT_VER
:= .
${VER}${LIB_EXT}
1208 LIB_EXT_VE
:= .
${VE}${LIB_EXT}
1209 # LDCONFIG not required on this platform, so we redefine it to an empty string
1211 # DARWIN_ARCH= -arch i386 -arch ppc # Universal binary
1212 # DARWIN_ARCH= -arch i386 # Intel binary
1213 # DARWIN_ARCH= -arch ppc # PPC binary
1214 DARWIN_ARCH
= # native binary
1215 MACOSX_DEPLOYMENT_TARGET
=10.8
1223 ########################################################################
1224 # NOTE: You MUST either use gmake (GNU Make) or you must try your luck #
1225 # with Makefile.simple and custom/Makefile.simple versions. #
1226 # See HOWTO.INSTALL for more information. #
1227 ########################################################################
1229 ifeq ($(target
),FreeBSD
)
1231 BLD_TYPE
= calc-dynamic-only
1234 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:/lib
:/usr
/lib
:${LIBDIR}:/usr
/local
/lib
1235 LD_SHARE
= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1236 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1237 LIBCALC_SHLIB
= -shared
"-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1239 LIBCUSTCALC_SHLIB
= -shared
"-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1249 CCWARN
= -Wall
-W
-Wno-comment
1255 CC
= ${PURIFY} ${LCC} ${CCWERR}
1265 ########################################################################
1266 # NOTE: You MUST either use gmake (GNU Make) or you must try your luck #
1267 # with Makefile.simple and custom/Makefile.simple versions. #
1268 # See HOWTO.INSTALL for more information. #
1269 ########################################################################
1271 ifeq ($(target
),OpenBSD
)
1273 BLD_TYPE
= calc-dynamic-only
1276 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:/lib
:/usr
/lib
:${LIBDIR}:/usr
/local
/lib
1277 LD_SHARE
= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1278 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1279 LIBCALC_SHLIB
= -shared
"-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1281 LIBCUSTCALC_SHLIB
= -shared
"-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1297 CC
= ${PURIFY} ${LCC} ${CCWERR}
1307 # XXX - this needs to be tested
1308 ifeq ($(target
),SunOS
)
1310 BLD_TYPE
= calc-dynamic-only
1313 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:/lib
:/usr
/lib
:${LIBDIR}:/usr
/local
/lib
1314 LD_SHARE
= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1315 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1316 LIBCALC_SHLIB
= -shared
"-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1318 LIBCUSTCALC_SHLIB
= -shared
"-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1328 CCWARN
= -Wall
-W
-Wno-comment
1334 CC
= ${PURIFY} ${LCC} ${CCWERR}
1342 ifeq ($(target
),Cygwin
)
1344 BLD_TYPE
= calc-static-only
1347 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:/lib
:/usr
/lib
:${LIBDIR}:/usr
/local
/lib
1348 LD_SHARE
= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1349 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1350 LIBCALC_SHLIB
= -shared
"-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1352 LIBCUSTCALC_SHLIB
= -shared
"-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1362 CCWARN
= -Wall
-W
-Wno-comment
1368 CC
= ${PURIFY} ${LCC} ${CCWERR}
1372 #######################################################
1373 # simple target - values used to form Makefile.simple #
1374 #######################################################
1376 # NOTE: This is not a real host target. The simple target
1377 # exists only to form the Makefile.simple file.
1379 ifeq ($(target
),simple
)
1380 #endif /* end of skip for non-Gnu makefiles */
1382 BLD_TYPE
= calc-static-only
1385 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:/lib
:/usr
/lib
:${LIBDIR}:/usr
/local
/lib
1386 LD_SHARE
= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1387 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1388 LIBCALC_SHLIB
= -shared
"-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1389 LIBCUSTCALC_SHLIB
= -shared
"-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1396 CCWARN
= -Wall
-W
-Wno-comment
1402 CC
= ${PURIFY} ${LCC} ${CCWERR}
1404 # The simple makefile forces the use of static ${CC} flags
1406 # ICFLAGS are given to ${CC} for intermediate progs used to help compile calc
1407 # CFLAGS are given to ${CC} for calc progs other than intermediate progs
1408 # ILDFLAGS for ${CC} in linking intermediate progs used to help compile calc
1409 # LDFLAGS for ${CC} in linking calc progs other than intermediate progs
1411 ICFLAGS
= ${COMMON_CFLAGS} ${CC_STATIC}
1412 CFLAGS
= ${ICFLAGS} ${CCOPT}
1414 ILDFLAGS
= ${COMMON_LDFLAGS} ${LD_STATIC}
1415 LDFLAGS
= ${LD_DEBUG} ${ILDFLAGS} ${LIBCALC_STATIC} ${LIBCUSTCALC_STATIC}
1417 #if 0 /* start of skip for non-Gnu makefiles */
1420 ###################################################
1421 # MINGW32_NT-5.0 target #
1422 ###################################################
1425 ifeq ($(target
),MINGW32_NT-5.0
)
1428 TERMCONTROL
= -DUSE_WIN32
1430 #endif /* end of skip for non-Gnu makefiles */
1431 CALCPATH
= .
;.
/cal
;~
/.cal
;${CALC_SHAREDIR};${CUSTOMCALDIR}
1432 #if 0 /* start of skip for non-Gnu makefiles */
1434 CALCPATH
= .
;.
/cal
;~
/.cal
;${CALC_SHAREDIR}
1436 CALCRC
= ${CALC_SHAREDIR}/startup
;~
/.calcrc
;.
/.calcinit
1438 BLD_TYPE
= calc-static-only
1441 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:/lib
:/usr
/lib
:${LIBDIR}:/usr
/local
/lib
1442 LD_SHARE
= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1443 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1444 LIBCALC_SHLIB
= -shared
"-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1446 LIBCUSTCALC_SHLIB
= -shared
"-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1451 CC_STATIC
= -DSTATIC_ONLY
1456 CCWARN
= -Wall
-W
-Wno-comment
1462 CC
= ${PURIFY} ${LCC} ${CCWERR}
1466 ###################################################
1467 # default target - when no specific target exists #
1468 ###################################################
1470 # NOTE: This is the default generic host target. Used when no other
1471 # host target matches.
1475 BLD_TYPE
= calc-static-only
1478 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:/lib
:/usr
/lib
:${LIBDIR}:/usr
/local
/lib
1479 LD_SHARE
= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1480 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1481 LIBCALC_SHLIB
= -shared
"-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1483 LIBCUSTCALC_SHLIB
= -shared
"-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1493 CCWARN
= -Wall
-W
-Wno-comment
1499 CC
= ${PURIFY} ${LCC} ${CCWERR}
1503 ###########################################
1504 # Set the default compile flags for ${CC} #
1505 ###########################################
1507 # Required flags to compile C files for calc
1509 # ICFLAGS are given to ${CC} for intermediate progs used to help compile calc
1510 # CFLAGS are given to ${CC} for calc progs other than intermediate progs
1512 # NOTE: This does not work for: make-XYZ-only and BLD_TYPE != make-XYZ-only
1514 ifeq ($(BLD_TYPE
),calc-static-only
)
1515 ICFLAGS
= ${COMMON_CFLAGS} ${CC_STATIC}
1517 ICFLAGS
= ${COMMON_CFLAGS} ${CC_SHARE}
1519 CFLAGS
= ${ICFLAGS} ${CCOPT}
1521 # Required flags to link files for calc
1523 # ILDFLAGS for ${CC} in linking intermediate progs used to help compile calc
1524 # LDFLAGS for ${CC} in linking calc progs other than intermediate progs
1526 ILDFLAGS
= ${COMMON_LDFLAGS}
1527 LDFLAGS
= ${LD_DEBUG} ${ILDFLAGS}
1528 #endif /* end of skip for non-Gnu makefiles */
1530 #######################################################################
1531 #-=-=-=-=-=- end of target section - only make rules below -=-=-=-=-=-#
1532 #######################################################################
1533 # end of host target cut - Do not remove this line
1535 ###############################################################################
1536 #=-=-=-=-=- Be careful if you change something in this next section -=-=-=-=-=#
1537 ###############################################################################
1541 # Q=@ do not echo internal Makefile actions (quiet mode)
1542 # Q= echo internal Makefile actions (debug / verbose mode)
1544 # V=@: do not echo debug statements (quiet mode)
1545 # V=@ do echo debug statements (debug / verbose mode)
1552 # the source files which are built into a math link library
1554 # There MUST be a .o for every .c in LIBOBJS
1556 LIBSRC
= addop.c assocfunc.c blkcpy.c block.c byteswap.c \
1557 codegen.c comfunc.c commath.c config.c const.c custom.c \
1558 file.c func.c hash.c help.c hist.c input.c jump.c label.c \
1559 lib_calc.c lib_util.c listfunc.c matfunc.c math_error.c \
1560 obj.c opcodes.c pix.c poly.c prime.c qfunc.c qio.c \
1561 qmath.c qmod.c qtrans.c quickhash.c seed.c sha1.c size.c \
1562 str.c symbol.c token.c value.c version.c zfunc.c zio.c \
1563 zmath.c zmod.c zmul.c zprime.c zrand.c zrandom.c
1565 # the object files which are built into a math link library
1567 # There MUST be a .o for every .c in LIBSRC plus calcerr.o
1568 # which is built via this Makefile.
1570 LIBOBJS
= addop.o assocfunc.o blkcpy.o block.o byteswap.o calcerr.o \
1571 codegen.o comfunc.o commath.o config.o const.o custom.o \
1572 file.o func.o hash.o help.o hist.o input.o jump.o label.o \
1573 lib_calc.o lib_util.o listfunc.o matfunc.o math_error.o \
1574 obj.o opcodes.o pix.o poly.o prime.o qfunc.o qio.o \
1575 qmath.o qmod.o qtrans.o quickhash.o seed.o sha1.o size.o \
1576 str.o symbol.o token.o value.o version.o zfunc.o zio.o \
1577 zmath.o zmod.o zmul.o zprime.o zrand.o zrandom.o
1579 # the calculator source files
1581 # There MUST be a .c for every .o in CALCOBJS.
1585 # we build these .o files for calc
1587 # There MUST be a .o for every .c in CALCSRC.
1591 # these .h files are needed to build the math link library
1593 LIB_H_SRC
= alloc.h blkcpy.h block.h byteswap.h calc.h cmath.h \
1594 config.h custom.h decl.h file.h func.h hash.h hist.h jump.h \
1595 label.h lib_util.h lib_calc.h nametype.h \
1596 opcodes.h prime.h qmath.h sha1.h str.h \
1597 symbol.h token.h value.h zmath.h zrand.h zrandom.h
1599 # we build these .h files during the make
1601 BUILD_H_SRC
= align32.h args.h calcerr.h conf.h endian_calc.h \
1602 fposval.h have_const.h have_fpos.h have_fpos_pos.h \
1603 have_memmv.h have_newstr.h have_offscl.h have_posscl.h \
1604 have_stdlib.h have_string.h have_times.h have_uid_t.h \
1605 have_unistd.h longbits.h terminal.h \
1606 have_ustat.h have_getsid.h have_getpgid.h \
1607 have_gettime.h have_getprid.h have_urandom.h have_rusage.h \
1608 have_strdup.h have_unused.h
1610 # we build these .c files during the make
1612 BUILD_C_SRC
= calcerr.c
1614 # these .c files may be used in the process of building BUILD_H_SRC
1616 # There MUST be a .c for every .o in UTIL_OBJS.
1618 UTIL_C_SRC
= align32.c endian.c longbits.c have_newstr.c have_uid_t.c \
1619 have_const.c have_stdvs.c have_varvs.c fposval.c have_fpos.c \
1620 have_fpos_pos.c have_offscl.c have_posscl.c have_memmv.c \
1621 have_ustat.c have_getsid.c have_getpgid.c \
1622 have_gettime.c have_getprid.c have_rusage.c have_strdup.c \
1623 no_implicit.c have_unused.c
1625 # these awk and sed tools are used in the process of building BUILD_H_SRC
1628 UTIL_MISC_SRC
= calcerr_h.sed calcerr_h.awk calcerr_c.sed calcerr_c.awk \
1629 calcerr.tbl
check.awk win32.mkdef
1631 # these .o files may get built in the process of building BUILD_H_SRC
1633 # There MUST be a .o for every .c in UTIL_C_SRC.
1635 UTIL_OBJS
= endian.o longbits.o have_newstr.o have_uid_t.o \
1636 have_const.o fposval.o have_fpos.o have_fpos_pos.o \
1637 try_strarg.o have_stdvs.o have_varvs.o have_posscl.o have_memmv.o \
1638 have_ustat.o have_getsid.o have_getpgid.o \
1639 have_gettime.o have_getprid.o ver_calc.o have_rusage.o have_strdup.o \
1640 no_implicit.o have_unused.o
1642 # these temp files may be created (and removed) during the build of BUILD_C_SRC
1644 UTIL_TMP
= ll_tmp fpos_tmp fposv_tmp const_tmp uid_tmp newstr_tmp vs_tmp \
1645 memmv_tmp offscl_tmp posscl_tmp newstr_tmp \
1646 getsid_tmp gettime_tmp getprid_tmp rusage_tmp strdup_tmp
1648 # these utility executables may be created in the process of
1649 # building the BUILD_H_SRC file set
1651 UTIL_PROGS
= align32
${EXT} fposval
${EXT} have_uid_t
${EXT} have_const
${EXT} \
1652 endian
${EXT} longbits
${EXT} have_newstr
${EXT} have_stdvs
${EXT} \
1653 have_varvs
${EXT} have_ustat
${EXT} have_getsid
${EXT} \
1654 have_getpgid
${EXT} have_gettime
${EXT} have_getprid
${EXT} \
1655 ver_calc
${EXT} have_strdup
${EXT} no_implicit
${EXT} \
1656 have_unused
${EXT} have_fpos
${EXT} have_fpos_pos
${EXT} \
1657 have_offscl
${EXT} have_rusage
${EXT}
1659 # these utility files and scripts may be created in the process of building
1660 # the BUILD_H_SRC file set
1662 UTIL_FILES
= no_implicit.arg have_args.sh
1664 # Any .h files that are needed to compile sample code.
1668 # Any .c files that are needed to compile sample code.
1670 # There MUST be a .c in SAMPLE_C_SRC for every .o in SAMPLE_OBJ.
1672 SAMPLE_C_SRC
= sample_many.c sample_rand.c
1674 # Any .o files that are needed to compile sample code.
1676 # There MUST be a .c in SAMPLE_C_SRC for every .o in SAMPLE_OBJ.
1678 SAMPLE_OBJ
= sample_many.o sample_rand.o
1680 # The complete list of Makefile vars passed down to custom/Makefile.
1683 ALLOW_CUSTOM
="${ALLOW_CUSTOM}" \
1686 BINDIR
="${BINDIR}" \
1687 BLD_TYPE
="${BLD_TYPE}" \
1688 CALC_INCDIR
="${CALC_INCDIR}" \
1689 CALC_SHAREDIR
="${CALC_SHAREDIR}" \
1693 CCMISC
="${CCMISC}" \
1695 CCWARN
="${CCWARN}" \
1696 CC_SHARE
="${CC_SHARE}" \
1697 CFLAGS
="${CFLAGS} -I.." \
1701 COMMON_CFLAGS
="${COMMON_CFLAGS} -I.." \
1702 COMMON_LDFLAGS
="${COMMON_LDFLAGS}" \
1704 CUSTOMCALDIR
="${CUSTOMCALDIR}" \
1705 CUSTOMHELPDIR
="${CUSTOMHELPDIR}" \
1706 CUSTOMINCDIR
="${CUSTOMINCDIR}" \
1708 DEFAULT_LIB_INSTALL_PATH
="${DEFAULT_LIB_INSTALL_PATH}" \
1711 HELPDIR
="${HELPDIR}" \
1712 ICFLAGS
="${ICFLAGS} -I.." \
1713 ILDFLAGS
="${ILDFLAGS}" \
1714 INCDIR
="${INCDIR}" \
1717 LDCONFIG
=${LDCONFIG} \
1718 LDFLAGS
="${LDFLAGS}" \
1719 LD_SHARE
="${LD_SHARE}" \
1720 LIBCUSTCALC_SHLIB
="${LIBCUSTCALC_SHLIB}" \
1721 LIBDIR
="${LIBDIR}" \
1724 MAKEDEPEND
=${MAKEDEPEND} \
1725 MAKE_FILE
=Makefile \
1728 PURIFY
="${PURIFY}" \
1730 RANLIB
="${RANLIB}" \
1733 SCRIPTDIR
="${SCRIPTDIR}" \
1737 TOP_MAKE_FILE
=${MAKE_FILE} \
1740 VERSION
=${VERSION} \
1743 # The compelte list of Makefile vars passed down to help/Makefile.
1747 BINDIR
="${BINDIR}" \
1748 CALC_INCDIR
="${CALC_INCDIR}" \
1749 CALC_SHAREDIR
="${CALC_SHAREDIR}" \
1751 CFLAGS
="${CFLAGS}" \
1755 COMMON_CFLAGS
="${COMMON_CFLAGS}" \
1756 COMMON_LDFLAGS
="${COMMON_LDFLAGS}" \
1760 HELPDIR
="${HELPDIR}" \
1761 ICFLAGS
="${ICFLAGS}" \
1762 ILDFLAGS
="${ILDFLAGS}" \
1763 INCDIR
="${INCDIR}" \
1766 LIBDIR
="${LIBDIR}" \
1767 MAKE_FILE
=Makefile \
1773 SCRIPTDIR
="${SCRIPTDIR}" \
1776 TOP_MAKE_FILE
=${MAKE_FILE} \
1780 # The compelte list of Makefile vars passed down to cal/Makefile.
1784 BINDIR
="${BINDIR}" \
1785 CALC_INCDIR
="${CALC_INCDIR}" \
1786 CALC_SHAREDIR
="${CALC_SHAREDIR}" \
1792 HELPDIR
="${HELPDIR}" \
1793 INCDIR
="${INCDIR}" \
1795 LIBDIR
="${LIBDIR}" \
1796 MAKE_FILE
=Makefile \
1802 SCRIPTDIR
="${SCRIPTDIR}" \
1804 TOP_MAKE_FILE
=${MAKE_FILE} \
1808 # The compelte list of Makefile vars passed down to cscript/Makefile.
1812 BINDIR
="${BINDIR}" \
1813 CALC_INCDIR
="${CALC_INCDIR}" \
1814 CALC_SHAREDIR
="${CALC_SHAREDIR}" \
1821 HELPDIR
="${HELPDIR}" \
1822 INCDIR
="${INCDIR}" \
1824 LIBDIR
="${LIBDIR}" \
1825 MAKE_FILE
=Makefile \
1831 SCRIPTDIR
="${SCRIPTDIR}" \
1835 TOP_MAKE_FILE
=${MAKE_FILE} \
1839 # complete list of .h files found (but not built) in the distribution
1841 H_SRC
= ${LIB_H_SRC} ${SAMPLE_H_SRC}
1843 # complete list of .c files found (but not built) in the distribution
1845 C_SRC
= ${LIBSRC} ${CALCSRC} ${UTIL_C_SRC} ${SAMPLE_C_SRC}
1847 # The list of files that describe calc's GNU Lesser General Public License
1849 LICENSE
= COPYING COPYING-LGPL
1851 # These files are found (but not built) in the distribution
1853 DISTLIST
= ${C_SRC} ${H_SRC} ${MAKE_FILE} BUGS CHANGES LIBRARY README \
1854 README.WINDOWS calc.man HOWTO.INSTALL
${UTIL_MISC_SRC} ${LICENSE} \
1855 sample.README calc.spec.in rpm.mk
1857 # These files are used to make (but not built) a calc .a link library
1859 CALCLIBLIST
= ${LIBSRC} ${UTIL_C_SRC} ${LIB_H_SRC} ${MAKE_FILE} \
1860 ${UTIL_MISC_SRC} BUGS CHANGES LIBRARY
1862 # complete list of .o files
1864 OBJS
= ${LIBOBJS} ${CALCOBJS} ${UTIL_OBJS} ${SAMPLE_OBJ}
1866 # static library build
1868 #if 0 /* start of skip for non-Gnu makefiles */
1870 #endif /* end of skip for non-Gnu makefiles */
1871 CALC_STATIC_LIBS
= libcalc.a libcustcalc.a
1872 #if 0 /* start of skip for non-Gnu makefiles */
1874 CALC_STATIC_LIBS
= libcalc.a
1876 #endif /* end of skip for non-Gnu makefiles */
1878 # Libaraies created and used to build calc
1880 #if 0 /* start of skip for non-Gnu makefiles */
1882 #endif /* end of skip for non-Gnu makefiles */
1883 CALC_DYNAMIC_LIBS
= libcalc
${LIB_EXT_VERSION} libcustcalc
${LIB_EXT_VERSION}
1884 #if 0 /* start of skip for non-Gnu makefiles */
1886 CALC_DYNAMIC_LIBS
= libcalc
${LIB_EXT_VERSION}
1888 #endif /* end of skip for non-Gnu makefiles */
1890 # Symlinks of dymanic shared libraries
1892 #if 0 /* start of skip for non-Gnu makefiles */
1894 #endif /* end of skip for non-Gnu makefiles */
1895 SYM_DYNAMIC_LIBS
= libcalc
${LIB_EXT_VER} libcalc
${LIB_EXT_VE} libcalc
${LIB_EXT} \
1896 libcalc
${LIB_EXT_VERS} libcustcalc
${LIB_EXT_VERSION} \
1897 libcustcalc
${LIB_EXT_VERS} libcustcalc
${LIB_EXT_VER} \
1898 libcustcalc
${LIB_EXT_VE} libcustcalc
${LIB_EXT}
1899 #if 0 /* start of skip for non-Gnu makefiles */
1901 SYM_DYNAMIC_LIBS
= libcalc
${LIB_EXT_VER} libcalc
${LIB_EXT_VE} libcalc
${LIB_EXT} \
1902 libcalc
${LIB_EXT_VERS}
1904 #endif /* end of skip for non-Gnu makefiles */
1906 # list of sample programs to that need to be built to satisfy sample rule
1908 # NOTE: The ${SAMPLE_TARGETS} and ${SAMPLE_STATIC_TARGETS} are built but
1909 # not installed at this time.
1911 # NOTE: There must be a foo-static${EXT} in SAMPLE_STATIC_TARGETS for
1912 # every foo${EXT} in ${SAMPLE_TARGETS}.
1914 SAMPLE_TARGETS
= sample_rand
${EXT} sample_many
${EXT}
1915 SAMPLE_STATIC_TARGETS
= sample_rand-static
${EXT} sample_many-static
${EXT}
1917 # list of cscript programs to that need to be built to satisfy cscript/.all
1919 # NOTE: This list MUST be coordinated with the ${CSCRIPT_TARGETS} variable
1920 # in the cscript/Makefile
1922 CSCRIPT_TARGETS
= cscript
/mersenne cscript
/piforever cscript
/plus \
1923 cscript
/square cscript
/fproduct cscript
/powerterm
1925 # dynamic first targets
1927 DYNAMIC_FIRST_TARGETS
= ${LICENSE} .dynamic
1929 # static first targets
1931 STATIC_FIRST_TARGETS
= ${LICENSE} .static
1933 # early targets - things needed before the main build phase can begin
1935 #if 0 /* start of skip for non-Gnu makefiles */
1937 #endif /* end of skip for non-Gnu makefiles */
1938 EARLY_TARGETS
= custom
/Makefile hsrc .hsrc custom
/.
all
1939 #if 0 /* start of skip for non-Gnu makefiles */
1941 EARLY_TARGETS
= hsrc .hsrc
1943 #endif /* end of skip for non-Gnu makefiles */
1945 # late targets - things needed after the main build phase is complete
1947 LATE_TARGETS
= calc
.1 calc.usage \
1948 cal
/.
all help
/.
all help
/builtin cscript
/.
all \
1951 # complete list of targets
1953 TARGETS
= ${EARLY_TARGETS} ${BLD_TYPE} ${LATE_TARGETS}
1957 # The reason for this Makefile :-)
1961 all: ${BLD_TYPE} CHANGES
1964 ${Q} ${MAKE} -f
${MAKE_FILE} all DEBUG
='-g3'
1966 calc-dynamic-only
: ${DYNAMIC_FIRST_TARGETS} ${EARLY_TARGETS} \
1967 ${CALC_DYNAMIC_LIBS} ${SYM_DYNAMIC_LIBS} calc
${EXT} \
1968 ${SAMPLE_TARGETS} ${LATE_TARGETS}
1970 .dynamic
: ${MAKE_FILE}
1971 ${Q} r
="calc-dynamic-only"; \
1972 if
[ "${BLD_TYPE}" != "$$r" ]; then \
1973 echo
"NOTE: The host target $(target) defaults to a build" 1>&2; \
1974 echo
" type of: ${BLD_TYPE}, so you need to use" 1>&2; \
1975 echo
" the following make command:" 1>&2; \
1977 echo
" ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
1978 echo
" ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
1980 echo
"NOTE: It is a very good idea to c first clobber any" 1>&2; \
1981 echo
" previously built .o, libs and executables" 1>&2; \
1982 echo
" before switching to $$r!" 1>&2; \
1984 echo
"=== aborting make ===" 1>&2; \
1987 ${Q} for i in .static calc-static
${EXT} ${SAMPLE_STATIC_TARGETS} \
1988 libcalc.a custom
/libcustcalc.a
; do \
1989 r
="calc-dynamic-only"; \
1990 if
[ -r
"$$i" ]; then \
1991 echo
"Found the static target $$i file. You must:" 1>&2; \
1993 echo
" ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
1994 echo
" ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
1996 echo
"to clean out any previously build static files." 1>&2; \
1998 echo
"=== aborting make ===" 1>&2; \
2004 calc-static-only
: ${STATIC_FIRST_TARGETS} ${EARLY_TARGETS} \
2005 ${CALC_STATIC_LIBS} calc-static
${EXT} \
2006 ${SAMPLE_STATIC_TARGETS} ${LATE_TARGETS}
2007 ${Q} for i in calc
${EXT} ${SAMPLE_TARGETS}; do \
2008 if
${CMP} -s
"$$i-static" "$$i"; then \
2012 ${LN} "$$i-static" "$$i"; \
2016 .static
: ${MAKE_FILE}
2017 ${Q} r
="calc-static-only"; \
2018 if
[ "${BLD_TYPE}" != "$$r" ]; then \
2019 echo
"NOTE: The host target $(target) defaults to a build" 1>&2; \
2020 echo
" type of: ${BLD_TYPE}, so you need to use" 1>&2; \
2021 echo
" the following make command:" 1>&2; \
2023 echo
" ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
2024 echo
" ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
2026 echo
"NOTE: It is a very good idea to c first clobber any" 1>&2; \
2027 echo
" previously built .o, libs and executables" 1>&2; \
2028 echo
" before switching to $$r!" 1>&2; \
2030 echo
"=== aborting make ===" 1>&2; \
2033 ${Q} for i in .dynamic
${CALC_DYNAMIC_LIBS} ${SYM_DYNAMIC_LIBS} \
2034 custom
/libcustcalc
${LIB_EXT_VERSION}; do \
2035 r
="calc-static-only"; \
2036 if
[ -r
"$$i" ]; then \
2037 echo
"Found the dynamic target $$i file. You must:" 1>&2; \
2039 echo
" ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
2040 echo
" ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
2042 echo
"to clean out any previously build dynamic files." 1>&2; \
2044 echo
"=== aborting make ===" 1>&2; \
2050 calc
${EXT}: .hsrc
${CALCOBJS} ${CALC_DYNAMIC_LIBS} ${MAKE_FILE}
2052 ${CC} ${CALCOBJS} ${LDFLAGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \
2053 ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
2055 libcalc
${LIB_EXT_VERSION}: ${LIBOBJS} ver_calc
${EXT} ${MAKE_FILE}
2056 ${CC} ${LIBCALC_SHLIB} ${LIBOBJS} \
2057 ${READLINE_LIB} ${READLINE_EXTRAS} -o libcalc
${LIB_EXT_VERSION}
2059 libcalc
${LIB_EXT_VERS}: libcalc
${LIB_EXT_VERSION}
2063 libcalc
${LIB_EXT_VER}: libcalc
${LIB_EXT_VERSION}
2067 libcalc
${LIB_EXT_VE}: libcalc
${LIB_EXT_VERSION}
2071 libcalc
${LIB_EXT}: libcalc
${LIB_EXT_VERSION}
2077 # calc documentation
2081 calc
.1: calc.man
${MAKE_FILE}
2083 ${Q} echo forming calc
.1 from calc.man
2084 @
${SED} -e
's:$${LIBDIR}:${LIBDIR}:g' \
2085 -e
's,$${BINDIR},${BINDIR},g' \
2086 -e
's,$${CALCPATH},${CALCPATH},g' \
2087 -e
's,$${SCRIPTDIR},${SCRIPTDIR},g' \
2088 -e
's,$${CALC_INCDIR},${CALC_INCDIR},g' \
2089 -e
's,$${CUSTOMCALDIR},${CUSTOMCALDIR},g' \
2090 -e
's,$${CUSTOMINCDIR},${CUSTOMINCDIR},g' \
2091 -e
's,$${CUSTOMHELPDIR},${CUSTOMHELPDIR},g' \
2092 -e
's,$${CALCRC},${CALCRC},g' < calc.man
> calc
.1
2093 ${Q} echo calc.man formed
2095 calc.usage
: calc
.1 ${MAKE_FILE}
2097 ${Q} echo forming calc.usage from calc
.1
2098 ${Q} if
[ -z
"${NROFF}" ]; then \
2099 LESSCHARSET
=iso8859
${CALCPAGER} calc
.1; \
2101 ${NROFF} -man calc
.1; \
2103 ${Q} echo calc.usage formed
2108 # These rules compile the sample code against the calc library
2112 sample
: ${SAMPLE_TARGETS}
2114 sample_rand
${EXT}: sample_rand.o
${CALC_DYNAMIC_LIBS} ${MAKE_FILE}
2115 ${CC} sample_rand.o
${CLDFALGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \
2116 ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
2118 sample_many
${EXT}: sample_many.o
${CALC_DYNAMIC_LIBS} ${MAKE_FILE}
2119 ${CC} sample_many.o
${CLDFALGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \
2120 ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
2128 hist.o
: hist.c
${MAKE_FILE}
2129 ${CC} ${CFLAGS} ${TERMCONTROL} ${USE_READLINE} ${READLINE_INCLUDE} \
2132 seed.o
: seed.c no_implicit.arg
${MAKE_FILE}
2133 ${CC} ${CFLAGS} `${CAT} no_implicit.arg` -c seed.c
2137 # The next set of rules cause the .h files BUILD_H_SRC files to be built
2138 # according tot he system and the Makefile variables above. The hsrc rule
2139 # is a convenient rule to invoke to built all of the BUILD_H_SRC.
2141 # We add in the BUILD_C_SRC files because they are similar to the
2142 # BUILD_H_SRC files in terms of the build process.
2144 # NOTE: Due to bogus shells found on one common system we must have
2145 # an non-empty else clause for every if condition. *sigh*
2146 # We also place ; ${TRUE} at the end of some commands to avoid
2147 # meaningless cosmetic messages by the same system.
2151 hsrc
: ${BUILD_H_SRC} ${BUILD_C_SRC}
2153 .hsrc
: ${BUILD_H_SRC} ${BUILD_C_SRC}
2155 -${Q} ${TOUCH} .hsrc
2157 conf.h
: ${MAKE_FILE}
2158 ${Q} ${RM} -f conf.h
2159 ${Q} echo
'forming conf.h'
2160 ${Q} echo
'/*' > conf.h
2161 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> conf.h
2162 ${Q} echo
' */' >> conf.h
2163 ${Q} echo
'' >> conf.h
2164 ${Q} echo
'' >> conf.h
2165 ${Q} echo
'#if !defined(__CONF_H__)' >> conf.h
2166 ${Q} echo
'#define __CONF_H__' >> conf.h
2167 ${Q} echo
'' >> conf.h
2168 ${Q} echo
'' >> conf.h
2169 ${Q} echo
'/* the default :-separated search path */' >> conf.h
2170 ${Q} echo
'#if !defined(DEFAULTCALCPATH)' >> conf.h
2171 ${Q} echo
'#define DEFAULTCALCPATH "${CALCPATH}"' >> conf.h
2172 ${Q} echo
'#endif /* DEFAULTCALCPATH */' >> conf.h
2173 ${Q} echo
'' >> conf.h
2174 ${Q} echo
'/* the default :-separated startup file list */' >> conf.h
2175 ${Q} echo
'#if !defined(DEFAULTCALCRC)' >> conf.h
2176 ${Q} echo
'#define DEFAULTCALCRC "${CALCRC}"' >> conf.h
2177 ${Q} echo
'#endif /* DEFAULTCALCRC */' >> conf.h
2178 ${Q} echo
'' >> conf.h
2179 ${Q} echo
'/* the location of the help directory */' >> conf.h
2180 ${Q} echo
'#if !defined(HELPDIR)' >> conf.h
2181 ${Q} echo
'#define HELPDIR "${HELPDIR}"' >> conf.h
2182 ${Q} echo
'#endif /* HELPDIR */' >> conf.h
2183 ${Q} echo
'' >> conf.h
2184 #if 0 /* start of skip for non-Gnu makefiles */
2186 #endif /* end of skip for non-Gnu makefiles */
2187 ${Q} echo
'/* the location of the custom help directory */' >> conf.h
2188 ${Q} echo
'#if !defined(CUSTOMHELPDIR)' >> conf.h
2189 ${Q} echo
'#define CUSTOMHELPDIR "${CUSTOMHELPDIR}"' >> conf.h
2190 ${Q} echo
'#endif /* CUSTOMHELPDIR */' >> conf.h
2191 ${Q} echo
'' >> conf.h
2192 #if 0 /* start of skip for non-Gnu makefiles */
2194 #endif /* end of skip for non-Gnu makefiles */
2195 ${Q} echo
'/* the default pager to use */' >> conf.h
2196 ${Q} echo
'#if !defined(DEFAULTCALCPAGER)' >> conf.h
2197 ${Q} echo
'#define DEFAULTCALCPAGER "${CALCPAGER}"' >> conf.h
2198 ${Q} echo
'#endif /* DEFAULTCALCPAGER */' >> conf.h
2199 ${Q} echo
'' >> conf.h
2200 ${Q} echo
'' >> conf.h
2201 ${Q} echo
'#endif /* !__CONF_H__ */' >> conf.h
2202 ${Q} echo
'conf.h formed'
2203 -@if
[ -z
"${Q}" ]; then \
2205 echo
'=-=-= start of $@ =-=-='; \
2207 echo
'=-=-= end of $@ =-=-='; \
2213 endian_calc.h
: endian
${EXT} ${MAKE_FILE}
2214 ${Q} ${RM} -f endian_calc.h
2215 ${Q} echo
'forming endian_calc.h'
2216 ${Q} echo
'/*' > endian_calc.h
2217 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> endian_calc.h
2218 ${Q} echo
' */' >> endian_calc.h
2219 ${Q} echo
'' >> endian_calc.h
2220 ${Q} echo
'' >> endian_calc.h
2221 ${Q} echo
'#if !defined(__ENDIAN_CALC_H__)' >> endian_calc.h
2222 ${Q} echo
'#define __ENDIAN_CALC_H__' >> endian_calc.h
2223 ${Q} echo
'' >> endian_calc.h
2224 ${Q} echo
'' >> endian_calc.h
2225 ${Q} echo
'/* what byte order are we? */' >> endian_calc.h
2226 -${Q} if
[ X
"${CALC_BYTE_ORDER}" = X
]; then \
2227 if
[ -f
${INCDIR}/endian.h
]; then \
2228 echo
'#include <endian.h>' >> endian_calc.h
; \
2229 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
2230 elif
[ -f
${INCDIR}/machine
/endian.h
]; then \
2231 echo
'#include <machine/endian.h>' >> endian_calc.h
; \
2232 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
2233 elif
[ -f
${INCDIR}/sys
/endian.h
]; then \
2234 echo
'#include <sys/endian.h>' >> endian_calc.h
; \
2235 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
2236 elif
[ -f
/usr
/include/endian.h
]; then \
2237 echo
'#include <endian.h>' >> endian_calc.h
; \
2238 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
2239 elif
[ -f
/usr
/include/machine
/endian.h
]; then \
2240 echo
'#include <machine/endian.h>' >> endian_calc.h
; \
2241 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
2242 elif
[ -f
/usr
/include/sys
/endian.h
]; then \
2243 echo
'#include <sys/endian.h>' >> endian_calc.h
; \
2244 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
2246 .
/endian
${EXT} >> endian_calc.h
; \
2249 .
/endian
${EXT} >> endian_calc.h
; \
2251 ${Q} echo
'' >> endian_calc.h
2252 ${Q} echo
'' >> endian_calc.h
2253 ${Q} echo
'#endif /* !__ENDIAN_CALC_H__ */' >> endian_calc.h
2254 ${Q} echo
'endian_calc.h formed'
2255 -@if
[ -z
"${Q}" ]; then \
2257 echo
'=-=-= start of $@ =-=-='; \
2259 echo
'=-=-= end of $@ =-=-='; \
2265 longbits.h
: longbits
${EXT} ${MAKE_FILE}
2266 ${Q} ${RM} -f longbits.h
2267 ${Q} echo
'forming longbits.h'
2268 ${Q} echo
'/*' > longbits.h
2269 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> longbits.h
2270 ${Q} echo
' */' >> longbits.h
2271 ${Q} echo
'' >> longbits.h
2272 ${Q} echo
'' >> longbits.h
2273 ${Q} echo
'#if !defined(__LONGBITS_H__)' >> longbits.h
2274 ${Q} echo
'#define __LONGBITS_H__' >> longbits.h
2275 ${Q} echo
'' >> longbits.h
2276 ${Q} echo
'' >> longbits.h
2277 ${Q} .
/longbits
${EXT} ${LONG_BITS} >> longbits.h
2278 ${Q} echo
'' >> longbits.h
2279 ${Q} echo
'' >> longbits.h
2280 ${Q} echo
'#endif /* !__LONGBITS_H__ */' >> longbits.h
2281 ${Q} echo
'longbits.h formed'
2282 -@if
[ -z
"${Q}" ]; then \
2284 echo
'=-=-= start of $@ =-=-='; \
2286 echo
'=-=-= end of $@ =-=-='; \
2292 have_times.h
: ${MAKE_FILE}
2293 ${Q} ${RM} -f have_times.h
2294 ${Q} echo
'forming have_times.h'
2295 ${Q} echo
'/*' > have_times.h
2296 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_times.h
2297 ${Q} echo
' */' >> have_times.h
2298 ${Q} echo
'' >> have_times.h
2299 ${Q} echo
'' >> have_times.h
2300 ${Q} echo
'#if !defined(__HAVE_TIMES_H__)' >> have_times.h
2301 ${Q} echo
'#define __HAVE_TIMES_H__' >> have_times.h
2302 ${Q} echo
'' >> have_times.h
2303 ${Q} echo
'' >> have_times.h
2304 ${Q} echo
'/* do we have <times.h>? */' >> have_times.h
2305 -${Q} if
[ X
"${HAVE_TIMES_H}" = X
"YES" ]; then \
2306 echo
'#define HAVE_TIMES_H /* yes */' >> have_times.h
; \
2307 elif
[ X
"${HAVE_TIMES_H}" = X
"NO" ]; then \
2308 echo
'#undef HAVE_TIMES_H /* no */' >> have_times.h
; \
2309 elif
[ -f
${INCDIR}/times.h
]; then \
2310 echo
'#define HAVE_TIMES_H /* yes */' >> have_times.h
; \
2311 elif
[ -f
/usr
/include/times.h
]; then \
2312 echo
'#define HAVE_TIMES_H /* yes */' >> have_times.h
; \
2314 echo
'#undef HAVE_TIMES_H /* no */' >> have_times.h
; \
2316 -${Q} if
[ X
"${HAVE_SYS_TIMES_H}" = X
"YES" ]; then \
2317 echo
'#define HAVE_SYS_TIMES_H /* yes */' >> have_times.h
; \
2318 elif
[ X
"${HAVE_SYS_TIMES_H}" = X
"NO" ]; then \
2319 echo
'#undef HAVE_SYS_TIMES_H /* no */' >> have_times.h
; \
2320 elif
[ -f
${INCDIR}/sys
/times.h
]; then \
2321 echo
'#define HAVE_SYS_TIMES_H /* yes */' >> have_times.h
; \
2322 elif
[ -f
/usr
/include/sys
/times.h
]; then \
2323 echo
'#define HAVE_SYS_TIMES_H /* yes */' >> have_times.h
; \
2325 echo
'#undef HAVE_SYS_TIMES_H /* no */' >> have_times.h
; \
2327 -${Q} if
[ X
"${HAVE_TIME_H}" = X
"YES" ]; then \
2328 echo
'#define HAVE_TIME_H /* yes */' >> have_times.h
; \
2329 elif
[ X
"${HAVE_TIME_H}" = X
"NO" ]; then \
2330 echo
'#undef HAVE_TIME_H /* no */' >> have_times.h
; \
2331 elif
[ -f
${INCDIR}/time.h
]; then \
2332 echo
'#define HAVE_TIME_H /* yes */' >> have_times.h
; \
2333 elif
[ -f
/usr
/include/time.h
]; then \
2334 echo
'#define HAVE_TIME_H /* yes */' >> have_times.h
; \
2336 echo
'#undef HAVE_TIME_H /* no */' >> have_times.h
; \
2338 -${Q} if
[ X
"${HAVE_SYS_TIME_H}" = X
"YES" ]; then \
2339 echo
'#define HAVE_SYS_TIME_H /* yes */' >> have_times.h
; \
2340 elif
[ X
"${HAVE_SYS_TIME_H}" = X
"NO" ]; then \
2341 echo
'#undef HAVE_SYS_TIME_H /* no */' >> have_times.h
; \
2342 elif
[ -f
${INCDIR}/sys
/time.h
]; then \
2343 echo
'#define HAVE_SYS_TIME_H /* yes */' >> have_times.h
; \
2344 elif
[ -f
/usr
/include/sys
/time.h
]; then \
2345 echo
'#define HAVE_SYS_TIME_H /* yes */' >> have_times.h
; \
2347 echo
'#undef HAVE_SYS_TIME_H /* no */' >> have_times.h
; \
2349 ${Q} echo
'' >> have_times.h
2350 ${Q} echo
'' >> have_times.h
2351 ${Q} echo
'#endif /* !__HAVE_TIMES_H__ */' >> have_times.h
2352 ${Q} echo
'have_times.h formed'
2353 -@if
[ -z
"${Q}" ]; then \
2355 echo
'=-=-= start of $@ =-=-='; \
2357 echo
'=-=-= end of $@ =-=-='; \
2363 have_stdlib.h
: ${MAKE_FILE}
2364 ${Q} ${RM} -f have_stdlib.h
2365 ${Q} echo
'forming have_stdlib.h'
2366 ${Q} echo
'/*' > have_stdlib.h
2367 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_stdlib.h
2368 ${Q} echo
' */' >> have_stdlib.h
2369 ${Q} echo
'' >> have_stdlib.h
2370 ${Q} echo
'' >> have_stdlib.h
2371 ${Q} echo
'#if !defined(__HAVE_STDLIB_H__)' >> have_stdlib.h
2372 ${Q} echo
'#define __HAVE_STDLIB_H__' >> have_stdlib.h
2373 ${Q} echo
'' >> have_stdlib.h
2374 ${Q} echo
'' >> have_stdlib.h
2375 ${Q} echo
'/* do we have <stdlib.h>? */' >> have_stdlib.h
2376 -${Q} if
[ X
"${HAVE_STDLIB_H}" = X
"YES" ]; then \
2377 echo
'#define HAVE_STDLIB_H /* yes */' >> have_stdlib.h
; \
2378 elif
[ X
"${HAVE_STDLIB_H}" = X
"NO" ]; then \
2379 echo
'#undef HAVE_STDLIB_H /* no */' >> have_stdlib.h
; \
2380 elif
[ -f
${INCDIR}/stdlib.h
]; then \
2381 echo
'#define HAVE_STDLIB_H /* yes */' >> have_stdlib.h
; \
2382 elif
[ -f
/usr
/include/stdlib.h
]; then \
2383 echo
'#define HAVE_STDLIB_H /* yes */' >> have_stdlib.h
; \
2385 echo
'#undef HAVE_STDLIB_H /* no */' >> have_stdlib.h
; \
2387 ${Q} echo
'' >> have_stdlib.h
2388 ${Q} echo
'' >> have_stdlib.h
2389 ${Q} echo
'#endif /* !__HAVE_STDLIB_H__ */' >> have_stdlib.h
2390 ${Q} echo
'have_stdlib.h formed'
2391 -@if
[ -z
"${Q}" ]; then \
2393 echo
'=-=-= start of $@ =-=-='; \
2395 echo
'=-=-= end of $@ =-=-='; \
2401 have_unistd.h
: ${MAKE_FILE}
2402 ${Q} ${RM} -f have_unistd.h
2403 ${Q} echo
'forming have_unistd.h'
2404 ${Q} echo
'/*' > have_unistd.h
2405 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_unistd.h
2406 ${Q} echo
' */' >> have_unistd.h
2407 ${Q} echo
'' >> have_unistd.h
2408 ${Q} echo
'' >> have_unistd.h
2409 ${Q} echo
'#if !defined(__HAVE_UNISTD_H__)' >> have_unistd.h
2410 ${Q} echo
'#define __HAVE_UNISTD_H__' >> have_unistd.h
2411 ${Q} echo
'' >> have_unistd.h
2412 ${Q} echo
'' >> have_unistd.h
2413 ${Q} echo
'/* do we have <unistd.h>? */' >> have_unistd.h
2414 -${Q} if
[ X
"${HAVE_UNISTD_H}" = X
"YES" ]; then \
2415 echo
'#define HAVE_UNISTD_H /* yes */' >> have_unistd.h
; \
2416 elif
[ X
"${HAVE_UNISTD_H}" = X
"NO" ]; then \
2417 echo
'#undef HAVE_UNISTD_H /* no */' >> have_unistd.h
; \
2418 elif
[ -f
${INCDIR}/unistd.h
]; then \
2419 echo
'#define HAVE_UNISTD_H /* yes */' >> have_unistd.h
; \
2420 elif
[ -f
/usr
/include/unistd.h
]; then \
2421 echo
'#define HAVE_UNISTD_H /* yes */' >> have_unistd.h
; \
2423 echo
'#undef HAVE_UNISTD_H /* no */' >> have_unistd.h
; \
2425 ${Q} echo
'' >> have_unistd.h
2426 ${Q} echo
'' >> have_unistd.h
2427 ${Q} echo
'#endif /* !__HAVE_UNISTD_H__ */' >> have_unistd.h
2428 ${Q} echo
'have_unistd.h formed'
2429 -@if
[ -z
"${Q}" ]; then \
2431 echo
'=-=-= start of $@ =-=-='; \
2433 echo
'=-=-= end of $@ =-=-='; \
2439 have_string.h
: ${MAKE_FILE}
2440 ${Q} ${RM} -f have_string.h
2441 ${Q} echo
'forming have_string.h'
2442 ${Q} echo
'/*' > have_string.h
2443 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_string.h
2444 ${Q} echo
' */' >> have_string.h
2445 ${Q} echo
'' >> have_string.h
2446 ${Q} echo
'' >> have_string.h
2447 ${Q} echo
'#if !defined(__HAVE_STRING_H__)' >> have_string.h
2448 ${Q} echo
'#define __HAVE_STRING_H__' >> have_string.h
2449 ${Q} echo
'' >> have_string.h
2450 ${Q} echo
'' >> have_string.h
2451 ${Q} echo
'/* do we have <string.h>? */' >> have_string.h
2452 -${Q} if
[ X
"${HAVE_STRING_H}" = X
"YES" ]; then \
2453 echo
'#define HAVE_STRING_H /* yes */' >> have_string.h
; \
2454 elif
[ X
"${HAVE_STRING_H}" = X
"NO" ]; then \
2455 echo
'#undef HAVE_STRING_H /* no */' >> have_string.h
; \
2456 elif
[ -f
${INCDIR}/string.h
]; then \
2457 echo
'#define HAVE_STRING_H /* yes */' >> have_string.h
; \
2458 elif
[ -f
/usr
/include/string.h
]; then \
2459 echo
'#define HAVE_STRING_H /* yes */' >> have_string.h
; \
2461 echo
'#undef HAVE_STRING_H /* no */' >> have_string.h
; \
2463 ${Q} echo
'' >> have_string.h
2464 ${Q} echo
'' >> have_string.h
2465 ${Q} echo
'#endif /* !__HAVE_STRING_H__ */' >> have_string.h
2466 ${Q} echo
'have_string.h formed'
2467 -@if
[ -z
"${Q}" ]; then \
2469 echo
'=-=-= start of $@ =-=-='; \
2471 echo
'=-=-= end of $@ =-=-='; \
2477 terminal.h
: ${MAKE_FILE}
2478 ${Q} ${RM} -f terminal.h
2479 ${Q} echo
'forming terminal.h'
2480 ${Q} echo
'/*' > terminal.h
2481 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> terminal.h
2482 ${Q} echo
' */' >> terminal.h
2483 ${Q} echo
'' >> terminal.h
2484 ${Q} echo
'' >> terminal.h
2485 ${Q} echo
'#if !defined(__TERMINAL_H__)' >> terminal.h
2486 ${Q} echo
'#define __TERMINAL_H__' >> terminal.h
2487 ${Q} echo
'' >> terminal.h
2488 ${Q} echo
'' >> terminal.h
2489 ${Q} echo
'/* determine the type of terminal interface */' >> terminal.h
2490 ${Q} echo
'#if !defined(USE_TERMIOS)' >> terminal.h
2491 ${Q} echo
'#if !defined(USE_TERMIO)' >> terminal.h
2492 ${Q} echo
'#if !defined(USE_SGTTY)' >> terminal.h
2493 -${Q} if
[ X
"${TERMCONTROL}" = X
"-DUSE_WIN32" ]; then \
2494 echo
'/* windoz, use none of these modes */' >> terminal.h
; \
2495 echo
'#undef USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2496 echo
'#undef USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2497 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2498 elif
[ -f
${INCDIR}/termios.h
]; then \
2499 echo
'/* use termios */' >> terminal.h
; \
2500 echo
'#define USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2501 echo
'#undef USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2502 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2503 elif
[ -f
${INCDIR}/termio.h
]; then \
2504 echo
'/* use termio */' >> terminal.h
; \
2505 echo
'#undef USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2506 echo
'#define USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2507 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2508 elif
[ -f
/usr
/include/termios.h
]; then \
2509 echo
'/* use termios */' >> terminal.h
; \
2510 echo
'#define USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2511 echo
'#undef USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2512 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2513 elif
[ -f
/usr
/include/termio.h
]; then \
2514 echo
'/* use termio */' >> terminal.h
; \
2515 echo
'#undef USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2516 echo
'#define USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2517 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2519 echo
'/* use sgtty */' >> terminal.h
; \
2520 echo
'#undef USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2521 echo
'#undef USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2522 echo
'#define USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2524 ${Q} echo
'#endif' >> terminal.h
2525 ${Q} echo
'#endif' >> terminal.h
2526 ${Q} echo
'#endif' >> terminal.h
2527 ${Q} echo
'' >> terminal.h
2528 ${Q} echo
'' >> terminal.h
2529 ${Q} echo
'#endif /* !__TERMINAL_H__ */' >> terminal.h
2530 ${Q} echo
'terminal.h formed'
2531 -@if
[ -z
"${Q}" ]; then \
2533 echo
'=-=-= start of $@ =-=-='; \
2535 echo
'=-=-= end of $@ =-=-='; \
2541 have_fpos.h
: have_fpos.c
${MAKE_FILE}
2542 ${Q} ${RM} -f fpos_tmp have_fpos.h
2543 ${Q} echo
'forming have_fpos.h'
2544 ${Q} echo
'/*' > have_fpos.h
2545 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_fpos.h
2546 ${Q} echo
' */' >> have_fpos.h
2547 ${Q} echo
'' >> have_fpos.h
2548 ${Q} echo
'' >> have_fpos.h
2549 ${Q} echo
'#if !defined(__HAVE_FPOS_H__)' >> have_fpos.h
2550 ${Q} echo
'#define __HAVE_FPOS_H__' >> have_fpos.h
2551 ${Q} echo
'' >> have_fpos.h
2552 ${Q} echo
'' >> have_fpos.h
2553 ${Q} echo
'/* do we have fgetpos & fsetpos functions? */' >> have_fpos.h
2554 ${Q} ${RM} -f have_fpos.o have_fpos
${EXT}
2555 -${Q} ${LCC} ${HAVE_FPOS} ${ICFLAGS} have_fpos.c
-c \
2556 >/dev
/null
2>&1; ${TRUE}
2557 -${Q} ${LCC} ${ILDFLAGS} have_fpos.o
-o have_fpos
${EXT} \
2558 >/dev
/null
2>&1; ${TRUE}
2559 -${Q} ${SHELL} -c
"./have_fpos${EXT} > fpos_tmp 2>/dev/null" \
2560 >/dev
/null
2>&1; ${TRUE}
2561 -${Q} if
[ -s fpos_tmp
]; then \
2562 ${CAT} fpos_tmp
>> have_fpos.h
; \
2564 echo
'#undef HAVE_FPOS /* no */' >> have_fpos.h
; \
2565 echo
'' >> have_fpos.h
; \
2566 echo
'typedef long FILEPOS;' >> have_fpos.h
; \
2568 ${Q} echo
'' >> have_fpos.h
2569 ${Q} echo
'' >> have_fpos.h
2570 ${Q} echo
'#endif /* !__HAVE_FPOS_H__ */' >> have_fpos.h
2571 ${Q} ${RM} -f have_fpos
${EXT} have_fpos.o fpos_tmp
2572 ${Q} echo
'have_fpos.h formed'
2573 -@if
[ -z
"${Q}" ]; then \
2575 echo
'=-=-= start of $@ =-=-='; \
2577 echo
'=-=-= end of $@ =-=-='; \
2583 have_fpos_pos.h
: have_fpos_pos.c have_fpos.h have_posscl.h
${MAKE_FILE}
2584 ${Q} ${RM} -f fpos_tmp have_fpos_pos.h
2585 ${Q} echo
'forming have_fpos_pos.h'
2586 ${Q} echo
'/*' > have_fpos_pos.h
2587 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' \
2589 ${Q} echo
' */' >> have_fpos_pos.h
2590 ${Q} echo
'' >> have_fpos_pos.h
2591 ${Q} echo
'' >> have_fpos_pos.h
2592 ${Q} echo
'#if !defined(__HAVE_FPOS_POS_H__)' >> have_fpos_pos.h
2593 ${Q} echo
'#define __HAVE_FPOS_POS_H__' >> have_fpos_pos.h
2594 ${Q} echo
'' >> have_fpos_pos.h
2595 ${Q} echo
'' >> have_fpos_pos.h
2596 ${Q} echo
'/* do we have fgetpos & fsetpos functions? */' \
2598 ${Q} ${RM} -f have_fpos_pos.o have_fpos_pos
${EXT}
2599 -${Q} ${LCC} ${HAVE_FPOS} ${HAVE_FPOS_POS} \
2600 ${ICFLAGS} have_fpos_pos.c
-c
>/dev
/null
2>&1; ${TRUE}
2601 -${Q} ${LCC} ${ILDFLAGS} have_fpos_pos.o
-o have_fpos_pos
${EXT} \
2602 >/dev
/null
2>&1; ${TRUE}
2603 -${Q} ${SHELL} -c
"./have_fpos_pos${EXT} > fpos_tmp 2>/dev/null" \
2604 >/dev
/null
2>&1; ${TRUE}
2605 -${Q} if
[ -s fpos_tmp
]; then \
2606 ${CAT} fpos_tmp
>> have_fpos_pos.h
; \
2608 echo
'#undef HAVE_FPOS_POS /* no */' >> have_fpos_pos.h
; \
2609 echo
'' >> have_fpos_pos.h
; \
2610 echo
'#undef FPOS_POS_BITS' >> have_fpos_pos.h
; \
2612 ${Q} echo
'' >> have_fpos_pos.h
2613 ${Q} echo
'' >> have_fpos_pos.h
2614 ${Q} echo
'#endif /* !__HAVE_FPOS_POS_H__ */' >> have_fpos_pos.h
2615 ${Q} ${RM} -f have_fpos_pos
${EXT} have_fpos_pos.o fpos_tmp
2616 ${Q} echo
'have_fpos_pos.h formed'
2617 -@if
[ -z
"${Q}" ]; then \
2619 echo
'=-=-= start of $@ =-=-='; \
2621 echo
'=-=-= end of $@ =-=-='; \
2627 fposval.h
: fposval.c have_fpos.h have_fpos_pos.h have_offscl.h have_posscl.h \
2628 endian_calc.h
${MAKE_FILE}
2629 ${Q} ${RM} -f fposv_tmp fposval.h
2630 ${Q} echo
'forming fposval.h'
2631 ${Q} echo
'/*' > fposval.h
2632 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> fposval.h
2633 ${Q} echo
' */' >> fposval.h
2634 ${Q} echo
'' >> fposval.h
2635 ${Q} echo
'' >> fposval.h
2636 ${Q} echo
'#if !defined(__FPOSVAL_H__)' >> fposval.h
2637 ${Q} echo
'#define __FPOSVAL_H__' >> fposval.h
2638 ${Q} echo
'' >> fposval.h
2639 ${Q} echo
'' >> fposval.h
2640 ${Q} echo
'/* what are our file position & size types? */' >> fposval.h
2641 ${Q} ${RM} -f fposval.o fposval
${EXT}
2642 -${Q} ${LCC} ${ICFLAGS} ${FPOS_BITS} ${OFF_T_BITS} \
2643 ${DEV_BITS} ${INODE_BITS} fposval.c
-c
>/dev
/null
2>&1; ${TRUE}
2644 -${Q} ${LCC} ${ILDFLAGS} fposval.o
-o fposval
${EXT} >/dev
/null \
2646 ${Q} ${SHELL} -c
"./fposval${EXT} fposv_tmp >> fposval.h 2>/dev/null" \
2647 >/dev
/null
2>&1; ${TRUE}
2648 ${Q} echo
'' >> fposval.h
2649 ${Q} echo
'' >> fposval.h
2650 ${Q} echo
'#endif /* !__FPOSVAL_H__ */' >> fposval.h
2651 ${Q} ${RM} -f fposval
${EXT} fposval.o fposv_tmp
2652 ${Q} echo
'fposval.h formed'
2653 -@if
[ -z
"${Q}" ]; then \
2655 echo
'=-=-= start of $@ =-=-='; \
2657 echo
'=-=-= end of $@ =-=-='; \
2663 have_const.h
: have_const.c
${MAKE_FILE}
2664 ${Q} ${RM} -f have_const const_tmp have_const.h
2665 ${Q} echo
'forming have_const.h'
2666 ${Q} echo
'/*' > have_const.h
2667 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_const.h
2668 ${Q} echo
' */' >> have_const.h
2669 ${Q} echo
'' >> have_const.h
2670 ${Q} echo
'' >> have_const.h
2671 ${Q} echo
'#if !defined(__HAVE_CONST_H__)' >> have_const.h
2672 ${Q} echo
'#define __HAVE_CONST_H__' >> have_const.h
2673 ${Q} echo
'' >> have_const.h
2674 ${Q} echo
'' >> have_const.h
2675 ${Q} echo
'/* do we have or want const? */' >> have_const.h
2676 ${Q} ${RM} -f have_const.o have_const
${EXT}
2677 -${Q} ${LCC} ${ICFLAGS} ${HAVE_CONST} have_const.c
-c \
2678 >/dev
/null
2>&1; ${TRUE}
2679 -${Q} ${LCC} ${ILDFLAGS} have_const.o
-o have_const
${EXT} \
2680 >/dev
/null
2>&1; ${TRUE}
2681 -${Q} ${SHELL} -c
"./have_const${EXT} > const_tmp 2>/dev/null" \
2682 >/dev
/null
2>&1; ${TRUE}
2683 -${Q} if
[ -s const_tmp
]; then \
2684 ${CAT} const_tmp
>> have_const.h
; \
2686 echo
'#undef HAVE_CONST /* no */' >> have_const.h
; \
2687 echo
'#undef CONST' >> have_const.h
; \
2688 echo
'#define CONST /* no */' >> have_const.h
; \
2690 ${Q} echo
'' >> have_const.h
2691 ${Q} echo
'' >> have_const.h
2692 ${Q} echo
'#endif /* !__HAVE_CONST_H__ */' >> have_const.h
2693 ${Q} ${RM} -f have_const
${EXT} have_const.o const_tmp
2694 ${Q} echo
'have_const.h formed'
2695 -@if
[ -z
"${Q}" ]; then \
2697 echo
'=-=-= start of $@ =-=-='; \
2699 echo
'=-=-= end of $@ =-=-='; \
2705 have_offscl.h
: have_offscl.c
${MAKE_FILE}
2706 ${Q} ${RM} -f offscl_tmp have_offscl.h
2707 ${Q} echo
'forming have_offscl.h'
2708 ${Q} echo
'/*' > have_offscl.h
2709 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_offscl.h
2710 ${Q} echo
' */' >> have_offscl.h
2711 ${Q} echo
'' >> have_offscl.h
2712 ${Q} echo
'' >> have_offscl.h
2713 ${Q} echo
'#if !defined(__HAVE_OFFSCL_H__)' >> have_offscl.h
2714 ${Q} echo
'#define __HAVE_OFFSCL_H__' >> have_offscl.h
2715 ${Q} echo
'' >> have_offscl.h
2716 ${Q} echo
'' >> have_offscl.h
2717 ${Q} ${RM} -f have_offscl.o have_offscl
${EXT}
2718 -${Q} ${LCC} ${ICFLAGS} ${HAVE_OFFSCL} have_offscl.c
-c \
2719 >/dev
/null
2>&1; ${TRUE}
2720 -${Q} ${LCC} ${ILDFLAGS} have_offscl.o
-o have_offscl
${EXT} \
2721 >/dev
/null
2>&1; ${TRUE}
2722 -${Q} ${SHELL} -c
"./have_offscl${EXT} > offscl_tmp 2>/dev/null" \
2723 >/dev
/null
2>&1; ${TRUE}
2724 -${Q} if
[ -s offscl_tmp
]; then \
2725 ${CAT} offscl_tmp
>> have_offscl.h
; \
2727 echo
'#undef HAVE_OFF_T_SCALAR /* off_t is not a simple value */' \
2730 ${Q} echo
'' >> have_offscl.h
2731 ${Q} echo
'' >> have_offscl.h
2732 ${Q} echo
'#endif /* !__HAVE_OFFSCL_H__ */' >> have_offscl.h
2733 ${Q} ${RM} -f have_offscl
${EXT} have_offscl.o offscl_tmp
2734 ${Q} echo
'have_offscl.h formed'
2735 -@if
[ -z
"${Q}" ]; then \
2737 echo
'=-=-= start of $@ =-=-='; \
2739 echo
'=-=-= end of $@ =-=-='; \
2745 have_posscl.h
: have_posscl.c have_fpos.h
${MAKE_FILE}
2746 ${Q} ${RM} -f have_posscl have_posscl.o posscl_tmp have_posscl.h
2747 ${Q} echo
'forming have_posscl.h'
2748 ${Q} echo
'/*' > have_posscl.h
2749 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_posscl.h
2750 ${Q} echo
' */' >> have_posscl.h
2751 ${Q} echo
'' >> have_posscl.h
2752 ${Q} echo
'' >> have_posscl.h
2753 ${Q} echo
'#if !defined(__HAVE_POSSCL_H__)' >> have_posscl.h
2754 ${Q} echo
'#define __HAVE_POSSCL_H__' >> have_posscl.h
2755 ${Q} echo
'' >> have_posscl.h
2756 ${Q} echo
'' >> have_posscl.h
2757 ${Q} ${RM} -f have_posscl.o have_posscl
2758 -${Q} ${LCC} ${ICFLAGS} ${HAVE_POSSCL} have_posscl.c
-c \
2759 >/dev
/null
2>&1; ${TRUE}
2760 -${Q} ${LCC} ${ILDFLAGS} have_posscl.o
-o have_posscl \
2761 >/dev
/null
2>&1; ${TRUE}
2762 -${Q} ${SHELL} -c
"./have_posscl > posscl_tmp 2>/dev/null" \
2763 >/dev
/null
2>&1; ${TRUE}
2764 -${Q} if
[ -s posscl_tmp
]; then \
2765 ${CAT} posscl_tmp
>> have_posscl.h
; \
2767 echo
'/* FILEPOS is not a simple value */' >> have_posscl.h
; \
2768 echo
'#undef HAVE_FILEPOS_SCALAR' >> have_posscl.h
; \
2770 ${Q} echo
'' >> have_posscl.h
2771 ${Q} echo
'' >> have_posscl.h
2772 ${Q} echo
'#endif /* !__HAVE_POSSCL_H__ */' >> have_posscl.h
2773 ${Q} ${RM} -f have_posscl have_posscl.o posscl_tmp
2774 ${Q} echo
'have_posscl.h formed'
2775 -@if
[ -z
"${Q}" ]; then \
2777 echo
'=-=-= start of $@ =-=-='; \
2779 echo
'=-=-= end of $@ =-=-='; \
2785 align32.h
: align32.c longbits.h have_unistd.h
${MAKE_FILE}
2786 ${Q} ${RM} -f align32 align32_tmp align32.h
2787 ${Q} echo
'forming align32.h'
2788 ${Q} echo
'/*' > align32.h
2789 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> align32.h
2790 ${Q} echo
' */' >> align32.h
2791 ${Q} echo
'' >> align32.h
2792 ${Q} echo
'' >> align32.h
2793 ${Q} echo
'#if !defined(__MUST_ALIGN32_H__)' >> align32.h
2794 ${Q} echo
'#define __MUST_ALIGN32_H__' >> align32.h
2795 ${Q} echo
'' >> align32.h
2796 ${Q} echo
'' >> align32.h
2797 ${Q} echo
'/* must we always align 32 bit accesses? */' >> align32.h
2798 -${Q} if
[ X
"-DMUST_ALIGN32" = X
${ALIGN32} ]; then \
2799 echo
'/* forced to align 32 bit values */' >> align32.h
; \
2800 echo
'#define MUST_ALIGN32' >> align32.h
; \
2804 -${Q} if
[ X
"-UMUST_ALIGN32" = X
${ALIGN32} ]; then \
2805 echo
'/* forced to not require 32 bit alignment */' >> align32.h
; \
2806 echo
'#undef MUST_ALIGN32' >> align32.h
; \
2810 -${Q} if
[ X
= X
${ALIGN32} ]; then \
2811 ${RM} -f align32.o align32
${EXT}; \
2812 ${LCC} ${ICFLAGS} ${ALIGN32} align32.c
-c
>/dev
/null
2>&1; \
2813 ${LCC} ${ILDFLAGS} align32.o
-o align32
${EXT} >/dev
/null
2>&1; \
2815 "./align32${EXT} >align32_tmp 2>/dev/null" >/dev
/null
2>&1; \
2816 if
[ -s align32_tmp
]; then \
2817 ${CAT} align32_tmp
>> align32.h
; \
2819 echo
'/* guess we must align 32 bit values */' >> align32.h
; \
2820 echo
'#define MUST_ALIGN32' >> align32.h
; \
2822 ${RM} -f align32
${EXT} align32.o align32_tmp core
; \
2826 ${Q} echo
'' >> align32.h
2827 ${Q} echo
'' >> align32.h
2828 ${Q} echo
'#endif /* !__MUST_ALIGN32_H__ */' >> align32.h
2829 ${Q} echo
'align32.h formed'
2830 -@if
[ -z
"${Q}" ]; then \
2832 echo
'=-=-= start of $@ =-=-='; \
2834 echo
'=-=-= end of $@ =-=-='; \
2840 have_uid_t.h
: have_uid_t.c have_unistd.h
${MAKE_FILE}
2841 ${Q} ${RM} -f have_uid_t uid_tmp have_uid_t.h
2842 ${Q} echo
'forming have_uid_t.h'
2843 ${Q} echo
'/*' > have_uid_t.h
2844 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_uid_t.h
2845 ${Q} echo
' */' >> have_uid_t.h
2846 ${Q} echo
'' >> have_uid_t.h
2847 ${Q} echo
'' >> have_uid_t.h
2848 ${Q} echo
'#if !defined(__HAVE_UID_T_H__)' >> have_uid_t.h
2849 ${Q} echo
'#define __HAVE_UID_T_H__' >> have_uid_t.h
2850 ${Q} echo
'' >> have_uid_t.h
2851 ${Q} echo
'' >> have_uid_t.h
2852 ${Q} echo
'/* do we have or want uid_t? */' >> have_uid_t.h
2853 ${Q} ${RM} -f have_uid_t.o have_uid_t
${EXT}
2854 -${Q} ${LCC} ${ICFLAGS} ${HAVE_UID_T} have_uid_t.c
-c \
2855 >/dev
/null
2>&1; ${TRUE}
2856 -${Q} ${LCC} ${ILDFLAGS} have_uid_t.o
-o have_uid_t
${EXT} \
2857 >/dev
/null
2>&1; ${TRUE}
2858 -${Q} ${SHELL} -c
"./have_uid_t${EXT} > uid_tmp 2>/dev/null" \
2859 >/dev
/null
2>&1; ${TRUE}
2860 -${Q} if
[ -s uid_tmp
]; then \
2861 ${CAT} uid_tmp
>> have_uid_t.h
; \
2863 echo
'#undef HAVE_UID_T /* no */' >> have_uid_t.h
; \
2865 ${Q} echo
'' >> have_uid_t.h
2866 ${Q} echo
'' >> have_uid_t.h
2867 ${Q} echo
'#endif /* !__HAVE_UID_T_H__ */' >> have_uid_t.h
2868 ${Q} ${RM} -f have_uid_t
${EXT} have_uid_t.o uid_tmp
2869 ${Q} echo
'have_uid_t.h formed'
2870 -@if
[ -z
"${Q}" ]; then \
2872 echo
'=-=-= start of $@ =-=-='; \
2874 echo
'=-=-= end of $@ =-=-='; \
2880 have_newstr.h
: have_newstr.c
${MAKE_FILE}
2881 ${Q} ${RM} -f newstr_tmp have_newstr.h
2882 ${Q} echo
'forming have_newstr.h'
2883 ${Q} echo
'/*' > have_newstr.h
2884 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_newstr.h
2885 ${Q} echo
' */' >> have_newstr.h
2886 ${Q} echo
'' >> have_newstr.h
2887 ${Q} echo
'' >> have_newstr.h
2888 ${Q} echo
'#if !defined(__HAVE_NEWSTR_H__)' >> have_newstr.h
2889 ${Q} echo
'#define __HAVE_NEWSTR_H__' >> have_newstr.h
2890 ${Q} echo
'' >> have_newstr.h
2891 ${Q} echo
'' >> have_newstr.h
2892 ${Q} echo
'/* do we have or want memcpy(), memset() & strchr()? */' \
2894 ${Q} ${RM} -f have_newstr.o have_newstr
${EXT}
2895 -${Q} ${LCC} ${ICFLAGS} ${HAVE_NEWSTR} have_newstr.c
-c \
2896 >/dev
/null
2>&1; ${TRUE}
2897 -${Q} ${LCC} ${ILDFLAGS} have_newstr.o
-o have_newstr
${EXT} \
2898 >/dev
/null
2>&1; ${TRUE}
2899 -${Q} ${SHELL} -c
"./have_newstr${EXT} > newstr_tmp 2>/dev/null" \
2900 >/dev
/null
2>&1; ${TRUE}
2901 -${Q} if
[ -s newstr_tmp
]; then \
2902 ${CAT} newstr_tmp
>> have_newstr.h
; \
2904 echo
'#undef HAVE_NEWSTR /* no */' >> have_newstr.h
; \
2906 ${Q} echo
'' >> have_newstr.h
2907 ${Q} echo
'' >> have_newstr.h
2908 ${Q} echo
'#endif /* !__HAVE_NEWSTR_H__ */' >> have_newstr.h
2909 ${Q} ${RM} -f have_newstr
${EXT} have_newstr.o newstr_tmp
2910 ${Q} echo
'have_newstr.h formed'
2911 -@if
[ -z
"${Q}" ]; then \
2913 echo
'=-=-= start of $@ =-=-='; \
2915 echo
'=-=-= end of $@ =-=-='; \
2921 have_memmv.h
: have_memmv.c
${MAKE_FILE}
2922 ${Q} ${RM} -f have_memmv have_memmv.o memmv_tmp have_memmv.h
2923 ${Q} echo
'forming have_memmv.h'
2924 ${Q} echo
'/*' > have_memmv.h
2925 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_memmv.h
2926 ${Q} echo
' */' >> have_memmv.h
2927 ${Q} echo
'' >> have_memmv.h
2928 ${Q} echo
'' >> have_memmv.h
2929 ${Q} echo
'#if !defined(__HAVE_MEMMV_H__)' >> have_memmv.h
2930 ${Q} echo
'#define __HAVE_MEMMV_H__' >> have_memmv.h
2931 ${Q} echo
'' >> have_memmv.h
2932 ${Q} echo
'' >> have_memmv.h
2933 ${Q} echo
'/* do we have or want memmove()? */' >> have_memmv.h
2934 ${Q} ${RM} -f have_memmv.o have_memmv
2935 -${Q} ${LCC} ${ICFLAGS} ${HAVE_MEMMOVE} have_memmv.c
-c \
2936 >/dev
/null
2>&1; ${TRUE}
2937 -${Q} ${LCC} ${ILDFLAGS} have_memmv.o
-o have_memmv \
2938 >/dev
/null
2>&1; ${TRUE}
2939 -${Q} ${SHELL} -c
"./have_memmv > memmv_tmp 2>/dev/null" \
2940 >/dev
/null
2>&1; ${TRUE}
2941 -${Q} if
[ -s memmv_tmp
]; then \
2942 ${CAT} memmv_tmp
>> have_memmv.h
; \
2944 echo
'#undef HAVE_MEMMOVE /* no */' >> have_memmv.h
; \
2946 ${Q} echo
'' >> have_memmv.h
2947 ${Q} echo
'' >> have_memmv.h
2948 ${Q} echo
'#endif /* !__HAVE_MEMMV_H__ */' >> have_memmv.h
2949 ${Q} ${RM} -f have_memmv have_memmv.o memmv_tmp
2950 ${Q} echo
'have_memmv.h formed'
2951 -@if
[ -z
"${Q}" ]; then \
2953 echo
'=-=-= start of $@ =-=-='; \
2955 echo
'=-=-= end of $@ =-=-='; \
2961 have_ustat.h
: have_ustat.c
${MAKE_FILE}
2962 ${Q} ${RM} -f ustat_tmp have_ustat.h
2963 ${Q} echo
'forming have_ustat.h'
2964 ${Q} echo
'/*' > have_ustat.h
2965 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_ustat.h
2966 ${Q} echo
' */' >> have_ustat.h
2967 ${Q} echo
'' >> have_ustat.h
2968 ${Q} echo
'' >> have_ustat.h
2969 ${Q} echo
'#if !defined(__HAVE_USTAT_H__)' >> have_ustat.h
2970 ${Q} echo
'#define __HAVE_USTAT_H__' >> have_ustat.h
2971 ${Q} echo
'' >> have_ustat.h
2972 ${Q} echo
'' >> have_ustat.h
2973 ${Q} echo
'/* do we have or want ustat()? */' >> have_ustat.h
2974 ${Q} ${RM} -f have_ustat.o have_ustat
${EXT}
2975 -${Q} ${LCC} ${ICFLAGS} ${HAVE_USTAT} have_ustat.c
-c \
2976 >/dev
/null
2>&1; ${TRUE}
2977 -${Q} ${LCC} ${ILDFLAGS} have_ustat.o
-o have_ustat
${EXT} \
2978 >/dev
/null
2>&1; ${TRUE}
2979 -${Q} ${SHELL} -c
"./have_ustat${EXT} > ustat_tmp 2>/dev/null" \
2980 >/dev
/null
2>&1; ${TRUE}
2981 -${Q} if
[ -s ustat_tmp
]; then \
2982 ${CAT} ustat_tmp
>> have_ustat.h
; \
2984 echo
'#undef HAVE_USTAT /* no */' >> have_ustat.h
; \
2986 ${Q} echo
'' >> have_ustat.h
2987 ${Q} echo
'' >> have_ustat.h
2988 ${Q} echo
'#endif /* !__HAVE_USTAT_H__ */' >> have_ustat.h
2989 ${Q} ${RM} -f have_ustat
${EXT} have_ustat.o ustat_tmp
2990 ${Q} echo
'have_ustat.h formed'
2991 -@if
[ -z
"${Q}" ]; then \
2993 echo
'=-=-= start of $@ =-=-='; \
2995 echo
'=-=-= end of $@ =-=-='; \
3001 have_getsid.h
: have_getsid.c
${MAKE_FILE}
3002 ${Q} ${RM} -f getsid_tmp have_getsid.h
3003 ${Q} echo
'forming have_getsid.h'
3004 ${Q} echo
'/*' > have_getsid.h
3005 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_getsid.h
3006 ${Q} echo
' */' >> have_getsid.h
3007 ${Q} echo
'' >> have_getsid.h
3008 ${Q} echo
'' >> have_getsid.h
3009 ${Q} echo
'#if !defined(__HAVE_GETSID_H__)' >> have_getsid.h
3010 ${Q} echo
'#define __HAVE_GETSID_H__' >> have_getsid.h
3011 ${Q} echo
'' >> have_getsid.h
3012 ${Q} echo
'' >> have_getsid.h
3013 ${Q} echo
'/* do we have or want getsid()? */' >> have_getsid.h
3014 ${Q} ${RM} -f have_getsid.o have_getsid
${EXT}
3015 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETSID} have_getsid.c
-c \
3016 >/dev
/null
2>&1; ${TRUE}
3017 -${Q} ${LCC} ${ILDFLAGS} have_getsid.o
-o have_getsid \
3018 >/dev
/null
2>&1; ${TRUE}
3019 -${Q} ${SHELL} -c
"./have_getsid${EXT} > getsid_tmp 2>/dev/null" \
3020 >/dev
/null
2>&1; ${TRUE}
3021 -${Q} if
[ -s getsid_tmp
]; then \
3022 ${CAT} getsid_tmp
>> have_getsid.h
; \
3024 echo
'#undef HAVE_GETSID /* no */' >> have_getsid.h
; \
3026 ${Q} echo
'' >> have_getsid.h
3027 ${Q} echo
'' >> have_getsid.h
3028 ${Q} echo
'#endif /* !__HAVE_GETSID_H__ */' >> have_getsid.h
3029 ${Q} ${RM} -f have_getsid
${EXT} have_getsid.o getsid_tmp
3030 ${Q} echo
'have_getsid.h formed'
3031 -@if
[ -z
"${Q}" ]; then \
3033 echo
'=-=-= start of $@ =-=-='; \
3035 echo
'=-=-= end of $@ =-=-='; \
3041 have_getpgid.h
: have_getpgid.c
${MAKE_FILE}
3042 ${Q} ${RM} -f getpgid_tmp have_getpgid.h
3043 ${Q} echo
'forming have_getpgid.h'
3044 ${Q} echo
'/*' > have_getpgid.h
3045 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
3047 ${Q} echo
' */' >> have_getpgid.h
3048 ${Q} echo
'' >> have_getpgid.h
3049 ${Q} echo
'' >> have_getpgid.h
3050 ${Q} echo
'#if !defined(__HAVE_GETPGID_H__)' >> have_getpgid.h
3051 ${Q} echo
'#define __HAVE_GETPGID_H__' >> have_getpgid.h
3052 ${Q} echo
'' >> have_getpgid.h
3053 ${Q} echo
'' >> have_getpgid.h
3054 ${Q} echo
'/* do we have or want getpgid()? */' >> have_getpgid.h
3055 ${Q} ${RM} -f have_getpgid.o have_getpgid
${EXT}
3056 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETPGID} have_getpgid.c
-c \
3057 >/dev
/null
2>&1; ${TRUE}
3058 -${Q} ${LCC} ${ILDFLAGS} have_getpgid.o
-o have_getpgid
${EXT} \
3059 >/dev
/null
2>&1; ${TRUE}
3060 -${Q} ${SHELL} -c
"./have_getpgid${EXT} > getpgid_tmp 2>/dev/null" \
3061 >/dev
/null
2>&1; ${TRUE}
3062 -${Q} if
[ -s getpgid_tmp
]; then \
3063 ${CAT} getpgid_tmp
>> have_getpgid.h
; \
3065 echo
'#undef HAVE_GETPGID /* no */' >> have_getpgid.h
; \
3067 ${Q} echo
'' >> have_getpgid.h
3068 ${Q} echo
'' >> have_getpgid.h
3069 ${Q} echo
'#endif /* !__HAVE_GETPGID_H__ */' >> have_getpgid.h
3070 ${Q} ${RM} -f have_getpgid
${EXT} have_getpgid.o getpgid_tmp
3071 ${Q} echo
'have_getpgid.h formed'
3072 -@if
[ -z
"${Q}" ]; then \
3074 echo
'=-=-= start of $@ =-=-='; \
3076 echo
'=-=-= end of $@ =-=-='; \
3082 have_gettime.h
: have_gettime.c
${MAKE_FILE}
3083 ${Q} ${RM} -f gettime_tmp have_gettime.h
3084 ${Q} echo
'forming have_gettime.h'
3085 ${Q} echo
'/*' > have_gettime.h
3086 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
3088 ${Q} echo
' */' >> have_gettime.h
3089 ${Q} echo
'' >> have_gettime.h
3090 ${Q} echo
'' >> have_gettime.h
3091 ${Q} echo
'#if !defined(__HAVE_GETTIME_H__)' >> have_gettime.h
3092 ${Q} echo
'#define __HAVE_GETTIME_H__' >> have_gettime.h
3093 ${Q} echo
'' >> have_gettime.h
3094 ${Q} echo
'' >> have_gettime.h
3095 ${Q} echo
'/* do we have or want clock_gettime()? */' >> have_gettime.h
3096 ${Q} ${RM} -f have_gettime.o have_gettime
${EXT}
3097 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETTIME} have_gettime.c
-c \
3098 >/dev
/null
2>&1; ${TRUE}
3099 -${Q} ${LCC} ${ILDFLAGS} have_gettime.o
-o have_gettime \
3100 >/dev
/null
2>&1; ${TRUE}
3101 -${Q} ${SHELL} -c
"./have_gettime${EXT} > gettime_tmp 2>/dev/null" \
3102 >/dev
/null
2>&1; ${TRUE}
3103 -${Q} if
[ -s gettime_tmp
]; then \
3104 ${CAT} gettime_tmp
>> have_gettime.h
; \
3106 echo
'#undef HAVE_GETTIME /* no */' >> have_gettime.h
; \
3108 ${Q} echo
'' >> have_gettime.h
3109 ${Q} echo
'' >> have_gettime.h
3110 ${Q} echo
'#endif /* !__HAVE_GETTIME_H__ */' >> have_gettime.h
3111 ${Q} ${RM} -f have_gettime
${EXT} have_gettime.o gettime_tmp
3112 ${Q} echo
'have_gettime.h formed'
3113 -@if
[ -z
"${Q}" ]; then \
3115 echo
'=-=-= start of $@ =-=-='; \
3117 echo
'=-=-= end of $@ =-=-='; \
3123 have_getprid.h
: have_getprid.c
${MAKE_FILE}
3124 ${Q} ${RM} -f getprid_tmp have_getprid.h
3125 ${Q} echo
'forming have_getprid.h'
3126 ${Q} echo
'/*' > have_getprid.h
3127 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
3129 ${Q} echo
' */' >> have_getprid.h
3130 ${Q} echo
'' >> have_getprid.h
3131 ${Q} echo
'' >> have_getprid.h
3132 ${Q} echo
'#if !defined(__HAVE_GETPRID_H__)' >> have_getprid.h
3133 ${Q} echo
'#define __HAVE_GETPRID_H__' >> have_getprid.h
3134 ${Q} echo
'' >> have_getprid.h
3135 ${Q} echo
'' >> have_getprid.h
3136 ${Q} echo
'/* do we have or want getprid()? */' >> have_getprid.h
3137 ${Q} ${RM} -f have_getprid.o have_getprid
${EXT}
3138 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETPRID} have_getprid.c
-c \
3139 >/dev
/null
2>&1; ${TRUE}
3140 -${Q} ${LCC} ${ILDFLAGS} have_getprid.o
-o have_getprid
${EXT} \
3141 >/dev
/null
2>&1; ${TRUE}
3142 -${Q} ${SHELL} -c
"./have_getprid${EXT} > getprid_tmp 2>/dev/null" \
3143 >/dev
/null
2>&1; ${TRUE}
3144 -${Q} if
[ -s getprid_tmp
]; then \
3145 ${CAT} getprid_tmp
>> have_getprid.h
; \
3147 echo
'#undef HAVE_GETPRID /* no */' >> have_getprid.h
; \
3149 ${Q} echo
'' >> have_getprid.h
3150 ${Q} echo
'' >> have_getprid.h
3151 ${Q} echo
'#endif /* !__HAVE_GETPRID_H__ */' >> have_getprid.h
3152 ${Q} ${RM} -f have_getprid
${EXT} have_getprid.o getprid_tmp
3153 ${Q} echo
'have_getprid.h formed'
3154 -@if
[ -z
"${Q}" ]; then \
3156 echo
'=-=-= start of $@ =-=-='; \
3158 echo
'=-=-= end of $@ =-=-='; \
3164 have_urandom.h
: ${MAKE_FILE}
3165 ${Q} ${RM} -f have_urandom.h
3166 ${Q} echo
'forming have_urandom.h'
3167 ${Q} echo
'/*' > have_urandom.h
3168 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
3170 ${Q} echo
' */' >> have_urandom.h
3171 ${Q} echo
'' >> have_urandom.h
3172 ${Q} echo
'' >> have_urandom.h
3173 ${Q} echo
'#if !defined(__HAVE_URANDOM_H__)' >> have_urandom.h
3174 ${Q} echo
'#define __HAVE_URANDOM_H__' >> have_urandom.h
3175 ${Q} echo
'' >> have_urandom.h
3176 ${Q} echo
'' >> have_urandom.h
3177 ${Q} echo
'/* do we have /dev/urandom? */' >> have_urandom.h
3178 -${Q} if
[ X
"${HAVE_URANDOM_H}" = X
"YES" ]; then \
3179 echo
'#define HAVE_URANDOM_H /* yes */' >> have_urandom.h
; \
3180 elif
[ X
"${HAVE_URANDOM_H}" = X
"NO" ]; then \
3181 echo
'#undef HAVE_URANDOM_H /* no */' >> have_urandom.h
; \
3182 elif
[ -r
/dev
/urandom
] 2>/dev
/null
; then \
3183 echo
'#define HAVE_URANDOM_H /* yes */' >> have_urandom.h
; \
3185 echo
'#undef HAVE_URANDOM_H /* no */' >> have_urandom.h
; \
3187 ${Q} echo
'' >> have_urandom.h
3188 ${Q} echo
'' >> have_urandom.h
3189 ${Q} echo
'#endif /* !__HAVE_URANDOM_H__ */' >> have_urandom.h
3190 ${Q} echo
'have_urandom.h formed'
3191 -@if
[ -z
"${Q}" ]; then \
3193 echo
'=-=-= start of $@ =-=-='; \
3195 echo
'=-=-= end of $@ =-=-='; \
3201 have_rusage.h
: have_rusage.c
${MAKE_FILE}
3202 ${Q} ${RM} -f rusage_tmp have_rusage.h
3203 ${Q} echo
'forming have_rusage.h'
3204 ${Q} echo
'/*' > have_rusage.h
3205 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
3207 ${Q} echo
' */' >> have_rusage.h
3208 ${Q} echo
'' >> have_rusage.h
3209 ${Q} echo
'' >> have_rusage.h
3210 ${Q} echo
'#if !defined(__HAVE_RUSAGE_H__)' >> have_rusage.h
3211 ${Q} echo
'#define __HAVE_RUSAGE_H__' >> have_rusage.h
3212 ${Q} echo
'' >> have_rusage.h
3213 ${Q} echo
'' >> have_rusage.h
3214 ${Q} echo
'/* do we have or want getrusage()? */' >> have_rusage.h
3215 ${Q} ${RM} -f have_rusage.o have_rusage
${EXT}
3216 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETRUSAGE} have_rusage.c
-c \
3217 >/dev
/null
2>&1; ${TRUE}
3218 -${Q} ${LCC} ${ILDFLAGS} have_rusage.o
-o have_rusage
${EXT} \
3219 >/dev
/null
2>&1; ${TRUE}
3220 -${Q} ${SHELL} -c
"./have_rusage${EXT} > rusage_tmp 2>/dev/null" \
3221 >/dev
/null
2>&1; ${TRUE}
3222 -${Q} if
[ -s rusage_tmp
]; then \
3223 ${CAT} rusage_tmp
>> have_rusage.h
; \
3225 echo
'#undef HAVE_GETRUSAGE /* no */' >> have_rusage.h
; \
3227 ${Q} echo
'' >> have_rusage.h
3228 ${Q} echo
'' >> have_rusage.h
3229 ${Q} echo
'#endif /* !__HAVE_RUSAGE_H__ */' >> have_rusage.h
3230 ${Q} ${RM} -f have_rusage
${EXT} have_rusage.o rusage_tmp
3231 ${Q} echo
'have_rusage.h formed'
3232 -@if
[ -z
"${Q}" ]; then \
3234 echo
'=-=-= start of $@ =-=-='; \
3236 echo
'=-=-= end of $@ =-=-='; \
3242 have_strdup.h
: have_strdup.c
${MAKE_FILE}
3243 ${Q} ${RM} -f strdup_tmp have_strdup.h
3244 ${Q} echo
'forming have_strdup.h'
3245 ${Q} echo
'/*' > have_strdup.h
3246 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_strdup.h
3247 ${Q} echo
' */' >> have_strdup.h
3248 ${Q} echo
'' >> have_strdup.h
3249 ${Q} echo
'' >> have_strdup.h
3250 ${Q} echo
'#if !defined(__HAVE_STRDUP_H__)' >> have_strdup.h
3251 ${Q} echo
'#define __HAVE_STRDUP_H__' >> have_strdup.h
3252 ${Q} echo
'' >> have_strdup.h
3253 ${Q} echo
'' >> have_strdup.h
3254 ${Q} echo
'/* do we have or want getstrdup()? */' >> have_strdup.h
3255 ${Q} ${RM} -f have_strdup.o have_strdup
${EXT}
3256 -${Q} ${LCC} ${ICFLAGS} ${HAVE_STRDUP} have_strdup.c
-c \
3257 >/dev
/null
2>&1; ${TRUE}
3258 -${Q} ${LCC} ${ILDFLAGS} have_strdup.o
-o have_strdup \
3259 >/dev
/null
2>&1; ${TRUE}
3260 -${Q} ${SHELL} -c
"./have_strdup${EXT} > strdup_tmp 2>/dev/null" \
3261 >/dev
/null
2>&1; ${TRUE}
3262 -${Q} if
[ -s strdup_tmp
]; then \
3263 ${CAT} strdup_tmp
>> have_strdup.h
; \
3265 echo
'#undef HAVE_STRDUP /* no */' >> have_strdup.h
; \
3267 ${Q} echo
'' >> have_strdup.h
3268 ${Q} echo
'' >> have_strdup.h
3269 ${Q} echo
'#endif /* !__HAVE_STRDUP_H__ */' >> have_strdup.h
3270 ${Q} ${RM} -f have_strdup
${EXT} have_strdup.o strdup_tmp
3271 ${Q} echo
'have_strdup.h formed'
3272 -@if
[ -z
"${Q}" ]; then \
3274 echo
'=-=-= start of $@ =-=-='; \
3276 echo
'=-=-= end of $@ =-=-='; \
3282 args.h
: have_stdvs.c have_varvs.c have_string.h have_unistd.h have_string.h
3283 ${Q} ${RM} -f args.h
3284 ${Q} echo
'forming args.h'
3285 ${Q} echo
'/*' > args.h
3286 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> args.h
3287 ${Q} echo
' */' >> args.h
3288 ${Q} echo
'' >> args.h
3289 ${Q} echo
'' >> args.h
3290 ${Q} echo
'#if !defined(__ARGS_H__)' >> args.h
3291 ${Q} echo
'#define __ARGS_H__' >> args.h
3292 ${Q} echo
'' >> args.h
3293 ${Q} echo
'' >> args.h
3294 ${Q} ${RM} -f have_stdvs.o have_stdvs
${EXT}
3295 -${Q} ${LCC} ${ICFLAGS} ${HAVE_VSPRINTF} have_stdvs.c
-c \
3296 >/dev
/null
2>&1; ${TRUE}
3297 -${Q} ${LCC} ${ILDFLAGS} have_stdvs.o
-o have_stdvs
${EXT} \
3298 >/dev
/null
2>&1; ${TRUE}
3299 -${Q} if .
/have_stdvs
${EXT} >>args.h
2>/dev
/null
; then \
3300 ${TOUCH} have_args.sh
; \
3304 -${Q} if
[ ! -f have_args.sh
] && [ X
"${HAVE_VSPRINTF}" = X
]; then \
3305 ${RM} -f have_stdvs.o have_stdvs
${EXT} have_varvs.o
; \
3306 ${RM} -f have_varvs
${EXT}; \
3307 ${LCC} ${ICFLAGS} ${HAVE_VSPRINTF} have_varvs.c
-c \
3309 ${LCC} ${ILDFLAGS} have_varvs.o
-o have_varvs
${EXT} 2>/dev
/null
; \
3310 if .
/have_varvs
${EXT} >>args.h
2>/dev
/null
; then \
3311 ${TOUCH} have_args.sh
; \
3318 -${Q} if
[ -f have_args.sh
]; then \
3319 echo
'exit 0' > have_args.sh
; \
3321 echo
'exit 1' > have_args.sh
; \
3322 echo
"Unable to determine what type of variable args and"; \
3323 echo
"what type of vsprintf() should be used. Set or change"; \
3324 echo
"the Makefile variable HAVE_VSPRINTF."; \
3326 ${Q} sh .
/have_args.sh
3327 ${Q} echo
'' >> args.h
3328 ${Q} echo
'' >> args.h
3329 ${Q} echo
'#endif /* !__ARGS_H__ */' >> args.h
3330 ${Q} ${RM} -f have_stdvs.o have_varvs.o have_varvs
${EXT} have_args.sh
3332 ${Q} echo
'args.h formed'
3333 -@if
[ -z
"${Q}" ]; then \
3335 echo
'=-=-= start of $@ =-=-='; \
3337 echo
'=-=-= end of $@ =-=-='; \
3343 calcerr.h
: calcerr.tbl calcerr_h.sed calcerr_h.awk
${MAKE_FILE}
3344 ${Q} ${RM} -f calerr.h
3345 ${Q} echo
'forming calcerr.h'
3346 ${Q} echo
'/*' > calcerr.h
3347 ${Q} echo
' * DO NOT EDIT' >> calcerr.h
3348 ${Q} echo
' *' >> calcerr.h
3349 ${Q} echo
' * generated by calcerr.tbl via Makefile' >> calcerr.h
3350 ${Q} echo
' */' >> calcerr.h
3351 ${Q} echo
'' >> calcerr.h
3352 ${Q} echo
'' >> calcerr.h
3353 ${Q} echo
'#if !defined(__CALCERR_H__)' >> calcerr.h
3354 ${Q} echo
'#define __CALCERR_H__' >> calcerr.h
3355 ${Q} echo
'' >> calcerr.h
3356 ${Q} echo
'' >> calcerr.h
3357 ${Q} ${SED} -f calcerr_h.sed
< calcerr.tbl | \
3358 ${AWK} -f calcerr_h.awk
>> calcerr.h
3359 ${Q} echo
'' >> calcerr.h
3360 ${Q} echo
'' >> calcerr.h
3361 ${Q} echo
'#endif /* !__CALCERR_H__ */' >> calcerr.h
3362 ${Q} echo
'calcerr.h formed'
3363 -@if
[ -z
"${Q}" ]; then \
3365 echo
'=-=-= start of $@ =-=-='; \
3367 echo
'=-=-= end of $@ =-=-='; \
3373 calcerr.c
: calcerr.tbl calcerr_c.sed calcerr_c.awk
${MAKE_FILE}
3374 ${Q} ${RM} -f calerr.c
3375 ${Q} echo
'forming calcerr.c'
3376 ${Q} echo
'/*' > calcerr.c
3377 ${Q} echo
' * DO NOT EDIT' >> calcerr.c
3378 ${Q} echo
' *' >> calcerr.c
3379 ${Q} echo
' * generated by calcerr.tbl via Makefile' >> calcerr.c
3380 ${Q} echo
' */' >> calcerr.c
3381 ${Q} echo
'' >> calcerr.c
3382 ${Q} ${SED} -f calcerr_c.sed
< calcerr.tbl | \
3383 ${AWK} -f calcerr_c.awk
>> calcerr.c
3384 ${Q} echo
'calcerr.c formed'
3385 -@if
[ -z
"${Q}" ]; then \
3387 echo
'=-=-= start of $@ =-=-='; \
3389 echo
'=-=-= end of $@ =-=-='; \
3395 no_implicit.arg
: no_implicit.c
${MAKE_FILE}
3396 ${Q} ${RM} -f no_implicit
${EXT} no_implicit.o no_implicit.arg
3397 ${Q} echo
'forming no_implicit.arg'
3398 -${Q} if
[ X
"${HAVE_NO_IMPLICIT}" = X
"YES" ]; then \
3399 echo
""'-Wno-implicit' > no_implicit.arg
; \
3400 elif
[ X
"${HAVE_NO_IMPLICIT}" = X
"NO" ]; then \
3401 ${TOUCH} no_implicit.arg
; \
3403 ${LCC} -Wno-implicit
${ICFLAGS} -DHAVE_NO_IMPLICIT \
3404 no_implicit.c
-c
>/dev
/null
2>&1; \
3405 ${LCC} ${ILDFLAGS} no_implicit.o
-o no_implicit
${EXT} \
3407 ${SHELL} -c
"./no_implicit${EXT} > no_implicit.arg 2>/dev/null" \
3408 >/dev
/null
2>&1; ${TRUE}; \
3410 ${Q} echo
'no_implicit.arg formed'
3411 -@if
[ -z
"${Q}" ]; then \
3413 echo
'=-=-= start of $@ =-=-='; \
3415 echo
'=-=-= end of $@ =-=-='; \
3421 have_unused.h
: have_unused.c
${MAKE_FILE}
3422 ${Q} ${RM} -f unused_tmp have_unused.h
3423 ${Q} echo
'forming have_unused.h'
3424 ${Q} echo
'/*' > have_unused.h
3425 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_unused.h
3426 ${Q} echo
' */' >> have_unused.h
3427 ${Q} echo
'' >> have_unused.h
3428 ${Q} echo
'' >> have_unused.h
3429 ${Q} echo
'#if !defined(__HAVE_UNUSED_H__)' >> have_unused.h
3430 ${Q} echo
'#define __HAVE_UNUSED_H__' >> have_unused.h
3431 ${Q} echo
'' >> have_unused.h
3432 ${Q} echo
'' >> have_unused.h
3433 ${Q} echo
'/* do we have/want the unused attribute? */' >> have_unused.h
3434 ${Q} ${RM} -f have_unused.o have_unused
${EXT}
3435 -${Q} ${LCC} ${ICFLAGS} ${HAVE_UNUSED} have_unused.c
-c \
3436 >/dev
/null
2>&1; ${TRUE}
3437 -${Q} ${LCC} ${ILDFLAGS} have_unused.o
-o have_unused \
3438 >/dev
/null
2>&1; ${TRUE}
3439 -${Q} ${SHELL} -c
"./have_unused${EXT} > unused_tmp 2>/dev/null" \
3440 >/dev
/null
2>&1; ${TRUE}
3441 -${Q} if
[ -s unused_tmp
]; then \
3442 ${CAT} unused_tmp
>> have_unused.h
; \
3444 echo
'#undef HAVE_UNUSED /* no */' >> have_unused.h
; \
3445 echo
'#undef UNUSED' >> have_unused.h
; \
3446 echo
'#define UNUSED /* no */' >> have_unused.h
; \
3448 ${Q} echo
'' >> have_unused.h
3449 ${Q} echo
'' >> have_unused.h
3450 ${Q} echo
'#endif /* !__HAVE_UNUSED_H__ */' >> have_unused.h
3451 ${Q} ${RM} -f have_unused
${EXT} have_unused.o unused_tmp
3452 ${Q} echo
'have_unused.h formed'
3453 -@if
[ -z
"${Q}" ]; then \
3455 echo
'=-=-= start of $@ =-=-='; \
3457 echo
'=-=-= end of $@ =-=-='; \
3465 # Build .h files for windoz based systems
3467 # This is really a internal utility rule that is used to create the
3468 # win32 sub-directory for distribution.
3472 win32_hsrc
: win32.mkdef
${MAKE_FILE}
3473 ${Q} echo
'forming win32 directory'
3474 ${Q} ${RM} -rf win32
3476 ${Q} ${CP} ${UTIL_C_SRC} win32
3477 ${Q} ${CP} ${UTIL_MISC_SRC} win32
3478 ${Q} ${CP} ${MAKE_FILE} win32
/${MAKE_FILE}
3480 echo
"${MAKE} -f ${MAKE_FILE} hsrc `${CAT} win32.mkdef` EXT="; \
3481 ${MAKE} -f
${MAKE_FILE} hsrc
`${CAT} win32.mkdef` EXT
=; \
3482 ${RM} -f
${UTIL_C_SRC}; \
3483 ${RM} -f
${UTIL_MISC_SRC}; \
3484 ${RM} -f
${UTIL_OBJS}; \
3485 ${RM} -f
${UTIL_PROGS}; \
3486 ${RM} -f
${UTIL_FILES}; \
3487 ${RM} -f
${MAKE_FILE})
3488 ${Q} echo
'win32 directory formed'
3492 # These rules are used in the process of building the BUILD_H_SRC.
3496 endian.o
: endian.c have_unistd.h
3497 ${LCC} ${ICFLAGS} ${CALC_BYTE_ORDER} endian.c
-c
3499 endian
${EXT}: endian.o
3501 ${LCC} ${ICFLAGS} endian.o
-o
$@
3503 longbits.o
: longbits.c have_unistd.h
3504 ${LCC} ${ICFLAGS} longbits.c
-c
3506 longbits
${EXT}: longbits.o
3508 ${LCC} ${ICFLAGS} longbits.o
-o
$@
3512 # These two .all rules are used to determine of the lower level
3513 # directory has had its all rule performed.
3517 cal
/.
all: cal
/Makefile
3518 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3519 ${V} echo
'=-=-=-=-= Invoking all rule for cal =-=-=-=-='
3521 cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} all
3522 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3523 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3525 help
/.
all: help
/Makefile
3526 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3527 ${V} echo
'=-=-=-=-= Invoking all rule for help =-=-=-=-='
3529 cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} all
3530 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3531 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3533 help
/builtin
: help
/Makefile \
3534 func.c help
/builtin.top help
/builtin.end help
/funclist.sed
3535 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3536 ${V} echo
'=-=-=-=-= Invoking builtin rule for help =-=-=-=-='
3538 cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} builtin
3539 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3540 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3542 cscript
/.
all: ${CSCRIPT_TARGETS}
3544 ${CSCRIPT_TARGETS}: cscript
/Makefile
3545 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3546 ${V} echo
'=-=-=-=-= Invoking all rule for cscript =-=-=-=-='
3547 ${RM} -f cscript
/.
all
3548 cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} all
3549 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3550 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3552 #if 0 /* start of skip for non-Gnu makefiles */
3554 #endif /* end of skip for non-Gnu makefiles */
3555 custom
/.
all: custom
/Makefile
3556 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3557 ${V} echo
'=-=-=-=-= Invoking all rule for custom =-=-=-=-='
3559 cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} all
3560 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3561 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3563 custom
/libcustcalc
${LIB_EXT_VERSION}: custom
/Makefile
3564 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3565 ${V} echo
'=-=-=-=-= Invoking all rule for custom =-=-=-=-='
3566 cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} $@
3567 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3568 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3570 libcustcalc
${LIB_EXT_VERSION}: custom
/libcustcalc
${LIB_EXT_VERSION}
3574 libcustcalc
${LIB_EXT_VERS}: custom
/libcustcalc
${LIB_EXT_VERSION}
3578 libcustcalc
${LIB_EXT_VER}: libcustcalc
${LIB_EXT_VERSION}
3582 libcustcalc
${LIB_EXT_VE}: libcustcalc
${LIB_EXT_VERSION}
3586 libcustcalc
${LIB_EXT}: libcustcalc
${LIB_EXT_VERSION}
3589 #if 0 /* start of skip for non-Gnu makefiles */
3591 #endif /* end of skip for non-Gnu makefiles */
3595 # building calc-static and static lib*.a libraires
3599 calc-static
${EXT}: .hsrc
${CALCOBJS} \
3600 ${CALC_STATIC_LIBS} ${MAKE_FILE}
3602 ${CC} ${LDFLAGS} ${CALCOBJS} ${LD_STATIC} ${CALC_STATIC_LIBS} \
3603 ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
3605 libcustcalc.a
: custom
/libcustcalc.a
3609 libcalc.a
: ${LIBOBJS} ${MAKE_FILE}
3611 ${AR} qc libcalc.a
${LIBOBJS}
3613 ${CHMOD} 0644 libcalc.a
3615 #if 0 /* start of skip for non-Gnu makefiles */
3617 #endif /* end of skip for non-Gnu makefiles */
3618 custom
/libcustcalc.a
: custom
/Makefile
3619 cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} libcustcalc.a
3620 #if 0 /* start of skip for non-Gnu makefiles */
3622 #endif /* end of skip for non-Gnu makefiles */
3624 sample_rand-static
${EXT}: sample_rand.o
${CALC_STATIC_LIBS} ${MAKE_FILE}
3625 ${CC} ${LDFLAGS} sample_rand.o
${LD_STATIC} \
3626 ${CALC_STATIC_LIBS} ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
3628 sample_many-static
${EXT}: sample_many.o
${CALC_STATIC_LIBS} ${MAKE_FILE}
3629 ${CC} ${LDFLAGS} sample_many.o
${LD_STATIC} \
3630 ${CALC_STATIC_LIBS} ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
3634 # Home grown make dependency rules. Your system make not support
3635 # or have the needed tools. You can ignore this section.
3637 # We will form a skelaton tree of *.c files containing only #include "foo.h"
3638 # lines and .h files containing the same lines surrounded by multiple include
3639 # prevention lines. This allows us to build a static depend list that will
3640 # satisfy all possible cpp symbol definition combinations.
3644 depend
: custom
/Makefile hsrc
3645 ${Q} if
[ -f
${MAKE_FILE}.bak
]; then \
3646 echo
"${MAKE_FILE}.bak exists, remove or move it"; \
3651 ${V} echo
'=-=-=-=-= Invoking depend rule for cscript =-=-=-=-='
3652 ${Q} cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} depend
3653 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3654 ${V} echo
'=-=-=-=-= Invoking depend rule for custom =-=-=-=-='
3655 ${Q} cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} depend
3656 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3657 ${Q} echo forming skel
3660 -${Q} for i in
${C_SRC} ${BUILD_C_SRC}; do \
3661 ${SED} -n
'/^#[ ]*include[ ]*"/p' "$$i" | \
3662 ${GREP} -v
'\.\./getopt/getopt\.h' > "skel/$$i"; \
3664 ${Q} ${MKDIR} skel
/custom
3665 -${Q} for i in
${H_SRC} ${BUILD_H_SRC} custom.h
/dev
/null
; do \
3666 if
[ X
"$$i" != X
"/dev/null" ]; then \
3667 tag
="`echo $$i | ${SED} 's/[\.+,:]/_/g'`"; \
3668 echo
"#if !defined($$tag)" > "skel/$$i"; \
3669 echo
"#define $$tag" >> "skel/$$i"; \
3670 ${SED} -n
'/^#[ ]*include[ ]*"/p' "$$i" | \
3671 LANG
=C
${SORT} -u
>> "skel/$$i"; \
3672 echo
'#endif /* '"$$tag"' */' >> "skel/$$i"; \
3675 ${Q} ${RM} -f skel
/makedep.out
3676 ${Q} echo skel formed
3677 ${Q} echo forming dependency list
3678 ${Q} :> skel
/makedep.out
3680 ${MAKEDEPEND} -w
1 -f makedep.out
${C_SRC} ${BUILD_C_SRC}
3681 -${Q} for i in
${C_SRC} ${BUILD_C_SRC} /dev
/null
; do \
3682 if
[ X
"$$i" != X
"/dev/null" ]; then \
3683 echo
"$$i" |
${SED} 's/^\(.*\)\.c/\1.o: \1.c/'; \
3685 done
>> skel
/makedep.out
3686 ${Q} LANG
=C
${SORT} -u skel
/makedep.out
-o skel
/makedep.out
3687 ${Q} echo dependency list formed
3688 ${Q} echo forming new
${MAKE_FILE}
3689 ${Q} ${RM} -f
${MAKE_FILE}.bak
3690 ${Q} ${MV} ${MAKE_FILE} ${MAKE_FILE}.bak
3691 ${Q} ${SED} -n
'1,/^# DO NOT DELETE THIS LINE/p' \
3692 ${MAKE_FILE}.bak
> ${MAKE_FILE}
3693 ${Q} ${GREP} -v
'^#' skel
/makedep.out
>> ${MAKE_FILE}
3695 -${Q} if
${CMP} -s
${MAKE_FILE}.bak
${MAKE_FILE}; then \
3696 echo
'top level ${MAKE_FILE} was already up to date'; \
3697 ${MV} -f
${MAKE_FILE}.bak
${MAKE_FILE}; \
3699 ${RM} -f
${MAKE_FILE}.tmp
; \
3700 ${MV} ${MAKE_FILE} ${MAKE_FILE}.tmp
; \
3701 if
[ -d RCS
-a
! -w
"${MAKE_FILE}" ]; then \
3702 ${CO} -l
${MAKE_FILE}; \
3704 ${MV} ${MAKE_FILE}.tmp
${MAKE_FILE}; \
3705 if
[ -d RCS
]; then \
3706 echo
'********************************************************'; \
3707 echo
'new top level ${MAKE_FILE} formed -- need to check it in'; \
3708 echo
'********************************************************'; \
3712 # generate the list of h files for lower level depend use
3715 -${Q} for i in
${H_SRC} ${BUILD_H_SRC} /dev
/null
; do \
3716 if
[ X
"$$i" != X
"/dev/null" ]; then \
3726 # This rule is the most accurate as it uses calc source to
3727 # produce the version value. This rule produces a full
3728 # version string. Note that the full version could be 4
3729 # or 3 levels long depending on the minor patch number.
3732 # This rule is the most accurate as it uses calc source to
3733 # produce the version value. This rule produces only a
3734 # 3 level version string.
3737 # This rule is the most accurate as it uses calc source to
3738 # produce the version value. This rule produces only a
3739 # 2 level version string.
3742 # This rule is the most accurate as it uses calc source to
3743 # produce the version value. This rule produces only a
3744 # 1 level version string.
3747 # This rule simply echos the value found in this makefile.
3748 # This rule produces the full version string. Note that the
3749 # full version could be 4 or 3 levels long depending on the
3750 # minor patch number.
3753 # This rule simply echos the value found in this makefile.
3754 # This rule produces only a 3 level version string.
3757 # This rule simply echos the value found in this makefile.
3758 # This rule produces only a 2 level version string.
3761 # This rule simply echos the value found in this makefile.
3762 # This rule produces only a 1 level version string.
3766 calc_version
: ver_calc
${EXT}
3769 calc_vers
: ver_calc
${EXT}
3770 @.
/ver_calc
${EXT} -V
3772 calc_ver
: ver_calc
${EXT}
3773 @.
/ver_calc
${EXT} -V |
${SED} -e
's/\.[^.]*$$//'
3775 calc_ve
: ver_calc
${EXT}
3776 @.
/ver_calc
${EXT} -V |
${SED} -e
's/\.[^.]*\.[^.]*$$//'
3790 ver_calc
${EXT}: version.c have_unused.h
3792 ${LCC} ${ICFLAGS} -DCALC_VER
${ILDFLAGS} version.c
-o
$@
3796 # File distribution list generation. You can ignore this section.
3798 # We will form the names of source files as if they were in a
3799 # sub-directory called calc.
3803 distlist
: custom
/Makefile
${DISTLIST}
3804 ${Q} (for i in
${DISTLIST} /dev
/null
; do \
3805 if
[ X
"$$i" != X
"/dev/null" ]; then \
3809 for i in
${BUILD_H_SRC} ${BUILD_C_SRC} /dev
/null
; do \
3810 if
[ X
"$$i" != X
"/dev/null" ]; then \
3814 (cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} $@
); \
3815 (cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} $@
); \
3816 (cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} $@
); \
3817 (cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} $@
) \
3820 distdir
: custom
/Makefile
3823 (cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} $@
); \
3824 (cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} $@
); \
3825 (cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} $@
); \
3826 (cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} $@
) \
3829 calcliblist
: custom
/Makefile
3830 ${Q} (for i in
${CALCLIBLIST} /dev
/null
; do \
3831 if
[ X
"$$i" != X
"/dev/null" ]; then \
3835 (cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} $@
); \
3836 (cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} $@
); \
3837 (cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} $@
); \
3838 (cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} $@
) \
3842 ${Q} ${MAKE} -f Makefile calcliblist | \
3843 ${FMT} -64 |
${SED} -e
's/^/ /'
3845 #if 0 /* start of skip for non-Gnu makefiles */
3846 custom
/Makefile
: ${MAKE_FILE} custom
/Makefile.head custom
/Makefile.tail
3847 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3849 ${Q} ${CAT} custom
/Makefile.head
> $@
3851 "/^# start of host target cut/,/^# end of host target cut/p" \
3853 ${Q} ${CAT} custom
/Makefile.tail
>> $@
3854 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3856 Makefile.simple
: ${MAKE_FILE} custom
/Makefile.simple
3857 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3859 ${Q} ${AWK} '/^#if 0/{skp=1} {if(!skp){print $$0}} /^#endif/{skp=0}' \
3861 ${SED} -e
's/cd custom; $${MAKE} -f Makefile/&.simple/g' > $@
3863 ${Q} echo
'Makefile.simple:' >> $@
3864 ${Q} echo
' $${Q} if [ ! -f Makefile.simple ]; then '"\\" >> $@
3865 ${Q} echo
' $${CP} -f $${MAKE_FILE} $$@; fi' >> $@
3866 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3868 custom
/Makefile.simple
: custom
/Makefile
3869 ${Q} cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} Makefile.simple
3870 #endif /* end of skip for non-Gnu makefiles */
3874 # Doing a 'make check' will cause the regression test suite to be executed.
3875 # This rule will try to build anything that needs to be built as well.
3877 # Doing a 'make chk' will cause only the context around interesting
3878 # (and error) messages to be printed. Unlike 'make check', this
3879 # rule does not cause things to be built. I.e., the all rule is
3884 check: all .
/cal
/regress.cal
3885 ${CALC_ENV} .
/calc
${EXT} -d
-q read regress
3887 chk
: .
/cal
/regress.cal
3888 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3889 ${CALC_ENV} .
/calc
${EXT} -d
-q read regress
2>&1 |
${AWK} -f
check.awk
3890 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3897 # * print major Makefile variables
3900 # * print major Makefile variables
3901 # * build anything not yet built
3904 # * remove everything that was previously built
3905 # * print major Makefile variables
3907 # * run the regression tests
3911 @echo
'=-=-=-=-= dumping major make variables =-=-=-=-='
3912 @echo
'ALIGN32=${ALIGN32}'; echo
''
3913 @echo
'ALLOW_CUSTOM=${ALLOW_CUSTOM}'; echo
''
3914 @echo
'AR=${AR}'; echo
''
3915 @echo
'AWK=${AWK}'; echo
''
3916 @echo
'BINDIR=${BINDIR}'; echo
''
3917 @echo
'BLD_TYPE=${BLD_TYPE}'; echo
''
3918 @echo
'BUILD_C_SRC=${BUILD_C_SRC}'; echo
''
3919 @echo
'BUILD_H_SRC=${BUILD_H_SRC}'; echo
''
3920 @echo
'BYTE_ORDER=${BYTE_ORDER}'; echo
''
3921 @echo
'CALCLIBLIST=${CALCLIBLIST}'; echo
''
3922 @echo
'CALCOBJS=${CALCOBJS}'; echo
''
3923 @echo
'CALCPAGER=${CALCPAGER}'; echo
''
3924 @echo
'CALCPATH=${CALCPATH}'; echo
''
3925 @echo
'CALCRC=${CALCRC}'; echo
''
3926 @echo
'CALCSRC=${CALCSRC}'; echo
''
3927 @echo
'CALC_DYNAMIC_LIBS=${CALC_DYNAMIC_LIBS}'; echo
''
3928 @echo
'CALC_ENV=${CALC_ENV}'; echo
''
3929 @echo
'CALC_INCDIR=${CALC_INCDIR}'; echo
''
3930 @echo
'CALC_SHAREDIR=${CALC_SHAREDIR}'; echo
''
3931 @echo
'CALC_STATIC_LIBS=${CALC_STATIC_LIBS}'; echo
''
3932 @echo
'CAL_PASSDOWN=${CAL_PASSDOWN}'; echo
''
3933 @echo
'CAT=${CAT}'; echo
''
3934 @echo
'CATDIR=${CATDIR}'; echo
''
3935 @echo
'CATEXT=${CATEXT}'; echo
''
3936 @echo
'CATMODE=${CATMODE}'; echo
''
3937 @echo
'CC=${CC}'; echo
''
3938 @echo
'CCMISC=${CCMISC}'; echo
''
3939 @echo
'CCOPT=${CCOPT}'; echo
''
3940 @echo
'CCWARN=${CCWARN}'; echo
''
3941 @echo
'CCWERR=${CCWERR}'; echo
''
3942 @echo
'CFLAGS=${CFLAGS}'; echo
''
3943 @echo
'CHMOD=${CHMOD}'; echo
''
3944 @echo
'CMP=${CMP}'; echo
''
3945 @echo
'CO=${CO}'; echo
''
3946 @echo
'COL=${COL}'; echo
''
3947 @echo
'COMMON_CFLAGS=${COMMON_CFLAGS}'; echo
''
3948 @echo
'COMMON_LDFLAGS=${COMMON_LDFLAGS}'; echo
''
3949 @echo
'CP=${CP}'; echo
''
3950 @echo
'CSCRIPT_PASSDOWN=${CSCRIPT_PASSDOWN}'; echo
''
3951 @echo
'CSCRIPT_TARGETS=${CSCRIPT_TARGETS}'; echo
''
3952 @echo
'CTAGS=${CTAGS}'; echo
''
3953 @echo
'CUSTOMCALDIR=${CUSTOMCALDIR}'; echo
''
3954 @echo
'CUSTOMHELPDIR=${CUSTOMHELPDIR}'; echo
''
3955 @echo
'CUSTOMINCDIR=${CUSTOMINCDIR}'; echo
''
3956 @echo
'CUSTOM_PASSDOWN=${CUSTOM_PASSDOWN}'; echo
''
3957 @echo
'C_SRC=${C_SRC}'; echo
''
3958 @echo
'DEBUG=${DEBUG}'; echo
''
3959 @echo
'DEFAULT_LIB_INSTALL_PATH=${DEFAULT_LIB_INSTALL_PATH}'; echo
''
3960 @echo
'DEV_BITS=${DEV_BITS}'; echo
''
3961 @echo
'DIFF=${DIFF}'; echo
''
3962 @echo
'DISTLIST=${DISTLIST}'; echo
''
3963 @echo
'EXT=${EXT}'; echo
''
3964 @echo
'FMT=${FMT}'; echo
''
3965 @echo
'FPOS_BITS=${FPOS_BITS}'; echo
''
3966 @echo
'FPOS_POS_BITS=${FPOS_POS_BITS}'; echo
''
3967 @echo
'GREP=${GREP}'; echo
''
3968 @echo
'HAVE_CONST=${HAVE_CONST}'; echo
''
3969 @echo
'HAVE_FPOS=${HAVE_FPOS}'; echo
''
3970 @echo
'HAVE_FPOS_POS=${HAVE_FPOS_POS}'; echo
''
3971 @echo
'HAVE_GETPGID=${HAVE_GETPGID}'; echo
''
3972 @echo
'HAVE_GETPRID=${HAVE_GETPRID}'; echo
''
3973 @echo
'HAVE_GETRUSAGE=${HAVE_GETRUSAGE}'; echo
''
3974 @echo
'HAVE_GETSID=${HAVE_GETSID}'; echo
''
3975 @echo
'HAVE_GETTIME=${HAVE_GETTIME}'; echo
''
3976 @echo
'HAVE_MEMMOVE=${HAVE_MEMMOVE}'; echo
''
3977 @echo
'HAVE_NEWSTR=${HAVE_NEWSTR}'; echo
''
3978 @echo
'HAVE_NO_IMPLICIT=${HAVE_NO_IMPLICIT}'; echo
''
3979 @echo
'HAVE_OFFSCL=${HAVE_OFFSCL}'; echo
''
3980 @echo
'HAVE_POSSCL=${HAVE_POSSCL}'; echo
''
3981 @echo
'HAVE_STDLIB_H=${HAVE_STDLIB_H}'; echo
''
3982 @echo
'HAVE_STRDUP=${HAVE_STRDUP}'; echo
''
3983 @echo
'HAVE_STRING_H=${HAVE_STRING_H}'; echo
''
3984 @echo
'HAVE_SYS_TIMES_H=${HAVE_SYS_TIMES_H}'; echo
''
3985 @echo
'HAVE_SYS_TIME_H=${HAVE_SYS_TIME_H}'; echo
''
3986 @echo
'HAVE_TIMES_H=${HAVE_TIMES_H}'; echo
''
3987 @echo
'HAVE_TIME_H=${HAVE_TIME_H}'; echo
''
3988 @echo
'HAVE_UID_T=${HAVE_UID_T}'; echo
''
3989 @echo
'HAVE_UNISTD_H=${HAVE_UNISTD_H}'; echo
''
3990 @echo
'HAVE_UNUSED=${HAVE_UNUSED}'; echo
''
3991 @echo
'HAVE_URANDOM_H=${HAVE_URANDOM_H}'; echo
''
3992 @echo
'HAVE_USTAT=${HAVE_USTAT}'; echo
''
3993 @echo
'HAVE_VSPRINTF=${HAVE_VSPRINTF}'; echo
''
3994 @echo
'HELPDIR=${HELPDIR}'; echo
''
3995 @echo
'HELP_PASSDOWN=${HELP_PASSDOWN}'; echo
''
3996 @echo
'H_SRC=${H_SRC}'; echo
''
3997 @echo
'ICFLAGS=${ICFLAGS}'; echo
''
3998 @echo
'ILDFLAGS=${ILDFLAGS}'; echo
''
3999 @echo
'INCDIR=${INCDIR}'; echo
''
4000 @echo
'INODE_BITS=${INODE_BITS}'; echo
''
4001 @echo
'LANG=${LANG}'; echo
''
4002 @echo
'LCC=${LCC}'; echo
''
4003 @echo
'LDCONFIG=${LDCONFIG}'; echo
''
4004 @echo
'LDFLAGS=${LDFLAGS}'; echo
''
4005 @echo
'LDFLAGS=${LDFLAGS}'; echo
''
4006 @echo
'LD_DEBUG=${LD_DEBUG}'; echo
''
4007 @echo
'LD_SHARE=${LD_SHARE}'; echo
''
4008 @echo
'LIBCALC_SHLIB=${LIBCALC_SHLIB}'; echo
''
4009 @echo
'LIBCUSTCALC_SHLIB=${LIBCUSTCALC_SHLIB}'; echo
''
4010 @echo
'LIBDIR=${LIBDIR}'; echo
''
4011 @echo
'LIBOBJS=${LIBOBJS}'; echo
''
4012 @echo
'LIBSRC=${LIBSRC}'; echo
''
4013 @echo
'LIB_H_SRC=${LIB_H_SRC}'; echo
''
4014 @echo
'LICENSE=${LICENSE}'; echo
''
4015 @echo
'LN=${LN}'; echo
''
4016 @echo
'LONG_BITS=${LONG_BITS}'; echo
''
4017 @echo
'MAKE=${MAKE}'; echo
''
4018 @echo
'MAKEDEPEND=${MAKEDEPEND}'; echo
''
4019 @echo
'MAKEFILE_REV=${MAKEFILE_REV}'; echo
''
4020 @echo
'MAKE_FILE=${MAKE_FILE}'; echo
''
4021 @echo
'MANDIR=${MANDIR}'; echo
''
4022 @echo
'MANEXT=${MANEXT}'; echo
''
4023 @echo
'MANMAKE=${MANMAKE}'; echo
''
4024 @echo
'MANMODE=${MANMODE}'; echo
''
4025 @echo
'MKDIR=${MKDIR}'; echo
''
4026 @echo
'MKDIR_ARG=${MKDIR_ARG}'; echo
''
4027 @echo
'MV=${MV}'; echo
''
4028 @echo
'NROFF=${NROFF}'; echo
''
4029 @echo
'NROFF_ARG=${NROFF_ARG}'; echo
''
4030 @echo
'OBJS=${OBJS}'; echo
''
4031 @echo
'OFF_T_BITS=${OFF_T_BITS}'; echo
''
4032 @echo
'PURIFY=${PURIFY}'; echo
''
4033 @echo
'Q=${Q}'; echo
''
4034 @echo
'RANLIB=${RANLIB}'; echo
''
4035 @echo
'READLINE_EXTRAS=${READLINE_EXTRAS}'; echo
''
4036 @echo
'READLINE_INCLUDE=${READLINE_INCLUDE}'; echo
''
4037 @echo
'READLINE_LIB=${READLINE_LIB}'; echo
''
4038 @echo
'RM=${RM}'; echo
''
4039 @echo
'RMDIR=${RMDIR}'; echo
''
4040 @echo
'SAMPLE_C_SRC=${SAMPLE_C_SRC}'; echo
''
4041 @echo
'SAMPLE_H_SRC=${SAMPLE_H_SRC}'; echo
''
4042 @echo
'SAMPLE_OBJ=${SAMPLE_OBJ}'; echo
''
4043 @echo
'SAMPLE_STATIC_TARGETS=${SAMPLE_STATIC_TARGETS}'; echo
''
4044 @echo
'SAMPLE_TARGETS=${SAMPLE_TARGETS}'; echo
''
4045 @echo
'SCRIPTDIR=${SCRIPTDIR}'; echo
''
4046 @echo
'SED=${SED}'; echo
''
4047 @echo
'SHELL=${SHELL}'; echo
''
4048 @echo
'SORT=${SORT}'; echo
''
4049 @echo
'SPLINT=${SPLINT}'; echo
''
4050 @echo
'SPLINT_OPTS=${SPLINT_OPTS}'; echo
''
4051 @echo
'SYM_DYNAMIC_LIBS=${SYM_DYNAMIC_LIBS}'; echo
''
4052 @echo
'T=${T}'; echo
''
4053 @echo
'TARGETS=${TARGETS}'; echo
''
4054 @echo
'TEE=${TEE}'; echo
''
4055 @echo
'TERMCONTROL=${TERMCONTROL}'; echo
''
4056 @echo
'TOP_MAKE_FILE=${TOP_MAKE_FILE}'; echo
''
4057 @echo
'TOUCH=${TOUCH}'; echo
''
4058 @echo
'TRUE=${TRUE}'; echo
''
4059 @echo
'USE_READLINE=${USE_READLINE}'; echo
''
4060 @echo
'UTIL_C_SRC=${UTIL_C_SRC}'; echo
''
4061 @echo
'UTIL_MISC_SRC=${UTIL_MISC_SRC}'; echo
''
4062 @echo
'UTIL_OBJS=${UTIL_OBJS}'; echo
''
4063 @echo
'UTIL_FILES=${UTIL_FILES}'; echo
''
4064 @echo
'UTIL_PROGS=${UTIL_PROGS}'; echo
''
4065 @echo
'UTIL_TMP=${UTIL_TMP}'; echo
''
4066 @echo
'V=${V}'; echo
''
4067 @echo
'VERS=${VERS}'; echo
''
4068 @echo
'VERSION=${VERSION}'; echo
''
4069 @echo
'XARGS=${XARGS}'; echo
''
4070 @echo
'target=${target}'; echo
''
4071 @echo
'=-=-=-=-= ${MAKE_FILE} end of major make variable dump =-=-=-=-='
4073 mkdebug
: env version.c
4074 @echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4075 @echo
'=-=-=-=-= Determining the source version =-=-=-=-='
4076 @
${MAKE} -f Makefile Q
= V
=@ ver_calc
${EXT}
4078 @echo
'=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-=-='
4079 @
${MAKE} -f Makefile Q
= V
=@
all
4080 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4081 @echo
'=-=-=-=-= Determining the binary version =-=-=-=-='
4082 -@.
/calc
${EXT} -e
-q
-v
4083 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4084 @echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4087 @echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4088 @echo
'=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ clobber =-=-=-=-='
4089 @
${MAKE} -f Makefile Q
= V
=@
clobber
4090 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4091 @echo
'=-=-=-=-= Determining the source version =-=-=-=-='
4092 @
${MAKE} -f Makefile Q
= V
=@ ver_calc
${EXT}
4094 @echo
'=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-=-='
4095 @
${MAKE} -f Makefile Q
= V
=@
all
4096 @echo
'=-=-=-=-= Determining the binary version =-=-=-=-='
4097 -@.
/calc
${EXT} -e
-q
-v
4098 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4099 @echo
'=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ chk =-=-=-=-='
4100 @echo
'=-=-=-=-= this may take a while =-=-=-=-='
4101 @
${MAKE} -f Makefile Q
= V
=@ chk
4102 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4103 @echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4110 # * only run calc interactively with the ${CALC_ENV} environment
4113 # * run the dbx debugger on calc with the ${CALC_ENV} environment
4116 # * run the gdb debugger on calc with the ${CALC_ENV} environment
4121 ${CALC_ENV} .
/calc
${EXT}
4124 ${CALC_ENV} dbx .
/calc
${EXT}
4127 ${CALC_ENV} gdb .
/calc
${EXT}
4135 rpm
: clobber rpm-preclean rpm.mk calc.spec.in
4136 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4137 ${MAKE} -f rpm.mk
all V
=${V} RPM_TOP
="${RPM_TOP}"
4138 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4141 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4142 ${MAKE} -f rpm.mk
$@ V
=${V} RPM_TOP
="${RPM_TOP}"
4143 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4148 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4151 ${CP} -f
-p calc-static
${EXT} ${SAMPLE_STATIC_TARGETS} static
4152 ${CP} -f
-p libcalc.a custom
/libcustcalc.a static
4153 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4156 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4157 ${RM} -f calc-static
${EXT} ${SAMPLE_STATIC_TARGETS}
4158 cd static
; ${CP} -f
-p calc-static
${EXT} ${SAMPLE_STATIC_TARGETS} ..
4160 cd static
; ${CP} -f
-p libcalc.a ..
4161 ${RM} -f custom
/libcustcalc.a
4162 cd static
; ${CP} -f
-p libcustcalc.a ..
/custom
4163 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4166 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4167 ${CALC_ENV} .
/calc-static
${EXT} -d
-q read regress
2>&1 | \
4169 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4172 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4174 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4182 # Form the installed file list
4184 inst_files
: ${MAKE_FILE} help
/Makefile cal
/Makefile custom
/Makefile \
4185 cscript
/Makefile ver_calc
${EXT}
4186 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4187 ${Q} ${RM} -f inst_files
4188 ${Q} echo
${BINDIR}/calc
${EXT} > inst_files
4189 ${Q} cd help
; LANG
=C \
4190 ${MAKE} -f Makefile
${HELP_PASSDOWN} echo_inst_files | \
4191 ${GREP} '__file__..' |
${SED} -e s
'/.*__file__ //' >> ..
/inst_files
4192 ${Q} cd cal
; LANG
=C \
4193 ${MAKE} -f Makefile
${CAL_PASSDOWN} echo_inst_files | \
4194 ${GREP} '__file__..' |
${SED} -e s
'/.*__file__ //' >> ..
/inst_files
4195 ${Q} cd custom
; LANG
=C \
4196 ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} echo_inst_files | \
4197 ${GREP} '__file__..' |
${SED} -e s
'/.*__file__ //' >> ..
/inst_files
4198 ${Q} cd cscript
; LANG
=C \
4199 ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} echo_inst_files | \
4200 ${GREP} '__file__..' |
${SED} -e s
'/.*__file__ //' >> ..
/inst_files
4201 ${Q} echo
${LIBDIR}/libcalc.a
>> inst_files
4202 ${Q} for i in
${LIB_H_SRC} ${BUILD_H_SRC} /dev
/null
; do \
4203 if
[ X
"$$i" != X
"/dev/null" ]; then \
4204 echo
${CALC_INCDIR}/$$i; \
4207 ${Q} if
[ ! -z
"${MANDIR}" ]; then \
4208 echo
${MANDIR}/calc.
${MANEXT}; \
4210 ${Q} LANG
=C
${SORT} -u inst_files
-o inst_files
4211 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4213 # The olduninstall rule will remove calc files from the older, histroic
4214 # locations under the /usr/local directory. If you are using the
4215 # new default values for ${BINDIR}, ${CALC_SHAREDIR}, ${INCDIR} and ${LIBDIR}
4216 # then you can use this rule to clean out the older calc stuff under
4217 # the /usr/local directory.
4221 ${MAKE} -f Makefile \
4222 BINDIR
=/usr
/local
/bin \
4223 INCDIR
=/usr
/local
/include \
4224 LIBDIR
=/usr
/local
/lib
/calc \
4225 CALC_SHAREDIR
=/usr
/local
/lib
/calc \
4226 HELPDIR
=/usr
/local
/lib
/calc
/help \
4227 CALC_INCDIR
=/usr
/local
/include/calc \
4228 CUSTOMCALDIR
=/usr
/local
/lib
/calc
/custom \
4229 CUSTOMHELPDIR
=/usr
/local
/lib
/calc
/help
/custhelp \
4230 CUSTOMINCDIR
=/usr
/local
/lib
/calc
/custom \
4231 SCRIPTDIR
=/usr
/local
/bin
/cscript \
4232 MANDIR
=/usr
/local
/man
/man1 \
4234 ${XARGS} ${RM} -f
< inst_files
4235 -${RMDIR} /usr
/local
/lib
/calc
/help
/custhelp
4236 -${RMDIR} /usr
/local
/lib
/calc
/help
4237 -${RMDIR} /usr
/local
/lib
/calc
/custom
4238 -${RMDIR} /usr
/local
/lib
/calc
4239 -${RMDIR} /usr
/local
/include/calc
4240 -${RMDIR} /usr
/local
/bin
/cscript
4243 tags: ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} ${MAKE_FILE}
4244 -${CTAGS} ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} 2>&1 | \
4245 ${GREP} -v
'Duplicate entry|Second entry ignored'
4247 clean: custom
/Makefile
4248 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4250 ${RM} -f
${CALCOBJS}
4251 ${RM} -f
${UTIL_OBJS}
4252 ${RM} -f
${UTIL_TMP}
4253 ${RM} -f
${UTIL_PROGS}
4254 ${RM} -f
${UTIL_FILES}
4255 ${RM} -f
${SAMPLE_OBJ}
4256 ${RM} -f .libcustcalc_error
4257 ${RM} -f calc.spec.sed
4258 ${Q} echo
'=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4259 cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} clean
4260 ${Q} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4261 ${Q} echo
'=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4262 cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} clean
4263 ${Q} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4264 ${V} echo
'=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4265 cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} clean
4266 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4267 ${V} echo
'=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4268 cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} clean
4269 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4270 ${Q} echo remove files that are obsolete
4272 ${RM} -f endian.h stdarg.h libcalcerr.a cal
/obj help
/obj
4273 ${RM} -f have_vs.c std_arg.h try_stdarg.c fnvhash.c
4274 ${RM} -f win32dll.h have_malloc.h math_error.h string.h string.c
4275 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4277 clobber: custom
/Makefile
clean
4278 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4279 ${RM} -f
${SAMPLE_TARGETS}
4280 ${RM} -f
${SAMPLE_STATIC_TARGETS}
4281 ${RM} -f
tags .hsrc hsrc
4282 ${RM} -f
${BUILD_H_SRC}
4283 ${RM} -f
${BUILD_C_SRC}
4285 ${RM} -f
*_pure_
*.
[oa
]
4286 ${RM} -f
*.pure_linkinfo
4287 ${RM} -f
*.pure_hardlin
4290 ${RM} -f calc
.1 calc.usage
4291 ${RM} -f calc.pixie calc.rf calc.Counts calc.cord
4292 ${RM} -rf gen_h skel Makefile.bak tmp.patch
4293 ${RM} -f calc.spec inst_files rpm.mk.patch tmp
4294 ${RM} -f libcalc
${LIB_EXT_VERSION}
4295 ${RM} -f libcalc
${LIB_EXT_VERS}
4296 ${RM} -f libcalc
${LIB_EXT_VER}
4297 ${RM} -f libcalc
${LIB_EXT_VE}
4298 ${RM} -f libcalc
*${LIB_EXT}
4299 ${RM} -f libcustcalc
${LIB_EXT_VERSION}
4300 ${RM} -f libcustcalc
${LIB_EXT_VERS}
4301 ${RM} -f libcustcalc
${LIB_EXT_VER}
4302 ${RM} -f libcustcalc
${LIB_EXT_VE}
4303 ${RM} -f libcustcalc
*${LIB_EXT}
4304 ${RM} -f libcustcalc.a
4305 ${RM} -f calc-static
${EXT}
4306 ${RM} -f
${CALC_STATIC_LIBS}
4308 ${V} echo
'=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4309 -cd help
; ${RM} -f
all; ${MAKE} -f Makefile
${HELP_PASSDOWN} $@
4310 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4311 ${V} echo
'=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4312 -cd cal
; ${RM} -f
all; ${MAKE} -f Makefile
${CAL_PASSDOWN} $@
4313 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4314 ${V} echo
'=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4315 cd custom
; ${RM} -f
all; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} $@
4316 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4317 ${V} echo
'=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4318 cd cscript
; ${RM} -f
all; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} $@
4319 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4320 ${V} echo remove files that are obsolete
4321 ${RM} -rf win32 build
4322 #if 0 /* start of skip for non-Gnu makefiles */
4323 ${RM} -f Makefile.simple
4324 ${RM} -f custom
/Makefile
4325 -${MAKE} -f
${MAKE_FILE} custom
/Makefile
4326 #endif /* end of skip for non-Gnu makefiles */
4327 ${RM} -f .static .dynamic calc-dynamic-only calc-static-only
4328 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4330 # install everything
4332 # NOTE: Keep the uninstall rule in reverse order to the install rule
4334 install: custom
/Makefile
${LIB_H_SRC} ${BUILD_H_SRC} calc
.1 all
4335 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4336 -${Q} if
[ ! -z
"${T}" ]; then \
4337 if
[ ! -d
${T} ]; then \
4338 echo
${MKDIR} ${MKDIR_ARG} ${T}; \
4339 ${MKDIR} ${MKDIR_ARG} ${T}; \
4340 echo
${CHMOD} 0755 ${T}; \
4341 ${CHMOD} 0755 ${T}; \
4344 -${Q} if
[ ! -d
${T}${BINDIR} ]; then \
4345 echo
${MKDIR} ${MKDIR_ARG} ${T}${BINDIR}; \
4346 ${MKDIR} ${MKDIR_ARG} ${T}${BINDIR}; \
4347 echo
${CHMOD} 0755 ${T}${BINDIR}; \
4348 ${CHMOD} 0755 ${T}${BINDIR}; \
4352 -${Q} if
[ ! -d
${T}${INCDIR} ]; then \
4353 echo
${MKDIR} ${MKDIR_ARG} ${T}${INCDIR}; \
4354 ${MKDIR} ${MKDIR_ARG} ${T}${INCDIR}; \
4355 echo
${CHMOD} 0755 ${T}${INCDIR}; \
4356 ${CHMOD} 0755 ${T}${INCDIR}; \
4360 -${Q} if
[ ! -d
${T}${LIBDIR} ]; then \
4361 echo
${MKDIR} ${MKDIR_ARG} ${T}${LIBDIR}; \
4362 ${MKDIR} ${MKDIR_ARG} ${T}${LIBDIR}; \
4363 echo
${CHMOD} 0755 ${T}${LIBDIR}; \
4364 ${CHMOD} 0755 ${T}${LIBDIR}; \
4368 -${Q} if
[ ! -d
${T}${CALC_SHAREDIR} ]; then \
4369 ${MKDIR} ${MKDIR_ARG} ${T}${CALC_SHAREDIR}; \
4370 echo
${MKDIR} ${MKDIR_ARG} ${T}${CALC_SHAREDIR}; \
4371 echo
${CHMOD} 0755 ${T}${CALC_SHAREDIR}; \
4372 ${CHMOD} 0755 ${T}${CALC_SHAREDIR}; \
4376 -${Q} if
[ ! -d
${T}${HELPDIR} ]; then \
4377 echo
${MKDIR} ${MKDIR_ARG} ${T}${HELPDIR}; \
4378 ${MKDIR} ${MKDIR_ARG} ${T}${HELPDIR}; \
4379 echo
${CHMOD} 0755 ${T}${HELPDIR}; \
4380 ${CHMOD} 0755 ${T}${HELPDIR}; \
4384 -${Q} if
[ ! -d
${T}${CALC_INCDIR} ]; then \
4385 echo
${MKDIR} ${MKDIR_ARG} ${T}${CALC_INCDIR}; \
4386 ${MKDIR} ${MKDIR_ARG} ${T}${CALC_INCDIR}; \
4387 echo
${CHMOD} 0755 ${T}${CALC_INCDIR}; \
4388 ${CHMOD} 0755 ${T}${CALC_INCDIR}; \
4392 #if 0 /* start of skip for non-Gnu makefiles */
4394 #endif /* end of skip for non-Gnu makefiles */
4395 -${Q} if
[ ! -d
${T}${CUSTOMCALDIR} ]; then \
4396 echo
${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMCALDIR}; \
4397 ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMCALDIR}; \
4398 echo
${CHMOD} 0755 ${T}${CUSTOMCALDIR}; \
4399 ${CHMOD} 0755 ${T}${CUSTOMCALDIR}; \
4403 -${Q} if
[ ! -d
${T}${CUSTOMHELPDIR} ]; then \
4404 echo
${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMHELPDIR}; \
4405 ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMHELPDIR}; \
4406 echo
${CHMOD} 0755 ${T}${CUSTOMHELPDIR}; \
4407 ${CHMOD} 0755 ${T}${CUSTOMHELPDIR}; \
4411 -${Q} if
[ ! -d
${T}${CUSTOMINCDIR} ]; then \
4412 echo
${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMINCDIR}; \
4413 ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMINCDIR}; \
4414 echo
${CHMOD} 0755 ${T}${CUSTOMINCDIR}; \
4415 ${CHMOD} 0755 ${T}${CUSTOMINCDIR}; \
4419 #if 0 /* start of skip for non-Gnu makefiles */
4421 #endif /* end of skip for non-Gnu makefiles */
4422 -${Q} if
[ ! -d
${T}${SCRIPTDIR} ]; then \
4423 echo
${MKDIR} ${MKDIR_ARG} ${T}${SCRIPTDIR}; \
4424 ${MKDIR} ${MKDIR_ARG} ${T}${SCRIPTDIR}; \
4425 echo
${CHMOD} 0755 ${T}${SCRIPTDIR}; \
4426 ${CHMOD} 0755 ${T}${SCRIPTDIR}; \
4430 -${Q} if
[ ! -z
"${MANDIR}" ]; then \
4431 if
[ ! -d
${T}${MANDIR} ]; then \
4432 echo
${MKDIR} ${MKDIR_ARG} ${T}${MANDIR}; \
4433 ${MKDIR} ${MKDIR_ARG} ${T}${MANDIR}; \
4434 echo
${CHMOD} 0755 ${T}${MANDIR}; \
4435 ${CHMOD} 0755 ${T}${MANDIR}; \
4442 -${Q} if
[ ! -z
"${CATDIR}" ]; then \
4443 if
[ ! -d
${T}${CATDIR} ]; then \
4444 echo
${MKDIR} ${MKDIR_ARG} ${T}${CATDIR}; \
4445 ${MKDIR} ${MKDIR_ARG} ${T}${CATDIR}; \
4446 echo
${CHMOD} 0755 ${T}${CATDIR}; \
4447 ${CHMOD} 0755 ${T}${CATDIR}; \
4454 -${Q} if
${CMP} -s calc
${EXT} ${T}${BINDIR}/calc
${EXT}; then \
4457 ${RM} -f
${T}${BINDIR}/calc.new
${EXT}; \
4458 ${CP} -f calc
${EXT} ${T}${BINDIR}/calc.new
${EXT}; \
4459 ${CHMOD} 0755 ${T}${BINDIR}/calc.new
${EXT}; \
4460 ${MV} -f
${T}${BINDIR}/calc.new
${EXT} ${T}${BINDIR}/calc
${EXT}; \
4461 echo
"installed ${T}${BINDIR}/calc${EXT}"; \
4463 -${Q} if
[ -f calc-static
${EXT} ]; then \
4464 if
${CMP} -s calc-static
${EXT} \
4465 ${T}${BINDIR}/calc-static
${EXT}; then \
4468 ${RM} -f
${T}${BINDIR}/calc-static.new
${EXT}; \
4469 ${CP} -f calc-static
${EXT} \
4470 ${T}${BINDIR}/calc-static.new
${EXT}; \
4471 ${CHMOD} 0755 ${T}${BINDIR}/calc-static.new
${EXT}; \
4472 ${MV} -f
${T}${BINDIR}/calc-static.new
${EXT} \
4473 ${T}${BINDIR}/calc-static
${EXT}; \
4474 echo
"installed ${T}${BINDIR}/calc-static${EXT}"; \
4477 ${V} echo
'=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4478 ${Q} cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} install
4479 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4480 ${V} echo
'=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4481 ${Q} cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} install
4482 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4483 #if 0 /* start of skip for non-Gnu makefiles */
4485 #endif /* end of skip for non-Gnu makefiles */
4486 ${V} echo
'=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4487 ${Q} cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} install
4488 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4489 #if 0 /* start of skip for non-Gnu makefiles */
4491 #endif /* end of skip for non-Gnu makefiles */
4492 ${V} echo
'=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4493 ${Q} cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} install
4494 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4495 -${Q} if
[ -f libcalc.a
]; then \
4496 if
${CMP} -s libcalc.a
${T}${LIBDIR}/libcalc.a
; then \
4499 ${RM} -f
${T}${LIBDIR}/libcalc.a.new
; \
4500 ${CP} -f libcalc.a
${T}${LIBDIR}/libcalc.a.new
; \
4501 ${CHMOD} 0644 ${T}${LIBDIR}/libcalc.a.new
; \
4502 ${MV} -f
${T}${LIBDIR}/libcalc.a.new
${T}${LIBDIR}/libcalc.a
; \
4503 ${RANLIB} ${T}${LIBDIR}/libcalc.a
; \
4504 echo
"installed ${T}${LIBDIR}/libcalc.a"; \
4507 ${Q}# NOTE: The this makefile installs libcustcalc${LIB_EXT_VERSION}
4508 ${Q}# because we only want to perform one ${LDCONFIG} for both
4509 ${Q}# libcalc${LIB_EXT_VERSION} and libcustcalc${LIB_EXT_VERSION}.
4510 -${Q} if
${CMP} -s libcalc
${LIB_EXT_VERSION} \
4511 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION} && \
4512 ${CMP} -s custom
/libcustcalc
${LIB_EXT_VERSION} \
4513 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}; then \
4516 ${RM} -f
${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}.new
; \
4517 ${CP} -f libcalc
${LIB_EXT_VERSION} \
4518 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}.new
; \
4519 ${CHMOD} 0644 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}.new
; \
4520 ${MV} -f
${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}.new \
4521 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}; \
4522 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4523 ${LN} -f
-s libcalc
${LIB_EXT_VERSION} \
4524 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERS}; \
4525 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4526 ${LN} -f
-s libcalc
${LIB_EXT_VERSION} \
4527 ${T}${LIBDIR}/libcalc
${LIB_EXT_VER}; \
4528 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4529 ${LN} -f
-s libcalc
${LIB_EXT_VERSION} \
4530 ${T}${LIBDIR}/libcalc
${LIB_EXT_VE}; \
4531 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4532 ${LN} -f
-s libcalc
${LIB_EXT_VERSION} \
4533 ${T}${LIBDIR}/libcalc
${LIB_EXT}; \
4534 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4535 ${RM} -f
${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}.new
; \
4536 ${CP} -f custom
/libcustcalc
${LIB_EXT_VERSION} \
4537 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}.new
; \
4538 ${CHMOD} 0644 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}.new
; \
4539 ${MV} -f
${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}.new \
4540 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}; \
4541 echo
"installed ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}"; \
4542 ${LN} -f
-s libcustcalc
${LIB_EXT_VERSION} \
4543 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERS}; \
4544 echo
"installed ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4545 ${LN} -f
-s libcustcalc
${LIB_EXT_VERSION} \
4546 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VER}; \
4547 echo
"installed ${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4548 ${LN} -f
-s libcustcalc
${LIB_EXT_VERSION} \
4549 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VE}; \
4550 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4551 ${LN} -f
-s libcustcalc
${LIB_EXT_VERSION} \
4552 ${T}${LIBDIR}/libcustcalc
${LIB_EXT}; \
4553 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4554 if
[ -z
"${T}" -o
"/" = "${T}" ]; then \
4555 if
[ ! -z
"${LDCONFIG}" ]; then \
4556 echo
"running ${LDCONFIG}"; \
4558 echo
"finished ${LDCONFIG}"; \
4562 -${Q} for i in
${LIB_H_SRC} ${BUILD_H_SRC} /dev
/null
; do \
4563 if
[ "$$i" = "/dev/null" ]; then \
4567 ${SED} -e
's/^\(#[ ]*include[ ][ ]*\)"/\1"calc\//' \
4569 if
${CMP} -s tmp
${T}${CALC_INCDIR}/$$i; then \
4572 ${RM} -f
${T}${CALC_INCDIR}/$$i.new
; \
4573 ${CP} -f tmp
${T}${CALC_INCDIR}/$$i.new
; \
4574 ${CHMOD} 0444 ${T}${CALC_INCDIR}/$$i.new
; \
4575 ${MV} -f
${T}${CALC_INCDIR}/$$i.new
${T}${CALC_INCDIR}/$$i; \
4576 echo
"installed ${T}${CALC_INCDIR}/$$i"; \
4578 if
[ -f
"${T}${CALC_INCDIR}/std_arg.h" ]; then \
4579 ${RM} -f
${T}${CALC_INCDIR}/std_arg.h
; \
4580 echo
"removed old ${T}${CALC_INCDIR}/std_arg.h"; \
4582 if
[ -f
"${T}${CALC_INCDIR}/win32dll.h" ]; then \
4583 ${RM} -f
${T}${CALC_INCDIR}/win32dll.h
; \
4584 echo
"removed old ${T}${CALC_INCDIR}/win32dll.h"; \
4586 if
[ -f
"${T}${CALC_INCDIR}/have_malloc.h" ]; then \
4587 ${RM} -f
${T}${CALC_INCDIR}/have_malloc.h
; \
4588 echo
"removed old ${T}${CALC_INCDIR}/have_malloc.h"; \
4590 if
[ -f
"${T}${CALC_INCDIR}/math_error.h" ]; then \
4591 ${RM} -f
${T}${CALC_INCDIR}/math_error.h
; \
4592 echo
"removed old ${T}${CALC_INCDIR}/math_error.h"; \
4594 if
[ -f
"${T}${CALC_INCDIR}/string.h" ]; then \
4595 ${RM} -f
${T}${CALC_INCDIR}/string.h
; \
4596 echo
"removed old ${T}${CALC_INCDIR}/string.h"; \
4599 -${Q} if
[ -z
"${MANDIR}" ]; then \
4602 if
${CMP} -s calc
.1 ${T}${MANDIR}/calc.
${MANEXT}; then \
4605 ${RM} -f
${T}${MANDIR}/calc.
${MANEXT}.new
; \
4606 ${CP} -f calc
.1 ${T}${MANDIR}/calc.
${MANEXT}.new
; \
4607 ${CHMOD} 0444 ${T}${MANDIR}/calc.
${MANEXT}.new
; \
4608 ${MV} -f
${T}${MANDIR}/calc.
${MANEXT}.new \
4609 ${T}${MANDIR}/calc.
${MANEXT}; \
4610 echo
"installed ${T}${MANDIR}/calc.${MANEXT}"; \
4613 -${Q} if
[ -z
"${CATDIR}" ]; then \
4616 if
${CMP} -s calc
.1 ${T}${MANDIR}/calc.
${MANEXT}; then \
4619 if
[ -z
"${NROFF}" ]; then \
4620 echo
"${MANMAKE} calc.1 ${T}${CATDIR}"; \
4621 ${MANMAKE} calc
.1 ${T}${CATDIR}; \
4623 ${RM} -f
${T}${CATDIR}/calc.
${CATEXT}.new
; \
4624 ${NROFF} ${NROFF_ARG} calc
.1 > \
4625 ${T}${CATDIR}/calc.
${CATEXT}.new
; \
4626 ${CHMOD} ${MANMODE} ${T}${MANDIR}/calc.
${CATEXT}.new
; \
4627 ${MV} -f
${T}${CATDIR}/calc.
${CATEXT}.new \
4628 ${T}${CATDIR}/calc.
${CATEXT}; \
4629 echo
"installed ${T}${CATDIR}/calc.${CATEXT}"; \
4633 ${V} # NOTE: misc install cleanup
4635 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4637 # Try to remove everything that was installed
4639 # NOTE: Keep the uninstall rule in reverse order to the install rule
4641 uninstall: custom
/Makefile
4642 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4643 -${Q} if
[ -z
"${CATDIR}" ]; then \
4646 if
[ -f
"${T}${CATDIR}/calc.${CATEXT}" ]; then \
4647 ${RM} -f
"${T}${CATDIR}/calc.${CATEXT}"; \
4648 if
[ -f
"${T}${CATDIR}/calc.${CATEXT}" ]; then \
4649 echo
"cannot uninstall ${T}${CATDIR}/calc.${CATEXT}"; \
4651 echo
"uninstalled ${T}${CATDIR}/calc.${CATEXT}"; \
4655 -${Q} if
[ -z
"${MANDIR}" ]; then \
4658 if
[ -f
"${T}${MANDIR}/calc.${MANEXT}" ]; then \
4659 ${RM} -f
"${T}${MANDIR}/calc.${MANEXT}"; \
4660 if
[ -f
"${T}${MANDIR}/calc.${MANEXT}" ]; then \
4661 echo
"cannot uninstall ${T}${MANDIR}/calc.${MANEXT}"; \
4663 echo
"uninstalled ${T}${MANDIR}/calc.${MANEXT}"; \
4667 -${Q} for i in
${BUILD_H_SRC} ${LIB_H_SRC} /dev
/null
; do \
4668 if
[ "$$i" = "/dev/null" ]; then \
4671 if
[ -f
"${T}${CALC_INCDIR}/$$i" ]; then \
4672 ${RM} -f
"${T}${CALC_INCDIR}/$$i"; \
4673 if
[ -f
"${T}${CALC_INCDIR}/$$i" ]; then \
4674 echo
"cannot uninstall ${T}${CALC_INCDIR}/$$i"; \
4676 echo
"uninstalled ${T}${CALC_INCDIR}/$$i"; \
4680 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT}" ]; then \
4681 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT}"; \
4682 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT}" ]; then \
4683 echo
"cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT}"; \
4685 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT}"; \
4688 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}" ]; then \
4689 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}"; \
4690 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}" ]; then \
4691 echo
"cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}";\
4693 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}"; \
4696 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}" ]; then \
4697 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4698 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}" ]; then \
4699 echo
-n
"cannot uninstall "; \
4700 echo
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4702 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4705 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}" ]; then \
4706 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4707 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}" ]; then \
4709 "cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4711 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4714 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}" ]; then \
4715 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}"; \
4716 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}" ]; then \
4718 "cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}";\
4720 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}";\
4723 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT}" ]; then \
4724 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4725 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT}" ]; then \
4726 echo
"cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4728 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4731 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VE}" ]; then \
4732 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4733 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VE}" ]; then \
4734 echo
"cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4736 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4739 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VER}" ]; then \
4740 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4741 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VER}" ]; then \
4742 echo
"cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4744 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4747 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERS}" ]; then \
4748 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4749 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERS}" ]; then \
4750 echo
"cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4752 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4755 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}" ]; then \
4756 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4757 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}" ]; then \
4758 echo
-n
"cannot uninstall " \
4759 echo
"${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4761 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4764 -${Q} if
[ -z
"${T}" -o
"/" = "${T}" ]; then \
4765 if
[ ! -z
"${LDCONFIG}" ]; then \
4766 echo
"running ${LDCONFIG}"; \
4768 echo
"finished ${LDCONFIG}"; \
4771 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc.a" ]; then \
4772 ${RM} -f
"${T}${LIBDIR}/libcalc.a"; \
4773 if
[ -f
"${T}${LIBDIR}/libcalc.a" ]; then \
4774 echo
"cannot uninstall ${T}${LIBDIR}/libcalc.a"; \
4776 echo
"uninstalled ${T}${LIBDIR}/libcalc.a"; \
4779 ${V} echo
'=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4780 ${Q} cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} uninstall
4781 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4782 ${V} echo
'=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4783 ${Q} cd custom
; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} uninstall
4784 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4785 ${V} echo
'=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4786 ${Q} cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} uninstall
4787 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4788 ${V} echo
'=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4789 ${Q} cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} uninstall
4790 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4791 -${Q} if
[ -f
"${T}${BINDIR}/calc-static${EXT}" ]; then \
4792 ${RM} -f
"${T}${BINDIR}/calc-static${EXT}"; \
4793 if
[ -f
"${T}${BINDIR}/calc-static${EXT}" ]; then \
4794 echo
"cannot uninstall ${T}${BINDIR}/calc-static${EXT}"; \
4796 echo
"uninstalled ${T}${BINDIR}/calc-static${EXT}"; \
4799 -${Q} if
[ -f
"${T}${BINDIR}/calc${EXT}" ]; then \
4800 ${RM} -f
"${T}${BINDIR}/calc${EXT}"; \
4801 if
[ -f
"${T}${BINDIR}/calc${EXT}" ]; then \
4802 echo
"cannot uninstall ${T}${BINDIR}/calc${EXT}"; \
4804 echo
"uninstalled ${T}${BINDIR}/calc${EXT}"; \
4807 -${Q} for i in
${CATDIR} ${MANDIR} ${SCRIPTDIR} \
4808 ${CUSTOMINCDIR} ${CUSTOMHELPDIR} ${CUSTOMCALDIR} \
4809 ${CALC_INCDIR} ${LIBDIR} ${INCDIR} ${BINDIR}; do \
4810 if
[ -d
"${T}$$i" ]; then \
4811 ${RMDIR} "${T}$$i" 2>/dev
/null
; \
4812 echo
"cleaned up ${T}$$i"; \
4815 -${Q} if
[ ! -z
"${T}" ]; then \
4816 if
[ -d
"${T}" ]; then \
4817 ${RMDIR} "${T}" 2>/dev
/null
; \
4818 echo
"cleaned up ${T}"; \
4821 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4823 # splint - A tool for statically checking C programs
4826 ${SPLINT} ${SPLINT_OPTS} -DCALC_SRC
-I. \
4827 ${CALCSRC} ${LIBSRC} ${BUILD_C_SRC} ${UTIL_C_SRC}
4829 # strip - for reducing the size of the binary files
4832 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4833 ${Q} for i in
${UTIL_PROGS} ${SAMPLE_TARGETS} ${SAMPLE_STATIC_TARGETS} \
4834 calc
${EXT} calc-static
${EXT} ${CALC_DYNAMIC_LIBS} \
4835 ${CALC_STATIC_LIBS}; do \
4836 if
[ -s
"$$i" -a
-w
"$$i" ]; then \
4838 echo
"stripped $$i"; \
4841 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4843 # calc-symlink - setup symlinks from stardard locations into the ${T} tree
4846 ${Q}if
[ -z
"${T}" ]; then \
4847 echo
"cannot use $@ make rule when T make var is empty" 1>&2; \
4848 echo
"aborting" 1>&2; \
4851 -${Q} for i in
${BINDIR}/calc
${EXT} \
4852 ${BINDIR}/calc-static
${EXT} \
4854 ${LIBDIR}/libcalc
${LIB_EXT_VERSION} \
4855 ${LIBDIR}/libcustcalc
${LIB_EXT_VERSION} \
4856 ${MANDIR}/calc.
${MANEXT} \
4860 if
[ -e
"${T}$$i" ]; then \
4861 if
[ ! -L
"$$i" -a
"${T}$$i" -ef
"$$i" ]; then \
4862 echo
"ERROR: ${T}$$i is the same as $$i" 1>&2; \
4864 if
[ -e
"$$i" ]; then \
4865 echo
${RM} -f
"$$i"; \
4868 echo
${LN} -s
"${T}$$i" "$$i"; \
4869 ${LN} -s
"${T}$$i" "$$i"; \
4872 echo
"Warning: not found: ${T}$$i" 1>&2; \
4875 -${Q} if
[ -n
"${CATDIR}" ]; then \
4876 if
[ -e
"${T}${CATDIR}/calc.${CATEXT}" ]; then \
4877 if
[ ! -L
"${CATDIR}/calc.${CATEXT}" -a \
4878 "${T}${CATDIR}/calc.${CATEXT}" -ef \
4879 "${CATDIR}/calc.${CATEXT}" ]; then \
4880 echo
-n
"ERROR: ${T}${CATDIR}/calc.${CATEXT}" 2>&1; \
4881 echo
"is the same as ${CATDIR}/calc.${CATEXT}" 1>&2; \
4883 if
[ -e
"${CATDIR}/calc.${CATEXT}" ]; then \
4884 echo
${RM} -f
"${CATDIR}/calc.${CATEXT}"; \
4885 ${RM} -f
"${CATDIR}/calc.${CATEXT}"; \
4887 echo
${LN} -s
"${T}${CATDIR}/calc.${CATEXT}" \
4888 "${CATDIR}/calc.${CATEXT}"; \
4889 ${LN} -s
"${T}${CATDIR}/calc.${CATEXT}" \
4890 "${CATDIR}/calc.${CATEXT}"; \
4895 # remove any symlinks that may have been created by calc-symlink
4898 -${Q} for i in
${BINDIR}/calc
${EXT} \
4899 ${BINDIR}/calc-static
${EXT} \
4901 ${LIBDIR}/libcalc
${LIB_EXT_VERSION} \
4902 ${LIBDIR}/libcustcalc
${LIB_EXT_VERSION} \
4903 ${MANDIR}/calc.
${MANEXT} \
4907 if
[ -L
"$$i" ]; then \
4908 echo
${RM} -f
"$$i"; \
4911 echo
"Warning: ignoring non-symlink: $$i" 1>&2; \
4914 -${Q} if
[ -n
"${CATDIR}" ]; then \
4915 if
[ -L
"${CATDIR}/calc.${CATEXT}" ]; then \
4916 echo
${RM} -f
"${CATDIR}/calc.${CATEXT}"; \
4917 ${RM} -f
"${CATDIR}/calc.${CATEXT}"; \
4919 echo
"Warning: ignoring non-symlink: ${CATDIR}/calc.${CATEXT}" \
4930 # DO NOT DELETE THIS LINE -- make depend depends on it.
4941 addop.o
: endian_calc.h
4944 addop.o
: have_const.h
4945 addop.o
: have_memmv.h
4946 addop.o
: have_newstr.h
4947 addop.o
: have_stdlib.h
4948 addop.o
: have_string.h
4960 align32.o
: align32.c
4961 align32.o
: have_unistd.h
4962 align32.o
: longbits.h
4963 assocfunc.o
: alloc.h
4964 assocfunc.o
: assocfunc.c
4965 assocfunc.o
: block.h
4966 assocfunc.o
: byteswap.h
4967 assocfunc.o
: calcerr.h
4968 assocfunc.o
: cmath.h
4969 assocfunc.o
: config.h
4971 assocfunc.o
: endian_calc.h
4973 assocfunc.o
: have_const.h
4974 assocfunc.o
: have_memmv.h
4975 assocfunc.o
: have_newstr.h
4976 assocfunc.o
: have_stdlib.h
4977 assocfunc.o
: have_string.h
4978 assocfunc.o
: longbits.h
4979 assocfunc.o
: nametype.h
4980 assocfunc.o
: qmath.h
4983 assocfunc.o
: value.h
4984 assocfunc.o
: zmath.h
4989 blkcpy.o
: byteswap.h
4995 blkcpy.o
: endian_calc.h
4998 blkcpy.o
: have_const.h
4999 blkcpy.o
: have_fpos.h
5000 blkcpy.o
: have_memmv.h
5001 blkcpy.o
: have_newstr.h
5002 blkcpy.o
: have_stdlib.h
5003 blkcpy.o
: have_string.h
5004 blkcpy.o
: longbits.h
5005 blkcpy.o
: nametype.h
5019 block.o
: endian_calc.h
5021 block.o
: have_const.h
5022 block.o
: have_memmv.h
5023 block.o
: have_newstr.h
5024 block.o
: have_stdlib.h
5025 block.o
: have_string.h
5034 byteswap.o
: byteswap.c
5035 byteswap.o
: byteswap.h
5038 byteswap.o
: endian_calc.h
5039 byteswap.o
: have_const.h
5040 byteswap.o
: have_memmv.h
5041 byteswap.o
: have_newstr.h
5042 byteswap.o
: have_stdlib.h
5043 byteswap.o
: have_string.h
5044 byteswap.o
: longbits.h
5059 calc.o
: endian_calc.h
5062 calc.o
: have_const.h
5063 calc.o
: have_memmv.h
5064 calc.o
: have_newstr.h
5065 calc.o
: have_stdlib.h
5066 calc.o
: have_strdup.h
5067 calc.o
: have_string.h
5068 calc.o
: have_uid_t.h
5069 calc.o
: have_unistd.h
5070 calc.o
: have_unused.h
5084 calcerr.o
: calcerr.c
5085 calcerr.o
: calcerr.h
5086 calcerr.o
: have_const.h
5089 codegen.o
: byteswap.h
5091 codegen.o
: calcerr.h
5093 codegen.o
: codegen.c
5097 codegen.o
: endian_calc.h
5100 codegen.o
: have_const.h
5101 codegen.o
: have_memmv.h
5102 codegen.o
: have_newstr.h
5103 codegen.o
: have_stdlib.h
5104 codegen.o
: have_string.h
5105 codegen.o
: have_unistd.h
5107 codegen.o
: lib_calc.h
5108 codegen.o
: longbits.h
5109 codegen.o
: nametype.h
5110 codegen.o
: opcodes.h
5119 comfunc.o
: byteswap.h
5121 comfunc.o
: comfunc.c
5124 comfunc.o
: endian_calc.h
5125 comfunc.o
: have_const.h
5126 comfunc.o
: have_memmv.h
5127 comfunc.o
: have_newstr.h
5128 comfunc.o
: have_stdlib.h
5129 comfunc.o
: have_string.h
5130 comfunc.o
: longbits.h
5131 comfunc.o
: nametype.h
5135 commath.o
: byteswap.h
5137 commath.o
: commath.c
5139 commath.o
: endian_calc.h
5140 commath.o
: have_const.h
5141 commath.o
: have_memmv.h
5142 commath.o
: have_newstr.h
5143 commath.o
: have_stdlib.h
5144 commath.o
: have_string.h
5145 commath.o
: longbits.h
5150 config.o
: byteswap.h
5158 config.o
: endian_calc.h
5160 config.o
: have_const.h
5161 config.o
: have_memmv.h
5162 config.o
: have_newstr.h
5163 config.o
: have_stdlib.h
5164 config.o
: have_strdup.h
5165 config.o
: have_string.h
5166 config.o
: have_times.h
5167 config.o
: longbits.h
5168 config.o
: nametype.h
5185 const.o
: endian_calc.h
5187 const.o
: have_const.h
5188 const.o
: have_memmv.h
5189 const.o
: have_newstr.h
5190 const.o
: have_stdlib.h
5191 const.o
: have_string.h
5201 custom.o
: byteswap.h
5209 custom.o
: endian_calc.h
5211 custom.o
: have_const.h
5212 custom.o
: have_memmv.h
5213 custom.o
: have_newstr.h
5214 custom.o
: have_stdlib.h
5215 custom.o
: have_string.h
5216 custom.o
: longbits.h
5217 custom.o
: nametype.h
5224 endian.o
: have_stdlib.h
5225 endian.o
: have_unistd.h
5234 file.o
: endian_calc.h
5239 file.o
: have_const.h
5241 file.o
: have_fpos_pos.h
5242 file.o
: have_memmv.h
5243 file.o
: have_newstr.h
5244 file.o
: have_stdlib.h
5245 file.o
: have_string.h
5246 file.o
: have_unistd.h
5254 fposval.o
: endian_calc.h
5255 fposval.o
: fposval.c
5256 fposval.o
: have_fpos.h
5257 fposval.o
: have_fpos_pos.h
5258 fposval.o
: have_offscl.h
5259 fposval.o
: have_posscl.h
5269 func.o
: endian_calc.h
5274 func.o
: have_const.h
5276 func.o
: have_memmv.h
5277 func.o
: have_newstr.h
5278 func.o
: have_rusage.h
5279 func.o
: have_stdlib.h
5280 func.o
: have_strdup.h
5281 func.o
: have_string.h
5282 func.o
: have_times.h
5283 func.o
: have_unistd.h
5284 func.o
: have_unused.h
5307 hash.o
: endian_calc.h
5310 hash.o
: have_const.h
5311 hash.o
: have_memmv.h
5312 hash.o
: have_newstr.h
5313 hash.o
: have_stdlib.h
5314 hash.o
: have_string.h
5324 have_const.o
: have_const.c
5325 have_fpos.o
: have_fpos.c
5326 have_fpos_pos.o
: have_fpos.h
5327 have_fpos_pos.o
: have_fpos_pos.c
5328 have_fpos_pos.o
: have_posscl.h
5329 have_getpgid.o
: have_getpgid.c
5330 have_getprid.o
: have_getprid.c
5331 have_getsid.o
: have_getsid.c
5332 have_gettime.o
: have_gettime.c
5333 have_memmv.o
: have_memmv.c
5334 have_newstr.o
: have_newstr.c
5335 have_offscl.o
: have_offscl.c
5336 have_posscl.o
: have_fpos.h
5337 have_posscl.o
: have_posscl.c
5338 have_rusage.o
: have_rusage.c
5339 have_stdvs.o
: have_stdvs.c
5340 have_stdvs.o
: have_string.h
5341 have_stdvs.o
: have_unistd.h
5342 have_strdup.o
: have_strdup.c
5343 have_uid_t.o
: have_uid_t.c
5344 have_uid_t.o
: have_unistd.h
5345 have_unused.o
: have_unused.c
5346 have_ustat.o
: have_ustat.c
5347 have_varvs.o
: have_string.h
5348 have_varvs.o
: have_unistd.h
5349 have_varvs.o
: have_varvs.c
5359 help.o
: endian_calc.h
5361 help.o
: have_const.h
5362 help.o
: have_memmv.h
5363 help.o
: have_newstr.h
5364 help.o
: have_stdlib.h
5365 help.o
: have_string.h
5366 help.o
: have_unistd.h
5383 hist.o
: endian_calc.h
5385 hist.o
: have_const.h
5386 hist.o
: have_memmv.h
5387 hist.o
: have_newstr.h
5388 hist.o
: have_stdlib.h
5389 hist.o
: have_strdup.h
5390 hist.o
: have_string.h
5391 hist.o
: have_unistd.h
5392 hist.o
: have_unused.h
5411 input.o
: endian_calc.h
5413 input.o
: have_const.h
5414 input.o
: have_memmv.h
5415 input.o
: have_newstr.h
5416 input.o
: have_stdlib.h
5417 input.o
: have_string.h
5418 input.o
: have_unistd.h
5429 jump.o
: have_const.h
5440 label.o
: endian_calc.h
5443 label.o
: have_const.h
5444 label.o
: have_memmv.h
5445 label.o
: have_newstr.h
5446 label.o
: have_stdlib.h
5447 label.o
: have_string.h
5461 lib_calc.o
: byteswap.h
5463 lib_calc.o
: calcerr.h
5466 lib_calc.o
: config.h
5467 lib_calc.o
: custom.h
5469 lib_calc.o
: endian_calc.h
5472 lib_calc.o
: have_const.h
5473 lib_calc.o
: have_memmv.h
5474 lib_calc.o
: have_newstr.h
5475 lib_calc.o
: have_stdlib.h
5476 lib_calc.o
: have_strdup.h
5477 lib_calc.o
: have_string.h
5478 lib_calc.o
: have_unistd.h
5480 lib_calc.o
: lib_calc.c
5481 lib_calc.o
: lib_calc.h
5482 lib_calc.o
: longbits.h
5483 lib_calc.o
: nametype.h
5487 lib_calc.o
: symbol.h
5488 lib_calc.o
: terminal.h
5492 lib_calc.o
: zrandom.h
5494 lib_util.o
: byteswap.h
5496 lib_util.o
: endian_calc.h
5497 lib_util.o
: have_const.h
5498 lib_util.o
: have_memmv.h
5499 lib_util.o
: have_newstr.h
5500 lib_util.o
: have_stdlib.h
5501 lib_util.o
: have_string.h
5502 lib_util.o
: lib_util.c
5503 lib_util.o
: lib_util.h
5504 lib_util.o
: longbits.h
5508 listfunc.o
: byteswap.h
5509 listfunc.o
: calcerr.h
5511 listfunc.o
: config.h
5513 listfunc.o
: endian_calc.h
5515 listfunc.o
: have_const.h
5516 listfunc.o
: have_memmv.h
5517 listfunc.o
: have_newstr.h
5518 listfunc.o
: have_stdlib.h
5519 listfunc.o
: have_string.h
5520 listfunc.o
: listfunc.c
5521 listfunc.o
: longbits.h
5522 listfunc.o
: nametype.h
5529 longbits.o
: have_stdlib.h
5530 longbits.o
: have_unistd.h
5531 longbits.o
: longbits.c
5534 matfunc.o
: byteswap.h
5535 matfunc.o
: calcerr.h
5539 matfunc.o
: endian_calc.h
5541 matfunc.o
: have_const.h
5542 matfunc.o
: have_memmv.h
5543 matfunc.o
: have_newstr.h
5544 matfunc.o
: have_stdlib.h
5545 matfunc.o
: have_string.h
5546 matfunc.o
: have_unused.h
5547 matfunc.o
: longbits.h
5548 matfunc.o
: matfunc.c
5549 matfunc.o
: nametype.h
5556 math_error.o
: alloc.h
5557 math_error.o
: args.h
5558 math_error.o
: block.h
5559 math_error.o
: byteswap.h
5560 math_error.o
: calc.h
5561 math_error.o
: calcerr.h
5562 math_error.o
: cmath.h
5563 math_error.o
: config.h
5564 math_error.o
: decl.h
5565 math_error.o
: endian_calc.h
5566 math_error.o
: hash.h
5567 math_error.o
: have_const.h
5568 math_error.o
: have_memmv.h
5569 math_error.o
: have_newstr.h
5570 math_error.o
: have_stdlib.h
5571 math_error.o
: have_string.h
5572 math_error.o
: lib_calc.h
5573 math_error.o
: longbits.h
5574 math_error.o
: math_error.c
5575 math_error.o
: nametype.h
5576 math_error.o
: qmath.h
5577 math_error.o
: sha1.h
5579 math_error.o
: value.h
5580 math_error.o
: zmath.h
5581 no_implicit.o
: no_implicit.c
5590 obj.o
: endian_calc.h
5595 obj.o
: have_newstr.h
5596 obj.o
: have_stdlib.h
5597 obj.o
: have_string.h
5611 opcodes.o
: byteswap.h
5613 opcodes.o
: calcerr.h
5618 opcodes.o
: endian_calc.h
5622 opcodes.o
: have_const.h
5623 opcodes.o
: have_fpos.h
5624 opcodes.o
: have_memmv.h
5625 opcodes.o
: have_newstr.h
5626 opcodes.o
: have_stdlib.h
5627 opcodes.o
: have_string.h
5628 opcodes.o
: have_unused.h
5631 opcodes.o
: lib_calc.h
5632 opcodes.o
: longbits.h
5633 opcodes.o
: nametype.h
5634 opcodes.o
: opcodes.c
5635 opcodes.o
: opcodes.h
5643 opcodes.o
: zrandom.h
5647 pix.o
: endian_calc.h
5650 pix.o
: have_newstr.h
5651 pix.o
: have_stdlib.h
5652 pix.o
: have_string.h
5665 poly.o
: endian_calc.h
5667 poly.o
: have_const.h
5668 poly.o
: have_memmv.h
5669 poly.o
: have_newstr.h
5670 poly.o
: have_stdlib.h
5671 poly.o
: have_string.h
5683 prime.o
: endian_calc.h
5684 prime.o
: have_const.h
5685 prime.o
: have_memmv.h
5686 prime.o
: have_newstr.h
5687 prime.o
: have_stdlib.h
5688 prime.o
: have_string.h
5699 qfunc.o
: endian_calc.h
5700 qfunc.o
: have_const.h
5701 qfunc.o
: have_memmv.h
5702 qfunc.o
: have_newstr.h
5703 qfunc.o
: have_stdlib.h
5704 qfunc.o
: have_string.h
5716 qio.o
: endian_calc.h
5719 qio.o
: have_newstr.h
5720 qio.o
: have_stdlib.h
5721 qio.o
: have_string.h
5722 qio.o
: have_unused.h
5732 qmath.o
: endian_calc.h
5733 qmath.o
: have_const.h
5734 qmath.o
: have_memmv.h
5735 qmath.o
: have_newstr.h
5736 qmath.o
: have_stdlib.h
5737 qmath.o
: have_string.h
5747 qmod.o
: endian_calc.h
5748 qmod.o
: have_const.h
5749 qmod.o
: have_memmv.h
5750 qmod.o
: have_newstr.h
5751 qmod.o
: have_stdlib.h
5752 qmod.o
: have_string.h
5759 qtrans.o
: byteswap.h
5761 qtrans.o
: endian_calc.h
5762 qtrans.o
: have_const.h
5763 qtrans.o
: have_memmv.h
5764 qtrans.o
: have_newstr.h
5765 qtrans.o
: have_stdlib.h
5766 qtrans.o
: have_string.h
5767 qtrans.o
: longbits.h
5771 quickhash.o
: alloc.h
5772 quickhash.o
: block.h
5773 quickhash.o
: byteswap.h
5774 quickhash.o
: calcerr.h
5775 quickhash.o
: cmath.h
5776 quickhash.o
: config.h
5778 quickhash.o
: endian_calc.h
5780 quickhash.o
: have_const.h
5781 quickhash.o
: have_memmv.h
5782 quickhash.o
: have_newstr.h
5783 quickhash.o
: have_stdlib.h
5784 quickhash.o
: have_string.h
5785 quickhash.o
: longbits.h
5786 quickhash.o
: nametype.h
5787 quickhash.o
: qmath.h
5788 quickhash.o
: quickhash.c
5791 quickhash.o
: value.h
5792 quickhash.o
: zmath.h
5793 quickhash.o
: zrand.h
5794 quickhash.o
: zrandom.h
5795 sample_many.o
: alloc.h
5796 sample_many.o
: block.h
5797 sample_many.o
: byteswap.h
5798 sample_many.o
: calc.h
5799 sample_many.o
: calcerr.h
5800 sample_many.o
: cmath.h
5801 sample_many.o
: config.h
5802 sample_many.o
: decl.h
5803 sample_many.o
: endian_calc.h
5804 sample_many.o
: hash.h
5805 sample_many.o
: have_const.h
5806 sample_many.o
: have_memmv.h
5807 sample_many.o
: have_newstr.h
5808 sample_many.o
: have_stdlib.h
5809 sample_many.o
: have_string.h
5810 sample_many.o
: lib_util.h
5811 sample_many.o
: longbits.h
5812 sample_many.o
: nametype.h
5813 sample_many.o
: qmath.h
5814 sample_many.o
: sample_many.c
5815 sample_many.o
: sha1.h
5816 sample_many.o
: str.h
5817 sample_many.o
: value.h
5818 sample_many.o
: zmath.h
5819 sample_many.o
: zrandom.h
5820 sample_rand.o
: alloc.h
5821 sample_rand.o
: block.h
5822 sample_rand.o
: byteswap.h
5823 sample_rand.o
: calc.h
5824 sample_rand.o
: calcerr.h
5825 sample_rand.o
: cmath.h
5826 sample_rand.o
: config.h
5827 sample_rand.o
: decl.h
5828 sample_rand.o
: endian_calc.h
5829 sample_rand.o
: hash.h
5830 sample_rand.o
: have_const.h
5831 sample_rand.o
: have_memmv.h
5832 sample_rand.o
: have_newstr.h
5833 sample_rand.o
: have_stdlib.h
5834 sample_rand.o
: have_string.h
5835 sample_rand.o
: lib_util.h
5836 sample_rand.o
: longbits.h
5837 sample_rand.o
: nametype.h
5838 sample_rand.o
: qmath.h
5839 sample_rand.o
: sample_rand.c
5840 sample_rand.o
: sha1.h
5841 sample_rand.o
: str.h
5842 sample_rand.o
: value.h
5843 sample_rand.o
: zmath.h
5844 sample_rand.o
: zrandom.h
5848 seed.o
: endian_calc.h
5849 seed.o
: have_const.h
5850 seed.o
: have_getpgid.h
5851 seed.o
: have_getprid.h
5852 seed.o
: have_getsid.h
5853 seed.o
: have_gettime.h
5854 seed.o
: have_memmv.h
5855 seed.o
: have_newstr.h
5856 seed.o
: have_rusage.h
5857 seed.o
: have_stdlib.h
5858 seed.o
: have_string.h
5859 seed.o
: have_times.h
5860 seed.o
: have_uid_t.h
5861 seed.o
: have_unistd.h
5862 seed.o
: have_urandom.h
5863 seed.o
: have_ustat.h
5876 sha1.o
: endian_calc.h
5878 sha1.o
: have_const.h
5879 sha1.o
: have_memmv.h
5880 sha1.o
: have_newstr.h
5881 sha1.o
: have_stdlib.h
5882 sha1.o
: have_string.h
5898 size.o
: endian_calc.h
5900 size.o
: have_const.h
5901 size.o
: have_memmv.h
5902 size.o
: have_newstr.h
5903 size.o
: have_stdlib.h
5904 size.o
: have_string.h
5923 str.o
: endian_calc.h
5927 str.o
: have_newstr.h
5928 str.o
: have_stdlib.h
5929 str.o
: have_string.h
5940 symbol.o
: byteswap.h
5946 symbol.o
: endian_calc.h
5949 symbol.o
: have_const.h
5950 symbol.o
: have_memmv.h
5951 symbol.o
: have_newstr.h
5952 symbol.o
: have_stdlib.h
5953 symbol.o
: have_string.h
5955 symbol.o
: longbits.h
5956 symbol.o
: nametype.h
5975 token.o
: endian_calc.h
5977 token.o
: have_const.h
5978 token.o
: have_memmv.h
5979 token.o
: have_newstr.h
5980 token.o
: have_stdlib.h
5981 token.o
: have_string.h
6000 value.o
: endian_calc.h
6004 value.o
: have_const.h
6005 value.o
: have_fpos.h
6006 value.o
: have_memmv.h
6007 value.o
: have_newstr.h
6008 value.o
: have_stdlib.h
6009 value.o
: have_string.h
6025 version.o
: byteswap.h
6027 version.o
: calcerr.h
6031 version.o
: endian_calc.h
6033 version.o
: have_const.h
6034 version.o
: have_memmv.h
6035 version.o
: have_newstr.h
6036 version.o
: have_stdlib.h
6037 version.o
: have_string.h
6038 version.o
: have_unused.h
6039 version.o
: longbits.h
6040 version.o
: nametype.h
6045 version.o
: version.c
6050 zfunc.o
: endian_calc.h
6051 zfunc.o
: have_const.h
6052 zfunc.o
: have_memmv.h
6053 zfunc.o
: have_newstr.h
6054 zfunc.o
: have_stdlib.h
6055 zfunc.o
: have_string.h
6064 zio.o
: endian_calc.h
6067 zio.o
: have_newstr.h
6068 zio.o
: have_stdlib.h
6069 zio.o
: have_string.h
6078 zmath.o
: endian_calc.h
6079 zmath.o
: have_const.h
6080 zmath.o
: have_memmv.h
6081 zmath.o
: have_newstr.h
6082 zmath.o
: have_stdlib.h
6083 zmath.o
: have_string.h
6091 zmod.o
: endian_calc.h
6092 zmod.o
: have_const.h
6093 zmod.o
: have_memmv.h
6094 zmod.o
: have_newstr.h
6095 zmod.o
: have_stdlib.h
6096 zmod.o
: have_string.h
6106 zmul.o
: endian_calc.h
6107 zmul.o
: have_const.h
6108 zmul.o
: have_memmv.h
6109 zmul.o
: have_newstr.h
6110 zmul.o
: have_stdlib.h
6111 zmul.o
: have_string.h
6119 zprime.o
: byteswap.h
6124 zprime.o
: endian_calc.h
6126 zprime.o
: have_const.h
6127 zprime.o
: have_memmv.h
6128 zprime.o
: have_newstr.h
6129 zprime.o
: have_stdlib.h
6130 zprime.o
: have_string.h
6132 zprime.o
: longbits.h
6133 zprime.o
: nametype.h
6149 zrand.o
: endian_calc.h
6151 zrand.o
: have_const.h
6152 zrand.o
: have_memmv.h
6153 zrand.o
: have_newstr.h
6154 zrand.o
: have_stdlib.h
6155 zrand.o
: have_string.h
6156 zrand.o
: have_unused.h
6168 zrandom.o
: byteswap.h
6169 zrandom.o
: calcerr.h
6173 zrandom.o
: endian_calc.h
6175 zrandom.o
: have_const.h
6176 zrandom.o
: have_memmv.h
6177 zrandom.o
: have_newstr.h
6178 zrandom.o
: have_stdlib.h
6179 zrandom.o
: have_string.h
6180 zrandom.o
: have_unused.h
6181 zrandom.o
: longbits.h
6182 zrandom.o
: nametype.h
6188 zrandom.o
: zrandom.c
6189 zrandom.o
: zrandom.h