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
56 ##############################################################################
57 #-=-=-=-=-=-=-=-=- You may want to change some values below -=-=-=-=-=-=-=-=-#
58 ##############################################################################
60 # Determine the type of terminal controls that you want to use
64 # (nothing) let the Makefile guess at what you need
65 # -DUSE_TERMIOS use struct termios from <termios.h>
66 # -DUSE_TERMIO use struct termios from <termio.h>
67 # -DUSE_SGTTY use struct sgttyb from <sys/ioctl.h>
68 # -DUSE_NOTHING windoz system, don't use any of them
70 # Select TERMCONTROL= -DUSE_TERMIOS for DJGPP.
72 # If in doubt, leave TERMCONTROL empty.
75 #TERMCONTROL= -DUSE_TERMIOS
76 #TERMCONTROL= -DUSE_TERMIO
77 #TERMCONTROL= -DUSE_SGTTY
78 #TERMCONTROL= -DUSE_WIN32
80 # If your system does not have a vsprintf() function, you could be in trouble.
82 # vsprintf(string, format, ap)
84 # This function works like sprintf except that the 3rd arg is a va_list
85 # strarg (or varargs) list. Some old systems do not have vsprintf().
86 # If you do not have vsprintf(), then calc will try sprintf() and hope
89 # A simular problem occurs if your system does not have a vsnprintf()
90 # function. This function is like the vsprintf() function except that
91 # there is an extra second argument that controls the maximum size
92 # string that is produced.
94 # If HAVE_VSPRINTF is empty, this Makefile will run the have_stdvs.c and/or
95 # have_varvs.c program to determine if vsprintf() is supported. If
96 # HAVE_VSPRINTF is set to -DDONT_HAVE_VSPRINTF then calc will hope that
97 # sprintf() will work.
99 # If in doubt, leave HAVE_VSPRINTF empty.
102 #HAVE_VSPRINTF= -DDONT_HAVE_VSPRINTF
104 # Determine the byte order of your machine
106 # Big Endian: Amdahl, 68k, Pyramid, Mips, Sparc, ...
107 # Little Endian: Vax, 32k, Spim (Dec Mips), i386, i486, ...
109 # If in doubt, leave CALC_BYTE_ORDER empty. This Makefile will attempt to
110 # use BYTE_ORDER in <machine/endian.h> or it will attempt to run
111 # the endian program. If you get syntax errors when you compile,
112 # try forcing the value to be -DBIG_ENDIAN and run the calc regression
113 # tests. (see the README file) If the calc regression tests fail, do
114 # a make clobber and try -DCALC_LITTLE_ENDIAN. If that fails, ask a wizard
117 # Select CALC_BYTE_ORDER= -DCALC_LITTLE_ENDIAN for DJGPP.
120 #CALC_BYTE_ORDER= -DBIG_ENDIAN
121 #CALC_BYTE_ORDER= -DLITTLE_ENDIAN
123 # Determine the number of bits in a long
125 # If in doubt, leave LONG_BITS empty. This Makefile will run
126 # the longbits program to determine the length.
128 # In order to avoid make brain damage in some systems, we avoid placing
129 # a space after the ='s below.
131 # Select LONG_BITS= 32 for DJGPP.
137 # Determine if we have the ANSI C fgetpos and fsetpos alternate interface
138 # to the ftell() and fseek() (with whence set to SEEK_SET) functions.
140 # If HAVE_FPOS is empty, this Makefile will run the have_fpos program
141 # to determine if there is are fgetpos and fsetpos functions. If HAVE_FPOS
142 # is set to -DHAVE_NO_FPOS, then calc will use ftell() and fseek().
144 # If in doubt, leave HAVE_FPOS empty and this Makefile will figure it out.
147 #HAVE_FPOS= -DHAVE_NO_FPOS
149 # Determine if we have an __pos element of a file position (fpos_t) structure.
151 # If HAVE_FPOS_POS is empty, this Makefile will run the have_fpos_pos program
152 # to determine if fpos_t has a __pos structure element. If HAVE_FPOS_POS
153 # is set to -DHAVE_NO_FPOS_POS, then calc assume there is no __pos element.
155 # Select HAVE_FPOS_POS= -DHAVE_NO_FPOS_POS for DJGPP.
157 # If in doubt, leave HAVE_FPOS_POS empty and this Makefile will figure it out.
160 #HAVE_FPOS_POS= -DHAVE_NO_FPOS_POS
162 # Determine the size of the __pos element in fpos_t, if it exists.
164 # If FPOS_POS_BITS is empty, then the Makefile will determine the size of
165 # the file position value of the __pos element.
167 # If there is no __pos element in fpos_t (say because fpos_t is a scalar),
168 # leave FPOS_POS_BITS blank.
170 # If in doubt, leave FPOS_POS_BITS empty and this Makefile will figure it out.
176 # Determine the size of a file position value.
178 # If FPOS_BITS is empty, then the Makefile will determine the size of
179 # the file position value.
181 # Select FPOS_BITS= 32 for DJGPP.
183 # If in doubt, leave FPOS_BITS empty and this Makefile will figure it out.
189 # Determine the size of the off_t file offset element
191 # If OFF_T_BITS is empty, then the Makefile will determine the size of
192 # the file offset value.
194 # Select OFF_T_BITS= 32 for DJGPP.
196 # If in doubt, leave OFF_T_BITS empty and this Makefile will figure it out.
202 # Determine the size of the dev_t device value
204 # If DEV_BITS is empty, then the Makefile will determine the size of
205 # the dev_t device value
207 # Select DEV_BITS= 32 for DJGPP.
209 # If in doubt, leave DEV_BITS empty and this Makefile will figure it out.
216 # Determine the size of the ino_t device value
218 # If INODE_BITS is empty, then the Makefile will determine the size of
219 # the ino_t inode value
221 # Select INODE_BITS= 32 for DJGPP.
223 # If in doubt, leave INODE_BITS empty and this Makefile will figure it out.
230 # Determine if we have an off_t which one can perform arithmetic operations,
231 # assignments and comparisons. On some systems off_t is some sort of union
234 # If HAVE_OFFSCL is empty, this Makefile will run the have_offscl program
235 # to determine if off_t is a scalar. If HAVE_OFFSCL is set to the value
236 # -DOFF_T_NON_SCALAR when calc will assume that off_t some sort of
237 # union or struct which.
239 # If in doubt, leave HAVE_OFFSCL empty and this Makefile will figure it out.
242 #HAVE_OFFSCL= -DOFF_T_NON_SCALAR
244 # Determine if we have an fpos_t which one can perform arithmetic operations,
245 # assignments and comparisons. On some systems fpos_t is some sort of union
246 # or struct. Some systems do not have an fpos_t and long is as a file
249 # If HAVE_POSSCL is empty, this Makefile will run the have_offscl program
250 # to determine if off_t is a scalar, or if there is no off_t and long
251 # (a scalar) should be used instead. If HAVE_POSSCL is set to the value
252 # -DFILEPOS_NON_SCALAR when calc will assume that fpos_t exists and is
253 # some sort of union or struct which.
255 # If in doubt, leave HAVE_POSSCL empty and this Makefile will figure it out.
258 #HAVE_POSSCL= -DFILEPOS_NON_SCALAR
260 # Determine if we have ANSI C const.
262 # If HAVE_CONST is empty, this Makefile will run the have_const program
263 # to determine if const is supported. If HAVE_CONST is set to -DHAVE_NO_CONST,
264 # then calc will not use const.
266 # If in doubt, leave HAVE_CONST empty and this Makefile will figure it out.
269 #HAVE_CONST= -DHAVE_NO_CONST
271 # Determine if we have uid_t
273 # If HAVE_UID_T is empty, this Makefile will run the have_uid_t program
274 # to determine if const is supported. If HAVE_UID_T is set to -DHAVE_NO_UID_T,
275 # then calc will treat uid_t as an unsigned short. This only matters if
276 # $HOME is not set and calc must look up the home directory in /etc/passwd.
278 # If in doubt, leave HAVE_UID_T empty and this Makefile will figure it out.
281 #HAVE_UID_T= -DHAVE_NO_UID_T
283 # Determine if we have memcpy(), memset() and strchr()
285 # If HAVE_NEWSTR is empty, this Makefile will run the have_newstr program
286 # to determine if memcpy(), memset() and strchr() are supported. If
287 # HAVE_NEWSTR is set to -DHAVE_NO_NEWSTR, then calc will use bcopy() instead
288 # of memcpy(), use bfill() instead of memset(), and use index() instead of
291 # If in doubt, leave HAVE_NEWSTR empty and this Makefile will figure it out.
294 #HAVE_NEWSTR= -DHAVE_NO_NEWSTR
296 # Determine if we have memmove()
298 # If HAVE_MEMMOVE is empty, this Makefile will run the have_memmv program
299 # to determine if memmove() is supported. If HAVE_MEMMOVE is set to
300 # -DHAVE_NO_MEMMOVE, then calc will use internal functions to simulate
301 # the memory move function that does correct overlapping memory modes.
303 # If in doubt, leave HAVE_MEMMOVE empty and this Makefile will figure it out.
306 #HAVE_MEMMOVE= -DHAVE_NO_MEMMOVE
308 # Determine if we have ustat()
310 # If HAVE_USTAT is empty, this Makefile will run the have_memmv program
311 # to determine if ustat() is supported. If HAVE_USTAT is set to
312 # -DHAVE_NO_USTAT, then calc will use internal functions to simulate
313 # the memory move function that does correct overlapping memory modes.
315 # Select HAVE_USTAT= -DHAVE_NO_USTAT for DJGPP.
317 # If in doubt, leave HAVE_USTAT empty and this Makefile will figure it out.
320 #HAVE_USTAT= -DHAVE_NO_USTAT
322 # Determine if we have getsid()
324 # If HAVE_GETSID is empty, this Makefile will run the have_memmv program
325 # to determine if getsid() is supported. If HAVE_GETSID is set to
326 # -DHAVE_NO_GETSID, then calc will use internal functions to simulate
327 # the memory move function that does correct overlapping memory modes.
329 # Select HAVE_GETSID= -DHAVE_NO_GETSID for DJGPP.
331 # If in doubt, leave HAVE_GETSID empty and this Makefile will figure it out.
334 #HAVE_GETSID= -DHAVE_NO_GETSID
336 # Determine if we have getpgid()
338 # If HAVE_GETPGID is empty, this Makefile will run the have_memmv program
339 # to determine if getpgid() is supported. If HAVE_GETPGID is set to
340 # -DHAVE_NO_GETPGID, then calc will use internal functions to simulate
341 # the memory move function that does correct overlapping memory modes.
343 # Select HAVE_GETPGID= -DHAVE_NO_GETPGID for DJGPP.
345 # If in doubt, leave HAVE_GETPGID empty and this Makefile will figure it out.
348 #HAVE_GETPGID= -DHAVE_NO_GETPGID
350 # Determine if we have clock_gettime()
352 # If HAVE_GETTIME is empty, this Makefile will run the have_memmv program
353 # to determine if clock_gettime() is supported. If HAVE_GETTIME is set to
354 # -DHAVE_NO_GETTIME, then calc will use internal functions to simulate
355 # the memory move function that does correct overlapping memory modes.
357 # Select HAVE_GETTIME= -DHAVE_NO_GETTIME for DJGPP.
359 # If in doubt, leave HAVE_GETTIME empty and this Makefile will figure it out.
362 #HAVE_GETTIME= -DHAVE_NO_GETTIME
364 # Determine if we have getprid()
366 # If HAVE_GETPRID is empty, this Makefile will run the have_memmv program
367 # to determine if getprid() is supported. If HAVE_GETPRID is set to
368 # -DHAVE_NO_GETPRID, then calc will use internal functions to simulate
369 # the memory move function that does correct overlapping memory modes.
371 # Select HAVE_GETPRID= -DHAVE_NO_GETPRID for DJGPP.
373 # If in doubt, leave HAVE_GETPRID empty and this Makefile will figure it out.
376 #HAVE_GETPRID= -DHAVE_NO_GETPRID
378 # Determine if we have the /dev/urandom
380 # HAVE_URANDOM_H= let the Makefile look /dev/urandom
381 # HAVE_URANDOM_H= YES assume that /dev/urandom exists
382 # HAVE_URANDOM_H= NO assume that /dev/urandom does not exist
384 # Select HAVE_URANDOM_H= NO for DJGPP.
386 # When in doubt, leave HAVE_URANDOM_H empty.
392 # Determine if we have getrusage()
394 # If HAVE_GETRUSAGE is empty, this Makefile will run the have_memmv program
395 # to determine if getrusage() is supported. If HAVE_GETRUSAGE is set to
396 # -DHAVE_NO_GETRUSAGE, then calc will use internal functions to simulate
397 # the memory move function that does correct overlapping memory modes.
399 # If in doubt, leave HAVE_GETRUSAGE empty and this Makefile will figure it out.
402 #HAVE_GETRUSAGE= -DHAVE_NO_GETRUSAGE
404 # Determine if we have strdup()
406 # If HAVE_STRDUP is empty, this Makefile will run the have_memmv program
407 # to determine if strdup() is supported. If HAVE_STRDUP is set to
408 # -DHAVE_NO_STRDUP, then calc will use internal functions to simulate
409 # the memory move function that does correct overlapping memory modes.
411 # If in doubt, leave HAVE_STRDUP empty and this Makefile will figure it out.
414 #HAVE_STRDUP= -DHAVE_NO_STRDUP
416 # Some architectures such as Sparc do not allow one to access 32 bit values
417 # that are not alligned on a 32 bit boundary.
419 # The Dec Alpha running OSF/1 will produce alignment error messages when
420 # align32.c tries to figure out if alignment is needed. Use the
421 # ALIGN32= -DMUST_ALIGN32 to force alignment and avoid such error messages.
423 # ALIGN32= let align32.c figure out if alignment is needed
424 # ALIGN32= -DMUST_ALIGN32 force 32 bit alignment
425 # ALIGN32= -UMUST_ALIGN32 allow non-alignment of 32 bit accesses
427 # Select ALIGN32= -UMUST_ALIGN32 for DJGPP.
429 # When in doubt, be safe and pick ALIGN32=-DMUST_ALIGN32.
432 #ALIGN32= -DMUST_ALIGN32
433 #ALIGN32= -UMUST_ALIGN32
435 # Determine if we have the <stdlib.h> include file.
437 # HAVE_STDLIB_H= let the Makefile look for the include file
438 # HAVE_STDLIB_H= YES assume that the include file exists
439 # HAVE_STDLIB_H= NO assume that the include file does not exist
441 # Select HAVE_STDLIB_H= YES for DJGPP.
443 # When in doubt, leave HAVE_STDLIB_H empty.
449 # Determine if we have the <string.h> include file.
451 # HAVE_STRING_H= let the Makefile look for the include file
452 # HAVE_STRING_H= YES assume that the include file exists
453 # HAVE_STRING_H= NO assume that the include file does not exist
455 # Select HAVE_STRING_H= YES for DJGPP.
457 # When in doubt, leave HAVE_STRING_H empty.
463 # Determine if we have the <times.h> include file.
465 # HAVE_TIMES_H= let the Makefile look for the include file
466 # HAVE_TIMES_H= YES assume that the include file exists
467 # HAVE_TIMES_H= NO assume that the include file does not exist
469 # Select HAVE_TIMES_H= NO for DJGPP.
471 # When in doubt, leave HAVE_TIMES_H empty.
477 # Determine if we have the <sys/times.h> include file.
479 # HAVE_SYS_TIMES_H= let the Makefile look for the include file
480 # HAVE_SYS_TIMES_H= YES assume that the include file exists
481 # HAVE_SYS_TIMES_H= NO assume that the include file does not exist
483 # Select HAVE_SYS_TIMES_H= YES for DJGPP.
485 # When in doubt, leave HAVE_SYS_TIMES_H empty.
488 #HAVE_SYS_TIMES_H= YES
489 #HAVE_SYS_TIMES_H= NO
491 # Determine if we have the <time.h> include file.
493 # HAVE_TIME_H= let the Makefile look for the include file
494 # HAVE_TIME_H= YES assume that the include file exists
495 # HAVE_TIME_H= NO assume that the include file does not exist
497 # Select HAVE_TIME_H= YES for DJGPP.
499 # When in doubt, leave HAVE_TIME_H empty.
505 # Determine if we have the <sys/time.h> include file.
507 # HAVE_SYS_TIME_H= let the Makefile look for the include file
508 # HAVE_SYS_TIME_H= YES assume that the include file exists
509 # HAVE_SYS_TIME_H= NO assume that the include file does not exist
511 # Select HAVE_SYS_TIME_H= YES for DJGPP.
513 # When in doubt, leave HAVE_SYS_TIME_H empty.
516 #HAVE_SYS_TIME_H= YES
519 # Determine if we have the <unistd.h> include file.
521 # HAVE_UNISTD_H= let the Makefile look for the include file
522 # HAVE_UNISTD_H= YES assume that the include file exists
523 # HAVE_UNISTD_H= NO assume that the include file does not exist
525 # Select HAVE_UNISTD_H= YES for DJGPP.
527 # When in doubt, leave HAVE_UNISTD_H empty.
533 # Determine if our compiler allows the -Wno-implicit flag
535 # HAVE_NO_IMPLICIT= let the Makefile test the -Wno-implicit flag
536 # HAVE_NO_IMPLICIT= NO Our compiler does not have -Wno-implicit flags
537 # HAVE_NO_IMPLICIT= YES Our compiler has a -Wno-implicit flag
539 # Select HAVE_NO_IMPLICIT= for DJGPP.
542 # HAVE_NO_IMPLICIT= NO
543 # HAVE_NO_IMPLICIT= YES
545 # Determine if our compiler allows the unused attribute
547 # If HAVE_UNUSED is empty, this Makefile will run the have_unused program
548 # to determine if the unused attribute is supported. If HAVE_UNUSED is set to
549 # -DHAVE_NO_UNUSED, then the unused attribute will not be used.
551 # Select HAVE_UNUSED= for DJGPP.
553 # If in doubt, leave HAVE_UNUSED empty and this Makefile will figure it out.
556 #HAVE_UNUSED= -DHAVE_NO_UNUSED
558 # System include files
560 # ${INCDIR} where the system include (.h) files are kept
564 # INCDIR= /dev/env/DJDIR/include
568 # INCDIR= /usr/include
571 #INCDIR= /usr/local/include
572 #INCDIR= /dev/env/DJDIR/include
575 # Where to install calc realted things
577 # ${BINDIR} where to install calc binary files
578 # ${LIBDIR} where calc link library (*.a) files are installed
579 # ${CALC_SHAREDIR} where to install calc help, .cal, startup, config files
580 # ${CALC_INCDIR} where the calc include files are installed
582 # NOTE: The install rule prepends installation paths with ${T}, which
583 # by default is empty. If ${T} is non-empty, then installation
584 # locations will be relative to the ${T} directory.
586 # NOTE: If you change LIBDIR to a non-standard location, you will need
587 # to make changes to your execution environment so that executables
588 # will search LIBDIR when they are resolving dynamic shared libraries.
590 # On OS X, this means you need to export $DYLD_LIBRARY_PATH
591 # to include the LIBDIR path in the value.
593 # On Linux and BSD, this means you need to export $LD_LIBRARY_PATH
594 # to include the LIBDIR path in the value.
596 # You might be better off not changing LIBDIR in the first place.
600 # BINDIR= /dev/env/DJDIR/bin
601 # LIBDIR= /dev/env/DJDIR/lib
602 # CALC_SHAREDIR= /dev/env/DJDIR/share/calc
608 # CALC_SHAREDIR= /usr/share/calc
610 #BINDIR= /usr/local/bin
611 #BINDIR= /dev/env/DJDIR/bin
614 #LIBDIR= /usr/local/lib
615 #LIBDIR= /dev/env/DJDIR/lib
618 #CALC_SHAREDIR= /usr/local/lib/calc
619 #CALC_SHAREDIR= /dev/env/DJDIR/share/calc
620 CALC_SHAREDIR
= /usr
/share
/calc
622 # NOTE: Do not set CALC_INCDIR to /usr/include or /usr/local/include!!!
623 # Always be sure that the CALC_INCDIR path ends in /calc to avoid
624 # conflicts with system or other application include files!!!
626 #CALC_INCDIR= /usr/local/include/calc
627 #CALC_INCDIR= /dev/env/DJDIR/include/calc
628 CALC_INCDIR
= ${INCDIR}/calc
630 # By default, these values are based CALC_SHAREDIR, INCDIR, BINDIR
631 # ---------------------------------------------------------------
632 # ${HELPDIR} where the help directory is installed
633 # ${CUSTOMCALDIR} where custom *.cal files are installed
634 # ${CUSTOMHELPDIR} where custom help files are installed
635 # ${CUSTOMINCDIR} where custom .h files are installed
636 # ${SCRIPTDIR} where calc shell scripts are installed
638 # NOTE: The install rule prepends installation paths with ${T}, which
639 # by default is empty. If ${T} is non-empty, then installation
640 # locations will be relative to the ${T} directory.
644 # HELPDIR= ${CALC_SHAREDIR}/help
645 # CALC_INCDIR= ${INCDIR}/calc
646 # CUSTOMCALDIR= ${CALC_SHAREDIR}/custom
647 # CUSTOMHELPDIR= ${CALC_SHAREDIR}/custhelp
648 # CUSTOMINCDIR= ${CALC_INCDIR}/custom
649 # SCRIPTDIR= ${BINDIR}/cscript
651 HELPDIR
= ${CALC_SHAREDIR}/help
652 CUSTOMCALDIR
= ${CALC_SHAREDIR}/custom
653 CUSTOMHELPDIR
= ${CALC_SHAREDIR}/custhelp
654 CUSTOMINCDIR
= ${CALC_INCDIR}/custom
655 SCRIPTDIR
= ${BINDIR}/cscript
657 # T - top level directory under which calc will be installed
659 # The calc install is performed under ${T}, the calc build is
660 # performed under /. The purpose for ${T} is to allow someone
661 # to install calc somewhere other than into the system area.
667 # CALC_SHAREDIR= /usr/share/calc
671 # T= /var/tmp/testing
673 # Then the installation locations will be:
675 # calc binary files: /var/tmp/testing/usr/bin
676 # calc link library: /var/tmp/testing/usr/lib
677 # calc help, .cal ...: /var/tmp/testing/usr/share/calc
678 # ... etc ... /var/tmp/testing/...
680 # If ${T} is empty, calc is installed under /, which is the same
681 # top of tree for which it was built. If ${T} is non-empty, then
682 # calc is installed under ${T}, as if one had to chroot under
683 # ${T} for calc to operate.
685 # If in doubt, use T=
689 # where man pages are installed
691 # Select MANDIR= /dev/env/DJDIR/man/man1 for DJGPP.
693 # Use MANDIR= to disable installation of the calc man (source) page.
696 #MANDIR= /usr/local/man/man1
697 #MANDIR= /usr/man/man1
698 MANDIR
= /usr
/share
/man
/man1
699 #MANDIR= /dev/env/DJDIR/man/man1
700 #MANDIR= /usr/man/u_man/man1
701 #MANDIR= /usr/contrib/man/man1
703 # where cat (formatted man) pages are installed
705 # Select CATDIR= /dev/env/DJDIR/man/cat1 for DJGPP.
707 # Use CATDIR= to disable installation of the calc cat (formatted) page.
710 #CATDIR= /usr/local/man/cat1
711 #CATDIR= /usr/local/catman/cat1
712 #CATDIR= /usr/man/cat1
713 #CATDIR= /usr/share/man/cat1
714 #CATDIR= /dev/env/DJDIR/man/cat1
715 #CATDIR= /var/cache/man/cat1
716 #CATDIR= /usr/man/u_man/cat1
717 #CATDIR= /usr/contrib/man/cat1
719 # extension to add on to the calc man page filename
721 # This is ignored if CATDIR is empty.
726 # extension to add on to the calc man page filename
728 # This is ignored if CATDIR is empty.
735 # how to format a man page
737 # If CATDIR is non-empty, then
739 # If NROFF is non-empty, then
741 # ${NROFF} ${NROFF_ARG} calc.1 > ${CATDIR}/calc.${CATEXT}
742 # is used to built and install the cat page
744 # else (NROFF is empty)
746 # ${MANMAKE} calc.1 ${CATDIR}
747 # is used to built and install the cat page
750 # The cat page is not built or installed
752 # Select NROFF= groff for DJGPP.
754 # If in doubt and you don't want to fool with man pages, set MANDIR
755 # and CATDIR to empty and ignore the NROFF, NROFF_ARG and MANMAKE
763 MANMAKE
= /usr
/local
/bin
/manmake
768 # By default, custom builtin functions may only be executed if calc
769 # is given the -C option. This is because custom builtin functions
770 # may invoke non-standard or non-portable code. One may completely
771 # disable custom builtin functions by not compiling any of code
773 # ALLOW_CUSTOM= -DCUSTOM # allow custom only if -C is given
774 # ALLOW_CUSTOM= # disable custom even if -C is given
776 # If in doubt, use ALLOW_CUSTOM= -DCUSTOM
778 ALLOW_CUSTOM
= -DCUSTOM
781 # If the $CALCPATH environment variable is not defined, then the following
782 # path will be search for calc resource file routines.
784 # Select CALCPATH= .;./cal;~/.cal;${CALC_SHAREDIR};${CUSTOMCALDIR} for DJGPP.
786 CALCPATH
= .
:.
/cal
:~
/.cal
:${CALC_SHAREDIR}:${CUSTOMCALDIR}
788 # If the $CALCRC environment variable is not defined, then the following
789 # path will be search for calc resource files.
791 # Select CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit for DJGPP.
793 CALCRC
= ${CALC_SHAREDIR}/startup
:~
/.calcrc
:.
/.calcinit
794 #CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit
796 # Determine of the GNU-readline facility will be used instead of the
797 # built-in calc binding method.
799 # USE_READLINE= Do not use GNU-readline, use calc bindings
800 # USE_READLINE= -DUSE_READLINE Use GNU-readline, do not use calc bindings
802 # NOTE: If you select the 'USE_READLINE= -DUSE_READLINE' mode, you must set:
804 # READLINE_LIB The flags needed to link in the readline
805 # and history link libraries
806 # READLINE_EXTRAS Flags and libs needed to use the readline
807 # and history link libraries
808 # READLINE_INCLUDE Where the readline include files reside
809 # (leave blank if they are /usr/include/readline)
811 # NOTE: The GNU-readline code is not shipped with calc. You must have
812 # the appropriate headers and link libs installed on your system in
815 # If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
818 #USE_READLINE= -DUSE_READLINE
823 #READLINE_LIB= -lreadline
824 #READLINE_EXTRAS= -lhistory -lncurses
826 #READLINE_LIB= -L/usr/gnu/lib -lreadline
827 #READLINE_EXTRAS= -lhistory -lncurses
829 #READLINE_LIB= -L/usr/local/lib -lreadline
830 #READLINE_EXTRAS= -lhistory -lncurses
832 # For Apple OS X: install fink from http://fink.sourceforge.net
833 # and then do a 'fink install readline' and then use:
835 #READLINE_LIB= -L/sw/lib -lreadline
836 #READLINE_EXTRAS= -lhistory -lncurses
839 #READLINE_INCLUDE= -I/usr/gnu/include
840 #READLINE_INCLUDE= -I/usr/local/include
842 # If $PAGER is not set, use this program to display a help file
844 # Select CALCPAGER= less.exe -ci for DJGPP.
850 #CALCPAGER= less.exe -ci
852 # Debug/Optimize options for ${CC} and ${LCC}
854 # Select DEBUG= -O2 -gstabs+ -DWINDOZ for DJGPP.
880 # Some systems require one to use ranlib to add a symbol table to
881 # a *.a link library. Set RANLIB to the utility that performs this
882 # action. Set RANLIB to : if your system does not need such a utility.
887 # Normally certain files depend on the Makefile. If the Makefile is
888 # changed, then certain steps should be redone. If MAKE_FILE is
889 # set to Makefile, then these files will depend on Makefile. If
890 # MAKE_FILE is empty, then they wont.
892 # If in doubt, set MAKE_FILE to Makefile
896 # Controlling file makefile basename (without the path)
898 # This is the basename same of the makefile that may/does/will drive
901 # If in doubt, set TOP_MAKE_FILE to Makefile
903 TOP_MAKE_FILE
= Makefile
905 # If you do not wish to use purify, set PURIFY to an empty string.
907 # If in doubt, use PURIFY=
910 #PURIFY= purify -m71-engine
911 #PURIFY= purify -logfile=pure.out
912 #PURIFY= purify -m71-engine -logfile=pure.out
915 # If you want to use a debugging link library such as a malloc debug link
916 # library, or need to add special ld flags after the calc link libraries
917 # are included, set ${LD_DEBUG} below.
919 # If in doubt, set LD_DEBUG to empty.
921 #LD_DEBUG= -lmalloc_cv
930 # the ${CALC_ENV} is used to supply the proper environment variables
931 # to calc. Most people will simply need 'CALCPATH=./cal' to ensure
932 # that these debug rules will only use calc resource files under the
933 # local source directory. The longer lines (with MALLOC_VERBOSE=1 ...)
934 # are useful for SGI IRIX people who have 'WorkShop Performance Tools'
935 # and who also set 'LD_DEBUG= -lmalloc_cv' above.
937 # If in doubt, use CALC_ENV= CALCPATH=./cal LD_LIBRARY_PATH=.:./custom
939 CALC_ENV
= CALCPATH
=.
/cal LD_LIBRARY_PATH
=.
940 #CALC_ENV= CALCPATH=./cal MALLOC_VERBOSE=1 MALLOC_TRACING=1 \
941 # MALLOC_FASTCHK=1 MALLOC_FULLWARN=1 LD_LIBRARY_PATH=.:./custom
942 #CALC_ENV= CALCPATH=./cal MALLOC_VERBOSE=1 MALLOC_TRACING=1 \
943 # MALLOC_FASTCHK=1 MALLOC_FULLWARN=1 MALLOC_CLEAR_FREE=1 \
944 # MALLOC_CLEAR_MALLOC=1 LD_LIBRARY_PATH=.:./custom
947 # The install rule uses:
949 # ${MKDIR} ${MKDIR_ARG}
951 # to create directorties. Normall this amounts to usins mkdir -p dir ...
952 # Some older systems may not have mkdir -p. If you system does not
953 # make mkdir -p, then set MKDIR_ARG to empty.
955 # MKDIR_ARG= -p # use mkdir -p when creating paths
956 # MKDIR_ARG= # use if system does not understand mkdir -p
961 # Some out of date operating systems require / want an executable to
962 # end with a certain file extension. Some compile systems such as
963 # windoz build calc as calc.exe. The EXT variable is used to denote
964 # the extension required by such. Note that Cygwin requires EXT to be
965 # the same as Linux/Un*x/GNU, even though it runs under windoz.
967 # EXT= # normal Un*x / Linux / GNU/Linux / Cygwin
970 # If in doubt, use EXT=
975 # The default calc versions
982 # Names of shared libraries with versions
985 LIB_EXT_VERSION
= ${LIB_EXT}.
${VERSION}
986 LIB_EXT_VERS
= ${LIB_EXT}.
${VERS}
987 LIB_EXT_VER
= ${LIB_EXT}.
${VER}
988 LIB_EXT_VE
= ${LIB_EXT}.
${VE}
990 # standard utilities used during make
1021 # assume the X11 makedepend tool for the depend rule
1022 MAKEDEPEND
= makedepend
1025 # Extra compiling and linking flags
1027 # EXTRA_CFLAGS are flags given to ${CC} when compiling C files
1028 # EXTRA_LDFLAGS are flags given to ${CC} when linking progs
1030 # Both CFLAGS and LDFLAGS are left blank in this Makefile by
1031 # default so that users may use them on the make command line
1032 # to always the way that C is compiled and files are linked
1033 # respectively. For example:
1035 # make all EXTRA_CFLAGS="-DMAGIC" EXTRA_LDFLAGS="-lmagic"
1037 # NOTE: These should be left blank in this Makefile to make it
1038 # easier to add stuff on the command line. If you want to
1039 # to change the way calc is compiled by this Makefile, change
1040 # the appropirate host target section below or a flag above.
1045 # COMMON_CFLAGS are the common ${CC} flags used for all progs, both
1046 # intermediate and final calc and calc related progs
1048 COMMON_CFLAGS
= -DCALC_SRC
${ALLOW_CUSTOM} ${CCWARN} ${CCMISC} ${EXTRA_CFLAGS}
1050 # COMMON_LDFLAGS are the common flags used for linking all progs, both
1051 # intermediate and final calc and calc related progs
1053 COMMON_LDFLAGS
= ${EXTRA_LDFLAGS}
1055 # start of host target cut - Do not remove this line
1056 ##############################################################################
1057 #-=-=-=-=-=- host target section - targets that override defaults -=-=-=-=-=-#
1058 ##############################################################################
1060 # Common values set in targets
1062 # BLD_TYPE determines if calc is built with static and/or dynamic libs.
1063 # Set this value to one of:
1065 # BLD_TYPE= calc-dynamic-only
1066 # BLD_TYPE= calc-static-only
1068 # CC_SHARE are flags given to ${CC} to build .o files suitable for shared libs
1069 # DEFAULT_LIB_INSTALL_PATH is where calc progs look for calc shared libs
1070 # LD_SHARE are common flags given to ${CC} to link with shared libraries
1071 # LIBCALC_SHLIB are flags given to ${CC} to build libcalc shared lib
1072 # LIBCUSTCALC_SHLIB are flags given to ${CC} to build libcustcalc shared lib
1074 # NOTE: The above 4 values are unused if BLD_TYPE= calc-static-only
1076 # CC_STATIC are flags given to ${CC} to build .o files suitable for static libs
1077 # LD_STATIC are common flags given to ${CC} to link with static libraries
1078 # LIBCALC_STATIC are flags given to ${CC} to build libcalc static lib
1079 # LIBCUSTCALC_STATIC are flags given to ${CC} to build libcustcalc static lib
1081 # NOTE: The above 4 values are unused if BLD_TYPE= calc-dynamic-only
1083 # CCOPT are flags given to ${CC} for optimization
1084 # CCWARN are flags given to ${CC} for warning message control
1085 # CCWERR are flags given to ${CC} to make warnings fatal errors
1086 # NOTE: CCWERR is only set in development Makefiles and must only be
1087 # used with ${CC}, not ${LCC}. If you do not want the compiler
1088 # to abort on warnings, then leave CCWERR blank.
1089 # CCMISC are misc flags given to ${CC}
1091 # LCC how the C compiler is invoked on locally executed intermediate progs
1092 # CC is how the C compiler is invoked (with an optional Purify)
1094 # Specific target overrides or modifications to default values
1096 ##########################################################################
1097 # NOTE: If your target is not supported below and the default target #
1098 # is not suitable for your needs, please send to the: #
1100 # calc-contrib at asthe dot com #
1102 # EMail address an "ifeq ($(target),YOUR_TARGET_NAME)" ... "endif" #
1103 # set of lines so that we can consider them for the next release. #
1104 ##########################################################################
1107 BLD_TYPE
= calc-static-only
1110 DEFAULT_LIB_INSTALL_PATH
= ${PWD}:/lib
:/usr
/lib
:${LIBDIR}:/usr
/local
/lib
1111 LD_SHARE
= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1112 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1113 LIBCALC_SHLIB
= -shared
"-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1114 LIBCUSTCALC_SHLIB
= -shared
"-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1121 CCWARN
= -Wall
-W
-Wno-comment
1127 CC
= ${PURIFY} ${LCC} ${CCWERR}
1129 # The simple makefile forces the use of static ${CC} flags
1131 # ICFLAGS are given to ${CC} for intermediate progs used to help compile calc
1132 # CFLAGS are given to ${CC} for calc progs other than intermediate progs
1133 # ILDFLAGS for ${CC} in linking intermediate progs used to help compile calc
1134 # LDFLAGS for ${CC} in linking calc progs other than intermediate progs
1136 ICFLAGS
= ${COMMON_CFLAGS} ${CC_STATIC}
1137 CFLAGS
= ${ICFLAGS} ${CCOPT}
1139 ILDFLAGS
= ${COMMON_LDFLAGS} ${LD_STATIC}
1140 LDFLAGS
= ${LD_DEBUG} ${ILDFLAGS} ${LIBCALC_STATIC} ${LIBCUSTCALC_STATIC}
1142 CALCPATH
= .
;.
/cal
;~
/.cal
;${CALC_SHAREDIR};${CUSTOMCALDIR}
1144 #######################################################################
1145 #-=-=-=-=-=- end of target section - only make rules below -=-=-=-=-=-#
1146 #######################################################################
1147 # end of host target cut - Do not remove this line
1149 ###############################################################################
1150 #=-=-=-=-=- Be careful if you change something in this next section -=-=-=-=-=#
1151 ###############################################################################
1155 # Q=@ do not echo internal Makefile actions (quiet mode)
1156 # Q= echo internal Makefile actions (debug / verbose mode)
1158 # V=@: do not echo debug statements (quiet mode)
1159 # V=@ do echo debug statements (debug / verbose mode)
1166 # the source files which are built into a math link library
1168 # There MUST be a .o for every .c in LIBOBJS
1170 LIBSRC
= addop.c assocfunc.c blkcpy.c block.c byteswap.c \
1171 codegen.c comfunc.c commath.c config.c const.c custom.c \
1172 file.c func.c hash.c help.c hist.c input.c jump.c label.c \
1173 lib_calc.c lib_util.c listfunc.c matfunc.c math_error.c \
1174 obj.c opcodes.c pix.c poly.c prime.c qfunc.c qio.c \
1175 qmath.c qmod.c qtrans.c quickhash.c seed.c sha1.c size.c \
1176 str.c symbol.c token.c value.c version.c zfunc.c zio.c \
1177 zmath.c zmod.c zmul.c zprime.c zrand.c zrandom.c
1179 # the object files which are built into a math link library
1181 # There MUST be a .o for every .c in LIBSRC plus calcerr.o
1182 # which is built via this Makefile.
1184 LIBOBJS
= addop.o assocfunc.o blkcpy.o block.o byteswap.o calcerr.o \
1185 codegen.o comfunc.o commath.o config.o const.o custom.o \
1186 file.o func.o hash.o help.o hist.o input.o jump.o label.o \
1187 lib_calc.o lib_util.o listfunc.o matfunc.o math_error.o \
1188 obj.o opcodes.o pix.o poly.o prime.o qfunc.o qio.o \
1189 qmath.o qmod.o qtrans.o quickhash.o seed.o sha1.o size.o \
1190 str.o symbol.o token.o value.o version.o zfunc.o zio.o \
1191 zmath.o zmod.o zmul.o zprime.o zrand.o zrandom.o
1193 # the calculator source files
1195 # There MUST be a .c for every .o in CALCOBJS.
1199 # we build these .o files for calc
1201 # There MUST be a .o for every .c in CALCSRC.
1205 # these .h files are needed to build the math link library
1207 LIB_H_SRC
= alloc.h blkcpy.h block.h byteswap.h calc.h cmath.h \
1208 config.h custom.h decl.h file.h func.h hash.h hist.h jump.h \
1209 label.h lib_util.h lib_calc.h nametype.h \
1210 opcodes.h prime.h qmath.h sha1.h str.h \
1211 symbol.h token.h value.h zmath.h zrand.h zrandom.h
1213 # we build these .h files during the make
1215 BUILD_H_SRC
= align32.h args.h calcerr.h conf.h endian_calc.h \
1216 fposval.h have_const.h have_fpos.h have_fpos_pos.h \
1217 have_memmv.h have_newstr.h have_offscl.h have_posscl.h \
1218 have_stdlib.h have_string.h have_times.h have_uid_t.h \
1219 have_unistd.h longbits.h terminal.h \
1220 have_ustat.h have_getsid.h have_getpgid.h \
1221 have_gettime.h have_getprid.h have_urandom.h have_rusage.h \
1222 have_strdup.h have_unused.h
1224 # we build these .c files during the make
1226 BUILD_C_SRC
= calcerr.c
1228 # these .c files may be used in the process of building BUILD_H_SRC
1230 # There MUST be a .c for every .o in UTIL_OBJS.
1232 UTIL_C_SRC
= align32.c endian.c longbits.c have_newstr.c have_uid_t.c \
1233 have_const.c have_stdvs.c have_varvs.c fposval.c have_fpos.c \
1234 have_fpos_pos.c have_offscl.c have_posscl.c have_memmv.c \
1235 have_ustat.c have_getsid.c have_getpgid.c \
1236 have_gettime.c have_getprid.c have_rusage.c have_strdup.c \
1237 no_implicit.c have_unused.c
1239 # these awk and sed tools are used in the process of building BUILD_H_SRC
1242 UTIL_MISC_SRC
= calcerr_h.sed calcerr_h.awk calcerr_c.sed calcerr_c.awk \
1243 calcerr.tbl
check.awk win32.mkdef
1245 # these .o files may get built in the process of building BUILD_H_SRC
1247 # There MUST be a .o for every .c in UTIL_C_SRC.
1249 UTIL_OBJS
= endian.o longbits.o have_newstr.o have_uid_t.o \
1250 have_const.o fposval.o have_fpos.o have_fpos_pos.o \
1251 try_strarg.o have_stdvs.o have_varvs.o have_posscl.o have_memmv.o \
1252 have_ustat.o have_getsid.o have_getpgid.o \
1253 have_gettime.o have_getprid.o ver_calc.o have_rusage.o have_strdup.o \
1254 no_implicit.o have_unused.o
1256 # these temp files may be created (and removed) during the build of BUILD_C_SRC
1258 UTIL_TMP
= ll_tmp fpos_tmp fposv_tmp const_tmp uid_tmp newstr_tmp vs_tmp \
1259 memmv_tmp offscl_tmp posscl_tmp newstr_tmp \
1260 getsid_tmp gettime_tmp getprid_tmp rusage_tmp strdup_tmp
1262 # these utility executables may be created in the process of
1263 # building the BUILD_H_SRC file set
1265 UTIL_PROGS
= align32
${EXT} fposval
${EXT} have_uid_t
${EXT} have_const
${EXT} \
1266 endian
${EXT} longbits
${EXT} have_newstr
${EXT} have_stdvs
${EXT} \
1267 have_varvs
${EXT} have_ustat
${EXT} have_getsid
${EXT} \
1268 have_getpgid
${EXT} have_gettime
${EXT} have_getprid
${EXT} \
1269 ver_calc
${EXT} have_strdup
${EXT} no_implicit
${EXT} \
1270 have_unused
${EXT} have_fpos
${EXT} have_fpos_pos
${EXT} \
1271 have_offscl
${EXT} have_rusage
${EXT}
1273 # these utility files and scripts may be created in the process of building
1274 # the BUILD_H_SRC file set
1276 UTIL_FILES
= no_implicit.arg have_args.sh
1278 # Any .h files that are needed to compile sample code.
1282 # Any .c files that are needed to compile sample code.
1284 # There MUST be a .c in SAMPLE_C_SRC for every .o in SAMPLE_OBJ.
1286 SAMPLE_C_SRC
= sample_many.c sample_rand.c
1288 # Any .o files that are needed to compile sample code.
1290 # There MUST be a .c in SAMPLE_C_SRC for every .o in SAMPLE_OBJ.
1292 SAMPLE_OBJ
= sample_many.o sample_rand.o
1294 # The complete list of Makefile vars passed down to custom/Makefile.
1297 ALLOW_CUSTOM
="${ALLOW_CUSTOM}" \
1300 BINDIR
="${BINDIR}" \
1301 BLD_TYPE
="${BLD_TYPE}" \
1302 CALC_INCDIR
="${CALC_INCDIR}" \
1303 CALC_SHAREDIR
="${CALC_SHAREDIR}" \
1307 CCMISC
="${CCMISC}" \
1309 CCWARN
="${CCWARN}" \
1310 CC_SHARE
="${CC_SHARE}" \
1311 CFLAGS
="${CFLAGS} -I.." \
1315 COMMON_CFLAGS
="${COMMON_CFLAGS} -I.." \
1316 COMMON_LDFLAGS
="${COMMON_LDFLAGS}" \
1318 CUSTOMCALDIR
="${CUSTOMCALDIR}" \
1319 CUSTOMHELPDIR
="${CUSTOMHELPDIR}" \
1320 CUSTOMINCDIR
="${CUSTOMINCDIR}" \
1322 DEFAULT_LIB_INSTALL_PATH
="${DEFAULT_LIB_INSTALL_PATH}" \
1325 HELPDIR
="${HELPDIR}" \
1326 ICFLAGS
="${ICFLAGS} -I.." \
1327 ILDFLAGS
="${ILDFLAGS}" \
1328 INCDIR
="${INCDIR}" \
1331 LDCONFIG
=${LDCONFIG} \
1332 LDFLAGS
="${LDFLAGS}" \
1333 LD_SHARE
="${LD_SHARE}" \
1334 LIBCUSTCALC_SHLIB
="${LIBCUSTCALC_SHLIB}" \
1335 LIBDIR
="${LIBDIR}" \
1338 MAKEDEPEND
=${MAKEDEPEND} \
1339 MAKE_FILE
=Makefile \
1342 PURIFY
="${PURIFY}" \
1344 RANLIB
="${RANLIB}" \
1347 SCRIPTDIR
="${SCRIPTDIR}" \
1351 TOP_MAKE_FILE
=${MAKE_FILE} \
1354 VERSION
=${VERSION} \
1357 # The compelte list of Makefile vars passed down to help/Makefile.
1361 BINDIR
="${BINDIR}" \
1362 CALC_INCDIR
="${CALC_INCDIR}" \
1363 CALC_SHAREDIR
="${CALC_SHAREDIR}" \
1365 CFLAGS
="${CFLAGS}" \
1369 COMMON_CFLAGS
="${COMMON_CFLAGS}" \
1370 COMMON_LDFLAGS
="${COMMON_LDFLAGS}" \
1374 HELPDIR
="${HELPDIR}" \
1375 ICFLAGS
="${ICFLAGS}" \
1376 ILDFLAGS
="${ILDFLAGS}" \
1377 INCDIR
="${INCDIR}" \
1380 LIBDIR
="${LIBDIR}" \
1381 MAKE_FILE
=Makefile \
1387 SCRIPTDIR
="${SCRIPTDIR}" \
1390 TOP_MAKE_FILE
=${MAKE_FILE} \
1394 # The compelte list of Makefile vars passed down to cal/Makefile.
1398 BINDIR
="${BINDIR}" \
1399 CALC_INCDIR
="${CALC_INCDIR}" \
1400 CALC_SHAREDIR
="${CALC_SHAREDIR}" \
1406 HELPDIR
="${HELPDIR}" \
1407 INCDIR
="${INCDIR}" \
1409 LIBDIR
="${LIBDIR}" \
1410 MAKE_FILE
=Makefile \
1416 SCRIPTDIR
="${SCRIPTDIR}" \
1418 TOP_MAKE_FILE
=${MAKE_FILE} \
1422 # The compelte list of Makefile vars passed down to cscript/Makefile.
1426 BINDIR
="${BINDIR}" \
1427 CALC_INCDIR
="${CALC_INCDIR}" \
1428 CALC_SHAREDIR
="${CALC_SHAREDIR}" \
1435 HELPDIR
="${HELPDIR}" \
1436 INCDIR
="${INCDIR}" \
1438 LIBDIR
="${LIBDIR}" \
1439 MAKE_FILE
=Makefile \
1445 SCRIPTDIR
="${SCRIPTDIR}" \
1449 TOP_MAKE_FILE
=${MAKE_FILE} \
1453 # complete list of .h files found (but not built) in the distribution
1455 H_SRC
= ${LIB_H_SRC} ${SAMPLE_H_SRC}
1457 # complete list of .c files found (but not built) in the distribution
1459 C_SRC
= ${LIBSRC} ${CALCSRC} ${UTIL_C_SRC} ${SAMPLE_C_SRC}
1461 # The list of files that describe calc's GNU Lesser General Public License
1463 LICENSE
= COPYING COPYING-LGPL
1465 # These files are found (but not built) in the distribution
1467 DISTLIST
= ${C_SRC} ${H_SRC} ${MAKE_FILE} BUGS CHANGES LIBRARY README \
1468 README.WINDOWS calc.man HOWTO.INSTALL
${UTIL_MISC_SRC} ${LICENSE} \
1469 sample.README calc.spec.in rpm.mk
1471 # These files are used to make (but not built) a calc .a link library
1473 CALCLIBLIST
= ${LIBSRC} ${UTIL_C_SRC} ${LIB_H_SRC} ${MAKE_FILE} \
1474 ${UTIL_MISC_SRC} BUGS CHANGES LIBRARY
1476 # complete list of .o files
1478 OBJS
= ${LIBOBJS} ${CALCOBJS} ${UTIL_OBJS} ${SAMPLE_OBJ}
1480 # static library build
1482 CALC_STATIC_LIBS
= libcalc.a libcustcalc.a
1484 # Libaraies created and used to build calc
1486 CALC_DYNAMIC_LIBS
= libcalc
${LIB_EXT_VERSION} libcustcalc
${LIB_EXT_VERSION}
1488 # Symlinks of dymanic shared libraries
1490 SYM_DYNAMIC_LIBS
= libcalc
${LIB_EXT_VER} libcalc
${LIB_EXT_VE} libcalc
${LIB_EXT} \
1491 libcalc
${LIB_EXT_VERS} libcustcalc
${LIB_EXT_VERSION} \
1492 libcustcalc
${LIB_EXT_VERS} libcustcalc
${LIB_EXT_VER} \
1493 libcustcalc
${LIB_EXT_VE} libcustcalc
${LIB_EXT}
1495 # list of sample programs to that need to be built to satisfy sample rule
1497 # NOTE: The ${SAMPLE_TARGETS} and ${SAMPLE_STATIC_TARGETS} are built but
1498 # not installed at this time.
1500 # NOTE: There must be a foo-static${EXT} in SAMPLE_STATIC_TARGETS for
1501 # every foo${EXT} in ${SAMPLE_TARGETS}.
1503 SAMPLE_TARGETS
= sample_rand
${EXT} sample_many
${EXT}
1504 SAMPLE_STATIC_TARGETS
= sample_rand-static
${EXT} sample_many-static
${EXT}
1506 # list of cscript programs to that need to be built to satisfy cscript/.all
1508 # NOTE: This list MUST be coordinated with the ${CSCRIPT_TARGETS} variable
1509 # in the cscript/Makefile
1511 CSCRIPT_TARGETS
= cscript
/mersenne cscript
/piforever cscript
/plus \
1512 cscript
/square cscript
/fproduct cscript
/powerterm
1514 # dynamic first targets
1516 DYNAMIC_FIRST_TARGETS
= ${LICENSE} .dynamic
1518 # static first targets
1520 STATIC_FIRST_TARGETS
= ${LICENSE} .static
1522 # early targets - things needed before the main build phase can begin
1524 EARLY_TARGETS
= custom
/Makefile hsrc .hsrc custom
/.
all
1526 # late targets - things needed after the main build phase is complete
1528 LATE_TARGETS
= calc
.1 calc.usage \
1529 cal
/.
all help
/.
all help
/builtin cscript
/.
all \
1532 # complete list of targets
1534 TARGETS
= ${EARLY_TARGETS} ${BLD_TYPE} ${LATE_TARGETS}
1538 # The reason for this Makefile :-)
1542 all: ${BLD_TYPE} CHANGES
1545 ${Q} ${MAKE} -f
${MAKE_FILE} all DEBUG
='-g3'
1547 calc-dynamic-only
: ${DYNAMIC_FIRST_TARGETS} ${EARLY_TARGETS} \
1548 ${CALC_DYNAMIC_LIBS} ${SYM_DYNAMIC_LIBS} calc
${EXT} \
1549 ${SAMPLE_TARGETS} ${LATE_TARGETS}
1551 .dynamic
: ${MAKE_FILE}
1552 ${Q} r
="calc-dynamic-only"; \
1553 if
[ "${BLD_TYPE}" != "$$r" ]; then \
1554 echo
"NOTE: The host target $(target) defaults to a build" 1>&2; \
1555 echo
" type of: ${BLD_TYPE}, so you need to use" 1>&2; \
1556 echo
" the following make command:" 1>&2; \
1558 echo
" ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
1559 echo
" ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
1561 echo
"NOTE: It is a very good idea to c first clobber any" 1>&2; \
1562 echo
" previously built .o, libs and executables" 1>&2; \
1563 echo
" before switching to $$r!" 1>&2; \
1565 echo
"=== aborting make ===" 1>&2; \
1568 ${Q} for i in .static calc-static
${EXT} ${SAMPLE_STATIC_TARGETS} \
1569 libcalc.a custom
/libcustcalc.a
; do \
1570 r
="calc-dynamic-only"; \
1571 if
[ -r
"$$i" ]; then \
1572 echo
"Found the static target $$i file. You must:" 1>&2; \
1574 echo
" ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
1575 echo
" ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
1577 echo
"to clean out any previously build static files." 1>&2; \
1579 echo
"=== aborting make ===" 1>&2; \
1585 calc-static-only
: ${STATIC_FIRST_TARGETS} ${EARLY_TARGETS} \
1586 ${CALC_STATIC_LIBS} calc-static
${EXT} \
1587 ${SAMPLE_STATIC_TARGETS} ${LATE_TARGETS}
1588 ${Q} for i in calc
${EXT} ${SAMPLE_TARGETS}; do \
1589 if
${CMP} -s
"$$i-static" "$$i"; then \
1593 ${LN} "$$i-static" "$$i"; \
1597 .static
: ${MAKE_FILE}
1598 ${Q} r
="calc-static-only"; \
1599 if
[ "${BLD_TYPE}" != "$$r" ]; then \
1600 echo
"NOTE: The host target $(target) defaults to a build" 1>&2; \
1601 echo
" type of: ${BLD_TYPE}, so you need to use" 1>&2; \
1602 echo
" the following make command:" 1>&2; \
1604 echo
" ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
1605 echo
" ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
1607 echo
"NOTE: It is a very good idea to c first clobber any" 1>&2; \
1608 echo
" previously built .o, libs and executables" 1>&2; \
1609 echo
" before switching to $$r!" 1>&2; \
1611 echo
"=== aborting make ===" 1>&2; \
1614 ${Q} for i in .dynamic
${CALC_DYNAMIC_LIBS} ${SYM_DYNAMIC_LIBS} \
1615 custom
/libcustcalc
${LIB_EXT_VERSION}; do \
1616 r
="calc-static-only"; \
1617 if
[ -r
"$$i" ]; then \
1618 echo
"Found the dynamic target $$i file. You must:" 1>&2; \
1620 echo
" ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
1621 echo
" ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
1623 echo
"to clean out any previously build dynamic files." 1>&2; \
1625 echo
"=== aborting make ===" 1>&2; \
1631 calc
${EXT}: .hsrc
${CALCOBJS} ${CALC_DYNAMIC_LIBS} ${MAKE_FILE}
1633 ${CC} ${CALCOBJS} ${LDFLAGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \
1634 ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
1636 libcalc
${LIB_EXT_VERSION}: ${LIBOBJS} ver_calc
${EXT} ${MAKE_FILE}
1637 ${CC} ${LIBCALC_SHLIB} ${LIBOBJS} \
1638 ${READLINE_LIB} ${READLINE_EXTRAS} -o libcalc
${LIB_EXT_VERSION}
1640 libcalc
${LIB_EXT_VERS}: libcalc
${LIB_EXT_VERSION}
1644 libcalc
${LIB_EXT_VER}: libcalc
${LIB_EXT_VERSION}
1648 libcalc
${LIB_EXT_VE}: libcalc
${LIB_EXT_VERSION}
1652 libcalc
${LIB_EXT}: libcalc
${LIB_EXT_VERSION}
1658 # calc documentation
1662 calc
.1: calc.man
${MAKE_FILE}
1664 ${Q} echo forming calc
.1 from calc.man
1665 @
${SED} -e
's:$${LIBDIR}:${LIBDIR}:g' \
1666 -e
's,$${BINDIR},${BINDIR},g' \
1667 -e
's,$${CALCPATH},${CALCPATH},g' \
1668 -e
's,$${SCRIPTDIR},${SCRIPTDIR},g' \
1669 -e
's,$${CALC_INCDIR},${CALC_INCDIR},g' \
1670 -e
's,$${CUSTOMCALDIR},${CUSTOMCALDIR},g' \
1671 -e
's,$${CUSTOMINCDIR},${CUSTOMINCDIR},g' \
1672 -e
's,$${CUSTOMHELPDIR},${CUSTOMHELPDIR},g' \
1673 -e
's,$${CALCRC},${CALCRC},g' < calc.man
> calc
.1
1674 ${Q} echo calc.man formed
1676 calc.usage
: calc
.1 ${MAKE_FILE}
1678 ${Q} echo forming calc.usage from calc
.1
1679 ${Q} if
[ -z
"${NROFF}" ]; then \
1680 LESSCHARSET
=iso8859
${CALCPAGER} calc
.1; \
1682 ${NROFF} -man calc
.1; \
1684 ${Q} echo calc.usage formed
1689 # These rules compile the sample code against the calc library
1693 sample
: ${SAMPLE_TARGETS}
1695 sample_rand
${EXT}: sample_rand.o
${CALC_DYNAMIC_LIBS} ${MAKE_FILE}
1696 ${CC} sample_rand.o
${CLDFALGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \
1697 ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
1699 sample_many
${EXT}: sample_many.o
${CALC_DYNAMIC_LIBS} ${MAKE_FILE}
1700 ${CC} sample_many.o
${CLDFALGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \
1701 ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
1709 hist.o
: hist.c
${MAKE_FILE}
1710 ${CC} ${CFLAGS} ${TERMCONTROL} ${USE_READLINE} ${READLINE_INCLUDE} \
1713 seed.o
: seed.c no_implicit.arg
${MAKE_FILE}
1714 ${CC} ${CFLAGS} `${CAT} no_implicit.arg` -c seed.c
1718 # The next set of rules cause the .h files BUILD_H_SRC files to be built
1719 # according tot he system and the Makefile variables above. The hsrc rule
1720 # is a convenient rule to invoke to built all of the BUILD_H_SRC.
1722 # We add in the BUILD_C_SRC files because they are similar to the
1723 # BUILD_H_SRC files in terms of the build process.
1725 # NOTE: Due to bogus shells found on one common system we must have
1726 # an non-empty else clause for every if condition. *sigh*
1727 # We also place ; ${TRUE} at the end of some commands to avoid
1728 # meaningless cosmetic messages by the same system.
1732 hsrc
: ${BUILD_H_SRC} ${BUILD_C_SRC}
1734 .hsrc
: ${BUILD_H_SRC} ${BUILD_C_SRC}
1736 -${Q} ${TOUCH} .hsrc
1738 conf.h
: ${MAKE_FILE}
1739 ${Q} ${RM} -f conf.h
1740 ${Q} echo
'forming conf.h'
1741 ${Q} echo
'/*' > conf.h
1742 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> conf.h
1743 ${Q} echo
' */' >> conf.h
1744 ${Q} echo
'' >> conf.h
1745 ${Q} echo
'' >> conf.h
1746 ${Q} echo
'#if !defined(__CONF_H__)' >> conf.h
1747 ${Q} echo
'#define __CONF_H__' >> conf.h
1748 ${Q} echo
'' >> conf.h
1749 ${Q} echo
'' >> conf.h
1750 ${Q} echo
'/* the default :-separated search path */' >> conf.h
1751 ${Q} echo
'#if !defined(DEFAULTCALCPATH)' >> conf.h
1752 ${Q} echo
'#define DEFAULTCALCPATH "${CALCPATH}"' >> conf.h
1753 ${Q} echo
'#endif /* DEFAULTCALCPATH */' >> conf.h
1754 ${Q} echo
'' >> conf.h
1755 ${Q} echo
'/* the default :-separated startup file list */' >> conf.h
1756 ${Q} echo
'#if !defined(DEFAULTCALCRC)' >> conf.h
1757 ${Q} echo
'#define DEFAULTCALCRC "${CALCRC}"' >> conf.h
1758 ${Q} echo
'#endif /* DEFAULTCALCRC */' >> conf.h
1759 ${Q} echo
'' >> conf.h
1760 ${Q} echo
'/* the location of the help directory */' >> conf.h
1761 ${Q} echo
'#if !defined(HELPDIR)' >> conf.h
1762 ${Q} echo
'#define HELPDIR "${HELPDIR}"' >> conf.h
1763 ${Q} echo
'#endif /* HELPDIR */' >> conf.h
1764 ${Q} echo
'' >> conf.h
1765 ${Q} echo
'/* the location of the custom help directory */' >> conf.h
1766 ${Q} echo
'#if !defined(CUSTOMHELPDIR)' >> conf.h
1767 ${Q} echo
'#define CUSTOMHELPDIR "${CUSTOMHELPDIR}"' >> conf.h
1768 ${Q} echo
'#endif /* CUSTOMHELPDIR */' >> conf.h
1769 ${Q} echo
'' >> conf.h
1770 ${Q} echo
'/* the default pager to use */' >> conf.h
1771 ${Q} echo
'#if !defined(DEFAULTCALCPAGER)' >> conf.h
1772 ${Q} echo
'#define DEFAULTCALCPAGER "${CALCPAGER}"' >> conf.h
1773 ${Q} echo
'#endif /* DEFAULTCALCPAGER */' >> conf.h
1774 ${Q} echo
'' >> conf.h
1775 ${Q} echo
'' >> conf.h
1776 ${Q} echo
'#endif /* !__CONF_H__ */' >> conf.h
1777 ${Q} echo
'conf.h formed'
1778 -@if
[ -z
"${Q}" ]; then \
1780 echo
'=-=-= start of $@ =-=-='; \
1782 echo
'=-=-= end of $@ =-=-='; \
1788 endian_calc.h
: endian
${EXT} ${MAKE_FILE}
1789 ${Q} ${RM} -f endian_calc.h
1790 ${Q} echo
'forming endian_calc.h'
1791 ${Q} echo
'/*' > endian_calc.h
1792 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> endian_calc.h
1793 ${Q} echo
' */' >> endian_calc.h
1794 ${Q} echo
'' >> endian_calc.h
1795 ${Q} echo
'' >> endian_calc.h
1796 ${Q} echo
'#if !defined(__ENDIAN_CALC_H__)' >> endian_calc.h
1797 ${Q} echo
'#define __ENDIAN_CALC_H__' >> endian_calc.h
1798 ${Q} echo
'' >> endian_calc.h
1799 ${Q} echo
'' >> endian_calc.h
1800 ${Q} echo
'/* what byte order are we? */' >> endian_calc.h
1801 -${Q} if
[ X
"${CALC_BYTE_ORDER}" = X
]; then \
1802 if
[ -f
${INCDIR}/endian.h
]; then \
1803 echo
'#include <endian.h>' >> endian_calc.h
; \
1804 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
1805 elif
[ -f
${INCDIR}/machine
/endian.h
]; then \
1806 echo
'#include <machine/endian.h>' >> endian_calc.h
; \
1807 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
1808 elif
[ -f
${INCDIR}/sys
/endian.h
]; then \
1809 echo
'#include <sys/endian.h>' >> endian_calc.h
; \
1810 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
1811 elif
[ -f
/usr
/include/endian.h
]; then \
1812 echo
'#include <endian.h>' >> endian_calc.h
; \
1813 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
1814 elif
[ -f
/usr
/include/machine
/endian.h
]; then \
1815 echo
'#include <machine/endian.h>' >> endian_calc.h
; \
1816 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
1817 elif
[ -f
/usr
/include/sys
/endian.h
]; then \
1818 echo
'#include <sys/endian.h>' >> endian_calc.h
; \
1819 echo
'#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h
; \
1821 .
/endian
${EXT} >> endian_calc.h
; \
1824 .
/endian
${EXT} >> endian_calc.h
; \
1826 ${Q} echo
'' >> endian_calc.h
1827 ${Q} echo
'' >> endian_calc.h
1828 ${Q} echo
'#endif /* !__ENDIAN_CALC_H__ */' >> endian_calc.h
1829 ${Q} echo
'endian_calc.h formed'
1830 -@if
[ -z
"${Q}" ]; then \
1832 echo
'=-=-= start of $@ =-=-='; \
1834 echo
'=-=-= end of $@ =-=-='; \
1840 longbits.h
: longbits
${EXT} ${MAKE_FILE}
1841 ${Q} ${RM} -f longbits.h
1842 ${Q} echo
'forming longbits.h'
1843 ${Q} echo
'/*' > longbits.h
1844 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> longbits.h
1845 ${Q} echo
' */' >> longbits.h
1846 ${Q} echo
'' >> longbits.h
1847 ${Q} echo
'' >> longbits.h
1848 ${Q} echo
'#if !defined(__LONGBITS_H__)' >> longbits.h
1849 ${Q} echo
'#define __LONGBITS_H__' >> longbits.h
1850 ${Q} echo
'' >> longbits.h
1851 ${Q} echo
'' >> longbits.h
1852 ${Q} .
/longbits
${EXT} ${LONG_BITS} >> longbits.h
1853 ${Q} echo
'' >> longbits.h
1854 ${Q} echo
'' >> longbits.h
1855 ${Q} echo
'#endif /* !__LONGBITS_H__ */' >> longbits.h
1856 ${Q} echo
'longbits.h formed'
1857 -@if
[ -z
"${Q}" ]; then \
1859 echo
'=-=-= start of $@ =-=-='; \
1861 echo
'=-=-= end of $@ =-=-='; \
1867 have_times.h
: ${MAKE_FILE}
1868 ${Q} ${RM} -f have_times.h
1869 ${Q} echo
'forming have_times.h'
1870 ${Q} echo
'/*' > have_times.h
1871 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_times.h
1872 ${Q} echo
' */' >> have_times.h
1873 ${Q} echo
'' >> have_times.h
1874 ${Q} echo
'' >> have_times.h
1875 ${Q} echo
'#if !defined(__HAVE_TIMES_H__)' >> have_times.h
1876 ${Q} echo
'#define __HAVE_TIMES_H__' >> have_times.h
1877 ${Q} echo
'' >> have_times.h
1878 ${Q} echo
'' >> have_times.h
1879 ${Q} echo
'/* do we have <times.h>? */' >> have_times.h
1880 -${Q} if
[ X
"${HAVE_TIMES_H}" = X
"YES" ]; then \
1881 echo
'#define HAVE_TIMES_H /* yes */' >> have_times.h
; \
1882 elif
[ X
"${HAVE_TIMES_H}" = X
"NO" ]; then \
1883 echo
'#undef HAVE_TIMES_H /* no */' >> have_times.h
; \
1884 elif
[ -f
${INCDIR}/times.h
]; then \
1885 echo
'#define HAVE_TIMES_H /* yes */' >> have_times.h
; \
1886 elif
[ -f
/usr
/include/times.h
]; then \
1887 echo
'#define HAVE_TIMES_H /* yes */' >> have_times.h
; \
1889 echo
'#undef HAVE_TIMES_H /* no */' >> have_times.h
; \
1891 -${Q} if
[ X
"${HAVE_SYS_TIMES_H}" = X
"YES" ]; then \
1892 echo
'#define HAVE_SYS_TIMES_H /* yes */' >> have_times.h
; \
1893 elif
[ X
"${HAVE_SYS_TIMES_H}" = X
"NO" ]; then \
1894 echo
'#undef HAVE_SYS_TIMES_H /* no */' >> have_times.h
; \
1895 elif
[ -f
${INCDIR}/sys
/times.h
]; then \
1896 echo
'#define HAVE_SYS_TIMES_H /* yes */' >> have_times.h
; \
1897 elif
[ -f
/usr
/include/sys
/times.h
]; then \
1898 echo
'#define HAVE_SYS_TIMES_H /* yes */' >> have_times.h
; \
1900 echo
'#undef HAVE_SYS_TIMES_H /* no */' >> have_times.h
; \
1902 -${Q} if
[ X
"${HAVE_TIME_H}" = X
"YES" ]; then \
1903 echo
'#define HAVE_TIME_H /* yes */' >> have_times.h
; \
1904 elif
[ X
"${HAVE_TIME_H}" = X
"NO" ]; then \
1905 echo
'#undef HAVE_TIME_H /* no */' >> have_times.h
; \
1906 elif
[ -f
${INCDIR}/time.h
]; then \
1907 echo
'#define HAVE_TIME_H /* yes */' >> have_times.h
; \
1908 elif
[ -f
/usr
/include/time.h
]; then \
1909 echo
'#define HAVE_TIME_H /* yes */' >> have_times.h
; \
1911 echo
'#undef HAVE_TIME_H /* no */' >> have_times.h
; \
1913 -${Q} if
[ X
"${HAVE_SYS_TIME_H}" = X
"YES" ]; then \
1914 echo
'#define HAVE_SYS_TIME_H /* yes */' >> have_times.h
; \
1915 elif
[ X
"${HAVE_SYS_TIME_H}" = X
"NO" ]; then \
1916 echo
'#undef HAVE_SYS_TIME_H /* no */' >> have_times.h
; \
1917 elif
[ -f
${INCDIR}/sys
/time.h
]; then \
1918 echo
'#define HAVE_SYS_TIME_H /* yes */' >> have_times.h
; \
1919 elif
[ -f
/usr
/include/sys
/time.h
]; then \
1920 echo
'#define HAVE_SYS_TIME_H /* yes */' >> have_times.h
; \
1922 echo
'#undef HAVE_SYS_TIME_H /* no */' >> have_times.h
; \
1924 ${Q} echo
'' >> have_times.h
1925 ${Q} echo
'' >> have_times.h
1926 ${Q} echo
'#endif /* !__HAVE_TIMES_H__ */' >> have_times.h
1927 ${Q} echo
'have_times.h formed'
1928 -@if
[ -z
"${Q}" ]; then \
1930 echo
'=-=-= start of $@ =-=-='; \
1932 echo
'=-=-= end of $@ =-=-='; \
1938 have_stdlib.h
: ${MAKE_FILE}
1939 ${Q} ${RM} -f have_stdlib.h
1940 ${Q} echo
'forming have_stdlib.h'
1941 ${Q} echo
'/*' > have_stdlib.h
1942 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_stdlib.h
1943 ${Q} echo
' */' >> have_stdlib.h
1944 ${Q} echo
'' >> have_stdlib.h
1945 ${Q} echo
'' >> have_stdlib.h
1946 ${Q} echo
'#if !defined(__HAVE_STDLIB_H__)' >> have_stdlib.h
1947 ${Q} echo
'#define __HAVE_STDLIB_H__' >> have_stdlib.h
1948 ${Q} echo
'' >> have_stdlib.h
1949 ${Q} echo
'' >> have_stdlib.h
1950 ${Q} echo
'/* do we have <stdlib.h>? */' >> have_stdlib.h
1951 -${Q} if
[ X
"${HAVE_STDLIB_H}" = X
"YES" ]; then \
1952 echo
'#define HAVE_STDLIB_H /* yes */' >> have_stdlib.h
; \
1953 elif
[ X
"${HAVE_STDLIB_H}" = X
"NO" ]; then \
1954 echo
'#undef HAVE_STDLIB_H /* no */' >> have_stdlib.h
; \
1955 elif
[ -f
${INCDIR}/stdlib.h
]; then \
1956 echo
'#define HAVE_STDLIB_H /* yes */' >> have_stdlib.h
; \
1957 elif
[ -f
/usr
/include/stdlib.h
]; then \
1958 echo
'#define HAVE_STDLIB_H /* yes */' >> have_stdlib.h
; \
1960 echo
'#undef HAVE_STDLIB_H /* no */' >> have_stdlib.h
; \
1962 ${Q} echo
'' >> have_stdlib.h
1963 ${Q} echo
'' >> have_stdlib.h
1964 ${Q} echo
'#endif /* !__HAVE_STDLIB_H__ */' >> have_stdlib.h
1965 ${Q} echo
'have_stdlib.h formed'
1966 -@if
[ -z
"${Q}" ]; then \
1968 echo
'=-=-= start of $@ =-=-='; \
1970 echo
'=-=-= end of $@ =-=-='; \
1976 have_unistd.h
: ${MAKE_FILE}
1977 ${Q} ${RM} -f have_unistd.h
1978 ${Q} echo
'forming have_unistd.h'
1979 ${Q} echo
'/*' > have_unistd.h
1980 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_unistd.h
1981 ${Q} echo
' */' >> have_unistd.h
1982 ${Q} echo
'' >> have_unistd.h
1983 ${Q} echo
'' >> have_unistd.h
1984 ${Q} echo
'#if !defined(__HAVE_UNISTD_H__)' >> have_unistd.h
1985 ${Q} echo
'#define __HAVE_UNISTD_H__' >> have_unistd.h
1986 ${Q} echo
'' >> have_unistd.h
1987 ${Q} echo
'' >> have_unistd.h
1988 ${Q} echo
'/* do we have <unistd.h>? */' >> have_unistd.h
1989 -${Q} if
[ X
"${HAVE_UNISTD_H}" = X
"YES" ]; then \
1990 echo
'#define HAVE_UNISTD_H /* yes */' >> have_unistd.h
; \
1991 elif
[ X
"${HAVE_UNISTD_H}" = X
"NO" ]; then \
1992 echo
'#undef HAVE_UNISTD_H /* no */' >> have_unistd.h
; \
1993 elif
[ -f
${INCDIR}/unistd.h
]; then \
1994 echo
'#define HAVE_UNISTD_H /* yes */' >> have_unistd.h
; \
1995 elif
[ -f
/usr
/include/unistd.h
]; then \
1996 echo
'#define HAVE_UNISTD_H /* yes */' >> have_unistd.h
; \
1998 echo
'#undef HAVE_UNISTD_H /* no */' >> have_unistd.h
; \
2000 ${Q} echo
'' >> have_unistd.h
2001 ${Q} echo
'' >> have_unistd.h
2002 ${Q} echo
'#endif /* !__HAVE_UNISTD_H__ */' >> have_unistd.h
2003 ${Q} echo
'have_unistd.h formed'
2004 -@if
[ -z
"${Q}" ]; then \
2006 echo
'=-=-= start of $@ =-=-='; \
2008 echo
'=-=-= end of $@ =-=-='; \
2014 have_string.h
: ${MAKE_FILE}
2015 ${Q} ${RM} -f have_string.h
2016 ${Q} echo
'forming have_string.h'
2017 ${Q} echo
'/*' > have_string.h
2018 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_string.h
2019 ${Q} echo
' */' >> have_string.h
2020 ${Q} echo
'' >> have_string.h
2021 ${Q} echo
'' >> have_string.h
2022 ${Q} echo
'#if !defined(__HAVE_STRING_H__)' >> have_string.h
2023 ${Q} echo
'#define __HAVE_STRING_H__' >> have_string.h
2024 ${Q} echo
'' >> have_string.h
2025 ${Q} echo
'' >> have_string.h
2026 ${Q} echo
'/* do we have <string.h>? */' >> have_string.h
2027 -${Q} if
[ X
"${HAVE_STRING_H}" = X
"YES" ]; then \
2028 echo
'#define HAVE_STRING_H /* yes */' >> have_string.h
; \
2029 elif
[ X
"${HAVE_STRING_H}" = X
"NO" ]; then \
2030 echo
'#undef HAVE_STRING_H /* no */' >> have_string.h
; \
2031 elif
[ -f
${INCDIR}/string.h
]; then \
2032 echo
'#define HAVE_STRING_H /* yes */' >> have_string.h
; \
2033 elif
[ -f
/usr
/include/string.h
]; then \
2034 echo
'#define HAVE_STRING_H /* yes */' >> have_string.h
; \
2036 echo
'#undef HAVE_STRING_H /* no */' >> have_string.h
; \
2038 ${Q} echo
'' >> have_string.h
2039 ${Q} echo
'' >> have_string.h
2040 ${Q} echo
'#endif /* !__HAVE_STRING_H__ */' >> have_string.h
2041 ${Q} echo
'have_string.h formed'
2042 -@if
[ -z
"${Q}" ]; then \
2044 echo
'=-=-= start of $@ =-=-='; \
2046 echo
'=-=-= end of $@ =-=-='; \
2052 terminal.h
: ${MAKE_FILE}
2053 ${Q} ${RM} -f terminal.h
2054 ${Q} echo
'forming terminal.h'
2055 ${Q} echo
'/*' > terminal.h
2056 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> terminal.h
2057 ${Q} echo
' */' >> terminal.h
2058 ${Q} echo
'' >> terminal.h
2059 ${Q} echo
'' >> terminal.h
2060 ${Q} echo
'#if !defined(__TERMINAL_H__)' >> terminal.h
2061 ${Q} echo
'#define __TERMINAL_H__' >> terminal.h
2062 ${Q} echo
'' >> terminal.h
2063 ${Q} echo
'' >> terminal.h
2064 ${Q} echo
'/* determine the type of terminal interface */' >> terminal.h
2065 ${Q} echo
'#if !defined(USE_TERMIOS)' >> terminal.h
2066 ${Q} echo
'#if !defined(USE_TERMIO)' >> terminal.h
2067 ${Q} echo
'#if !defined(USE_SGTTY)' >> terminal.h
2068 -${Q} if
[ X
"${TERMCONTROL}" = X
"-DUSE_WIN32" ]; then \
2069 echo
'/* windoz, use none of these modes */' >> terminal.h
; \
2070 echo
'#undef USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2071 echo
'#undef USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2072 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2073 elif
[ -f
${INCDIR}/termios.h
]; then \
2074 echo
'/* use termios */' >> terminal.h
; \
2075 echo
'#define USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2076 echo
'#undef USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2077 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2078 elif
[ -f
${INCDIR}/termio.h
]; then \
2079 echo
'/* use termio */' >> terminal.h
; \
2080 echo
'#undef USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2081 echo
'#define USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2082 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2083 elif
[ -f
/usr
/include/termios.h
]; then \
2084 echo
'/* use termios */' >> terminal.h
; \
2085 echo
'#define USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2086 echo
'#undef USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2087 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2088 elif
[ -f
/usr
/include/termio.h
]; then \
2089 echo
'/* use termio */' >> terminal.h
; \
2090 echo
'#undef USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2091 echo
'#define USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2092 echo
'#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2094 echo
'/* use sgtty */' >> terminal.h
; \
2095 echo
'#undef USE_TERMIOS /* <termios.h> */' >> terminal.h
; \
2096 echo
'#undef USE_TERMIO /* <termio.h> */' >> terminal.h
; \
2097 echo
'#define USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h
; \
2099 ${Q} echo
'#endif' >> terminal.h
2100 ${Q} echo
'#endif' >> terminal.h
2101 ${Q} echo
'#endif' >> terminal.h
2102 ${Q} echo
'' >> terminal.h
2103 ${Q} echo
'' >> terminal.h
2104 ${Q} echo
'#endif /* !__TERMINAL_H__ */' >> terminal.h
2105 ${Q} echo
'terminal.h formed'
2106 -@if
[ -z
"${Q}" ]; then \
2108 echo
'=-=-= start of $@ =-=-='; \
2110 echo
'=-=-= end of $@ =-=-='; \
2116 have_fpos.h
: have_fpos.c
${MAKE_FILE}
2117 ${Q} ${RM} -f fpos_tmp have_fpos.h
2118 ${Q} echo
'forming have_fpos.h'
2119 ${Q} echo
'/*' > have_fpos.h
2120 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_fpos.h
2121 ${Q} echo
' */' >> have_fpos.h
2122 ${Q} echo
'' >> have_fpos.h
2123 ${Q} echo
'' >> have_fpos.h
2124 ${Q} echo
'#if !defined(__HAVE_FPOS_H__)' >> have_fpos.h
2125 ${Q} echo
'#define __HAVE_FPOS_H__' >> have_fpos.h
2126 ${Q} echo
'' >> have_fpos.h
2127 ${Q} echo
'' >> have_fpos.h
2128 ${Q} echo
'/* do we have fgetpos & fsetpos functions? */' >> have_fpos.h
2129 ${Q} ${RM} -f have_fpos.o have_fpos
${EXT}
2130 -${Q} ${LCC} ${HAVE_FPOS} ${ICFLAGS} have_fpos.c
-c \
2131 >/dev
/null
2>&1; ${TRUE}
2132 -${Q} ${LCC} ${ILDFLAGS} have_fpos.o
-o have_fpos
${EXT} \
2133 >/dev
/null
2>&1; ${TRUE}
2134 -${Q} ${SHELL} -c
"./have_fpos${EXT} > fpos_tmp 2>/dev/null" \
2135 >/dev
/null
2>&1; ${TRUE}
2136 -${Q} if
[ -s fpos_tmp
]; then \
2137 ${CAT} fpos_tmp
>> have_fpos.h
; \
2139 echo
'#undef HAVE_FPOS /* no */' >> have_fpos.h
; \
2140 echo
'' >> have_fpos.h
; \
2141 echo
'typedef long FILEPOS;' >> have_fpos.h
; \
2143 ${Q} echo
'' >> have_fpos.h
2144 ${Q} echo
'' >> have_fpos.h
2145 ${Q} echo
'#endif /* !__HAVE_FPOS_H__ */' >> have_fpos.h
2146 ${Q} ${RM} -f have_fpos
${EXT} have_fpos.o fpos_tmp
2147 ${Q} echo
'have_fpos.h formed'
2148 -@if
[ -z
"${Q}" ]; then \
2150 echo
'=-=-= start of $@ =-=-='; \
2152 echo
'=-=-= end of $@ =-=-='; \
2158 have_fpos_pos.h
: have_fpos_pos.c have_fpos.h have_posscl.h
${MAKE_FILE}
2159 ${Q} ${RM} -f fpos_tmp have_fpos_pos.h
2160 ${Q} echo
'forming have_fpos_pos.h'
2161 ${Q} echo
'/*' > have_fpos_pos.h
2162 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' \
2164 ${Q} echo
' */' >> have_fpos_pos.h
2165 ${Q} echo
'' >> have_fpos_pos.h
2166 ${Q} echo
'' >> have_fpos_pos.h
2167 ${Q} echo
'#if !defined(__HAVE_FPOS_POS_H__)' >> have_fpos_pos.h
2168 ${Q} echo
'#define __HAVE_FPOS_POS_H__' >> have_fpos_pos.h
2169 ${Q} echo
'' >> have_fpos_pos.h
2170 ${Q} echo
'' >> have_fpos_pos.h
2171 ${Q} echo
'/* do we have fgetpos & fsetpos functions? */' \
2173 ${Q} ${RM} -f have_fpos_pos.o have_fpos_pos
${EXT}
2174 -${Q} ${LCC} ${HAVE_FPOS} ${HAVE_FPOS_POS} \
2175 ${ICFLAGS} have_fpos_pos.c
-c
>/dev
/null
2>&1; ${TRUE}
2176 -${Q} ${LCC} ${ILDFLAGS} have_fpos_pos.o
-o have_fpos_pos
${EXT} \
2177 >/dev
/null
2>&1; ${TRUE}
2178 -${Q} ${SHELL} -c
"./have_fpos_pos${EXT} > fpos_tmp 2>/dev/null" \
2179 >/dev
/null
2>&1; ${TRUE}
2180 -${Q} if
[ -s fpos_tmp
]; then \
2181 ${CAT} fpos_tmp
>> have_fpos_pos.h
; \
2183 echo
'#undef HAVE_FPOS_POS /* no */' >> have_fpos_pos.h
; \
2184 echo
'' >> have_fpos_pos.h
; \
2185 echo
'#undef FPOS_POS_BITS' >> have_fpos_pos.h
; \
2187 ${Q} echo
'' >> have_fpos_pos.h
2188 ${Q} echo
'' >> have_fpos_pos.h
2189 ${Q} echo
'#endif /* !__HAVE_FPOS_POS_H__ */' >> have_fpos_pos.h
2190 ${Q} ${RM} -f have_fpos_pos
${EXT} have_fpos_pos.o fpos_tmp
2191 ${Q} echo
'have_fpos_pos.h formed'
2192 -@if
[ -z
"${Q}" ]; then \
2194 echo
'=-=-= start of $@ =-=-='; \
2196 echo
'=-=-= end of $@ =-=-='; \
2202 fposval.h
: fposval.c have_fpos.h have_fpos_pos.h have_offscl.h have_posscl.h \
2203 endian_calc.h
${MAKE_FILE}
2204 ${Q} ${RM} -f fposv_tmp fposval.h
2205 ${Q} echo
'forming fposval.h'
2206 ${Q} echo
'/*' > fposval.h
2207 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> fposval.h
2208 ${Q} echo
' */' >> fposval.h
2209 ${Q} echo
'' >> fposval.h
2210 ${Q} echo
'' >> fposval.h
2211 ${Q} echo
'#if !defined(__FPOSVAL_H__)' >> fposval.h
2212 ${Q} echo
'#define __FPOSVAL_H__' >> fposval.h
2213 ${Q} echo
'' >> fposval.h
2214 ${Q} echo
'' >> fposval.h
2215 ${Q} echo
'/* what are our file position & size types? */' >> fposval.h
2216 ${Q} ${RM} -f fposval.o fposval
${EXT}
2217 -${Q} ${LCC} ${ICFLAGS} ${FPOS_BITS} ${OFF_T_BITS} \
2218 ${DEV_BITS} ${INODE_BITS} fposval.c
-c
>/dev
/null
2>&1; ${TRUE}
2219 -${Q} ${LCC} ${ILDFLAGS} fposval.o
-o fposval
${EXT} >/dev
/null \
2221 ${Q} ${SHELL} -c
"./fposval${EXT} fposv_tmp >> fposval.h 2>/dev/null" \
2222 >/dev
/null
2>&1; ${TRUE}
2223 ${Q} echo
'' >> fposval.h
2224 ${Q} echo
'' >> fposval.h
2225 ${Q} echo
'#endif /* !__FPOSVAL_H__ */' >> fposval.h
2226 ${Q} ${RM} -f fposval
${EXT} fposval.o fposv_tmp
2227 ${Q} echo
'fposval.h formed'
2228 -@if
[ -z
"${Q}" ]; then \
2230 echo
'=-=-= start of $@ =-=-='; \
2232 echo
'=-=-= end of $@ =-=-='; \
2238 have_const.h
: have_const.c
${MAKE_FILE}
2239 ${Q} ${RM} -f have_const const_tmp have_const.h
2240 ${Q} echo
'forming have_const.h'
2241 ${Q} echo
'/*' > have_const.h
2242 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_const.h
2243 ${Q} echo
' */' >> have_const.h
2244 ${Q} echo
'' >> have_const.h
2245 ${Q} echo
'' >> have_const.h
2246 ${Q} echo
'#if !defined(__HAVE_CONST_H__)' >> have_const.h
2247 ${Q} echo
'#define __HAVE_CONST_H__' >> have_const.h
2248 ${Q} echo
'' >> have_const.h
2249 ${Q} echo
'' >> have_const.h
2250 ${Q} echo
'/* do we have or want const? */' >> have_const.h
2251 ${Q} ${RM} -f have_const.o have_const
${EXT}
2252 -${Q} ${LCC} ${ICFLAGS} ${HAVE_CONST} have_const.c
-c \
2253 >/dev
/null
2>&1; ${TRUE}
2254 -${Q} ${LCC} ${ILDFLAGS} have_const.o
-o have_const
${EXT} \
2255 >/dev
/null
2>&1; ${TRUE}
2256 -${Q} ${SHELL} -c
"./have_const${EXT} > const_tmp 2>/dev/null" \
2257 >/dev
/null
2>&1; ${TRUE}
2258 -${Q} if
[ -s const_tmp
]; then \
2259 ${CAT} const_tmp
>> have_const.h
; \
2261 echo
'#undef HAVE_CONST /* no */' >> have_const.h
; \
2262 echo
'#undef CONST' >> have_const.h
; \
2263 echo
'#define CONST /* no */' >> have_const.h
; \
2265 ${Q} echo
'' >> have_const.h
2266 ${Q} echo
'' >> have_const.h
2267 ${Q} echo
'#endif /* !__HAVE_CONST_H__ */' >> have_const.h
2268 ${Q} ${RM} -f have_const
${EXT} have_const.o const_tmp
2269 ${Q} echo
'have_const.h formed'
2270 -@if
[ -z
"${Q}" ]; then \
2272 echo
'=-=-= start of $@ =-=-='; \
2274 echo
'=-=-= end of $@ =-=-='; \
2280 have_offscl.h
: have_offscl.c
${MAKE_FILE}
2281 ${Q} ${RM} -f offscl_tmp have_offscl.h
2282 ${Q} echo
'forming have_offscl.h'
2283 ${Q} echo
'/*' > have_offscl.h
2284 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_offscl.h
2285 ${Q} echo
' */' >> have_offscl.h
2286 ${Q} echo
'' >> have_offscl.h
2287 ${Q} echo
'' >> have_offscl.h
2288 ${Q} echo
'#if !defined(__HAVE_OFFSCL_H__)' >> have_offscl.h
2289 ${Q} echo
'#define __HAVE_OFFSCL_H__' >> have_offscl.h
2290 ${Q} echo
'' >> have_offscl.h
2291 ${Q} echo
'' >> have_offscl.h
2292 ${Q} ${RM} -f have_offscl.o have_offscl
${EXT}
2293 -${Q} ${LCC} ${ICFLAGS} ${HAVE_OFFSCL} have_offscl.c
-c \
2294 >/dev
/null
2>&1; ${TRUE}
2295 -${Q} ${LCC} ${ILDFLAGS} have_offscl.o
-o have_offscl
${EXT} \
2296 >/dev
/null
2>&1; ${TRUE}
2297 -${Q} ${SHELL} -c
"./have_offscl${EXT} > offscl_tmp 2>/dev/null" \
2298 >/dev
/null
2>&1; ${TRUE}
2299 -${Q} if
[ -s offscl_tmp
]; then \
2300 ${CAT} offscl_tmp
>> have_offscl.h
; \
2302 echo
'#undef HAVE_OFF_T_SCALAR /* off_t is not a simple value */' \
2305 ${Q} echo
'' >> have_offscl.h
2306 ${Q} echo
'' >> have_offscl.h
2307 ${Q} echo
'#endif /* !__HAVE_OFFSCL_H__ */' >> have_offscl.h
2308 ${Q} ${RM} -f have_offscl
${EXT} have_offscl.o offscl_tmp
2309 ${Q} echo
'have_offscl.h formed'
2310 -@if
[ -z
"${Q}" ]; then \
2312 echo
'=-=-= start of $@ =-=-='; \
2314 echo
'=-=-= end of $@ =-=-='; \
2320 have_posscl.h
: have_posscl.c have_fpos.h
${MAKE_FILE}
2321 ${Q} ${RM} -f have_posscl have_posscl.o posscl_tmp have_posscl.h
2322 ${Q} echo
'forming have_posscl.h'
2323 ${Q} echo
'/*' > have_posscl.h
2324 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_posscl.h
2325 ${Q} echo
' */' >> have_posscl.h
2326 ${Q} echo
'' >> have_posscl.h
2327 ${Q} echo
'' >> have_posscl.h
2328 ${Q} echo
'#if !defined(__HAVE_POSSCL_H__)' >> have_posscl.h
2329 ${Q} echo
'#define __HAVE_POSSCL_H__' >> have_posscl.h
2330 ${Q} echo
'' >> have_posscl.h
2331 ${Q} echo
'' >> have_posscl.h
2332 ${Q} ${RM} -f have_posscl.o have_posscl
2333 -${Q} ${LCC} ${ICFLAGS} ${HAVE_POSSCL} have_posscl.c
-c \
2334 >/dev
/null
2>&1; ${TRUE}
2335 -${Q} ${LCC} ${ILDFLAGS} have_posscl.o
-o have_posscl \
2336 >/dev
/null
2>&1; ${TRUE}
2337 -${Q} ${SHELL} -c
"./have_posscl > posscl_tmp 2>/dev/null" \
2338 >/dev
/null
2>&1; ${TRUE}
2339 -${Q} if
[ -s posscl_tmp
]; then \
2340 ${CAT} posscl_tmp
>> have_posscl.h
; \
2342 echo
'/* FILEPOS is not a simple value */' >> have_posscl.h
; \
2343 echo
'#undef HAVE_FILEPOS_SCALAR' >> have_posscl.h
; \
2345 ${Q} echo
'' >> have_posscl.h
2346 ${Q} echo
'' >> have_posscl.h
2347 ${Q} echo
'#endif /* !__HAVE_POSSCL_H__ */' >> have_posscl.h
2348 ${Q} ${RM} -f have_posscl have_posscl.o posscl_tmp
2349 ${Q} echo
'have_posscl.h formed'
2350 -@if
[ -z
"${Q}" ]; then \
2352 echo
'=-=-= start of $@ =-=-='; \
2354 echo
'=-=-= end of $@ =-=-='; \
2360 align32.h
: align32.c longbits.h have_unistd.h
${MAKE_FILE}
2361 ${Q} ${RM} -f align32 align32_tmp align32.h
2362 ${Q} echo
'forming align32.h'
2363 ${Q} echo
'/*' > align32.h
2364 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> align32.h
2365 ${Q} echo
' */' >> align32.h
2366 ${Q} echo
'' >> align32.h
2367 ${Q} echo
'' >> align32.h
2368 ${Q} echo
'#if !defined(__MUST_ALIGN32_H__)' >> align32.h
2369 ${Q} echo
'#define __MUST_ALIGN32_H__' >> align32.h
2370 ${Q} echo
'' >> align32.h
2371 ${Q} echo
'' >> align32.h
2372 ${Q} echo
'/* must we always align 32 bit accesses? */' >> align32.h
2373 -${Q} if
[ X
"-DMUST_ALIGN32" = X
${ALIGN32} ]; then \
2374 echo
'/* forced to align 32 bit values */' >> align32.h
; \
2375 echo
'#define MUST_ALIGN32' >> align32.h
; \
2379 -${Q} if
[ X
"-UMUST_ALIGN32" = X
${ALIGN32} ]; then \
2380 echo
'/* forced to not require 32 bit alignment */' >> align32.h
; \
2381 echo
'#undef MUST_ALIGN32' >> align32.h
; \
2385 -${Q} if
[ X
= X
${ALIGN32} ]; then \
2386 ${RM} -f align32.o align32
${EXT}; \
2387 ${LCC} ${ICFLAGS} ${ALIGN32} align32.c
-c
>/dev
/null
2>&1; \
2388 ${LCC} ${ILDFLAGS} align32.o
-o align32
${EXT} >/dev
/null
2>&1; \
2390 "./align32${EXT} >align32_tmp 2>/dev/null" >/dev
/null
2>&1; \
2391 if
[ -s align32_tmp
]; then \
2392 ${CAT} align32_tmp
>> align32.h
; \
2394 echo
'/* guess we must align 32 bit values */' >> align32.h
; \
2395 echo
'#define MUST_ALIGN32' >> align32.h
; \
2397 ${RM} -f align32
${EXT} align32.o align32_tmp core
; \
2401 ${Q} echo
'' >> align32.h
2402 ${Q} echo
'' >> align32.h
2403 ${Q} echo
'#endif /* !__MUST_ALIGN32_H__ */' >> align32.h
2404 ${Q} echo
'align32.h formed'
2405 -@if
[ -z
"${Q}" ]; then \
2407 echo
'=-=-= start of $@ =-=-='; \
2409 echo
'=-=-= end of $@ =-=-='; \
2415 have_uid_t.h
: have_uid_t.c have_unistd.h
${MAKE_FILE}
2416 ${Q} ${RM} -f have_uid_t uid_tmp have_uid_t.h
2417 ${Q} echo
'forming have_uid_t.h'
2418 ${Q} echo
'/*' > have_uid_t.h
2419 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_uid_t.h
2420 ${Q} echo
' */' >> have_uid_t.h
2421 ${Q} echo
'' >> have_uid_t.h
2422 ${Q} echo
'' >> have_uid_t.h
2423 ${Q} echo
'#if !defined(__HAVE_UID_T_H__)' >> have_uid_t.h
2424 ${Q} echo
'#define __HAVE_UID_T_H__' >> have_uid_t.h
2425 ${Q} echo
'' >> have_uid_t.h
2426 ${Q} echo
'' >> have_uid_t.h
2427 ${Q} echo
'/* do we have or want uid_t? */' >> have_uid_t.h
2428 ${Q} ${RM} -f have_uid_t.o have_uid_t
${EXT}
2429 -${Q} ${LCC} ${ICFLAGS} ${HAVE_UID_T} have_uid_t.c
-c \
2430 >/dev
/null
2>&1; ${TRUE}
2431 -${Q} ${LCC} ${ILDFLAGS} have_uid_t.o
-o have_uid_t
${EXT} \
2432 >/dev
/null
2>&1; ${TRUE}
2433 -${Q} ${SHELL} -c
"./have_uid_t${EXT} > uid_tmp 2>/dev/null" \
2434 >/dev
/null
2>&1; ${TRUE}
2435 -${Q} if
[ -s uid_tmp
]; then \
2436 ${CAT} uid_tmp
>> have_uid_t.h
; \
2438 echo
'#undef HAVE_UID_T /* no */' >> have_uid_t.h
; \
2440 ${Q} echo
'' >> have_uid_t.h
2441 ${Q} echo
'' >> have_uid_t.h
2442 ${Q} echo
'#endif /* !__HAVE_UID_T_H__ */' >> have_uid_t.h
2443 ${Q} ${RM} -f have_uid_t
${EXT} have_uid_t.o uid_tmp
2444 ${Q} echo
'have_uid_t.h formed'
2445 -@if
[ -z
"${Q}" ]; then \
2447 echo
'=-=-= start of $@ =-=-='; \
2449 echo
'=-=-= end of $@ =-=-='; \
2455 have_newstr.h
: have_newstr.c
${MAKE_FILE}
2456 ${Q} ${RM} -f newstr_tmp have_newstr.h
2457 ${Q} echo
'forming have_newstr.h'
2458 ${Q} echo
'/*' > have_newstr.h
2459 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_newstr.h
2460 ${Q} echo
' */' >> have_newstr.h
2461 ${Q} echo
'' >> have_newstr.h
2462 ${Q} echo
'' >> have_newstr.h
2463 ${Q} echo
'#if !defined(__HAVE_NEWSTR_H__)' >> have_newstr.h
2464 ${Q} echo
'#define __HAVE_NEWSTR_H__' >> have_newstr.h
2465 ${Q} echo
'' >> have_newstr.h
2466 ${Q} echo
'' >> have_newstr.h
2467 ${Q} echo
'/* do we have or want memcpy(), memset() & strchr()? */' \
2469 ${Q} ${RM} -f have_newstr.o have_newstr
${EXT}
2470 -${Q} ${LCC} ${ICFLAGS} ${HAVE_NEWSTR} have_newstr.c
-c \
2471 >/dev
/null
2>&1; ${TRUE}
2472 -${Q} ${LCC} ${ILDFLAGS} have_newstr.o
-o have_newstr
${EXT} \
2473 >/dev
/null
2>&1; ${TRUE}
2474 -${Q} ${SHELL} -c
"./have_newstr${EXT} > newstr_tmp 2>/dev/null" \
2475 >/dev
/null
2>&1; ${TRUE}
2476 -${Q} if
[ -s newstr_tmp
]; then \
2477 ${CAT} newstr_tmp
>> have_newstr.h
; \
2479 echo
'#undef HAVE_NEWSTR /* no */' >> have_newstr.h
; \
2481 ${Q} echo
'' >> have_newstr.h
2482 ${Q} echo
'' >> have_newstr.h
2483 ${Q} echo
'#endif /* !__HAVE_NEWSTR_H__ */' >> have_newstr.h
2484 ${Q} ${RM} -f have_newstr
${EXT} have_newstr.o newstr_tmp
2485 ${Q} echo
'have_newstr.h formed'
2486 -@if
[ -z
"${Q}" ]; then \
2488 echo
'=-=-= start of $@ =-=-='; \
2490 echo
'=-=-= end of $@ =-=-='; \
2496 have_memmv.h
: have_memmv.c
${MAKE_FILE}
2497 ${Q} ${RM} -f have_memmv have_memmv.o memmv_tmp have_memmv.h
2498 ${Q} echo
'forming have_memmv.h'
2499 ${Q} echo
'/*' > have_memmv.h
2500 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_memmv.h
2501 ${Q} echo
' */' >> have_memmv.h
2502 ${Q} echo
'' >> have_memmv.h
2503 ${Q} echo
'' >> have_memmv.h
2504 ${Q} echo
'#if !defined(__HAVE_MEMMV_H__)' >> have_memmv.h
2505 ${Q} echo
'#define __HAVE_MEMMV_H__' >> have_memmv.h
2506 ${Q} echo
'' >> have_memmv.h
2507 ${Q} echo
'' >> have_memmv.h
2508 ${Q} echo
'/* do we have or want memmove()? */' >> have_memmv.h
2509 ${Q} ${RM} -f have_memmv.o have_memmv
2510 -${Q} ${LCC} ${ICFLAGS} ${HAVE_MEMMOVE} have_memmv.c
-c \
2511 >/dev
/null
2>&1; ${TRUE}
2512 -${Q} ${LCC} ${ILDFLAGS} have_memmv.o
-o have_memmv \
2513 >/dev
/null
2>&1; ${TRUE}
2514 -${Q} ${SHELL} -c
"./have_memmv > memmv_tmp 2>/dev/null" \
2515 >/dev
/null
2>&1; ${TRUE}
2516 -${Q} if
[ -s memmv_tmp
]; then \
2517 ${CAT} memmv_tmp
>> have_memmv.h
; \
2519 echo
'#undef HAVE_MEMMOVE /* no */' >> have_memmv.h
; \
2521 ${Q} echo
'' >> have_memmv.h
2522 ${Q} echo
'' >> have_memmv.h
2523 ${Q} echo
'#endif /* !__HAVE_MEMMV_H__ */' >> have_memmv.h
2524 ${Q} ${RM} -f have_memmv have_memmv.o memmv_tmp
2525 ${Q} echo
'have_memmv.h formed'
2526 -@if
[ -z
"${Q}" ]; then \
2528 echo
'=-=-= start of $@ =-=-='; \
2530 echo
'=-=-= end of $@ =-=-='; \
2536 have_ustat.h
: have_ustat.c
${MAKE_FILE}
2537 ${Q} ${RM} -f ustat_tmp have_ustat.h
2538 ${Q} echo
'forming have_ustat.h'
2539 ${Q} echo
'/*' > have_ustat.h
2540 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_ustat.h
2541 ${Q} echo
' */' >> have_ustat.h
2542 ${Q} echo
'' >> have_ustat.h
2543 ${Q} echo
'' >> have_ustat.h
2544 ${Q} echo
'#if !defined(__HAVE_USTAT_H__)' >> have_ustat.h
2545 ${Q} echo
'#define __HAVE_USTAT_H__' >> have_ustat.h
2546 ${Q} echo
'' >> have_ustat.h
2547 ${Q} echo
'' >> have_ustat.h
2548 ${Q} echo
'/* do we have or want ustat()? */' >> have_ustat.h
2549 ${Q} ${RM} -f have_ustat.o have_ustat
${EXT}
2550 -${Q} ${LCC} ${ICFLAGS} ${HAVE_USTAT} have_ustat.c
-c \
2551 >/dev
/null
2>&1; ${TRUE}
2552 -${Q} ${LCC} ${ILDFLAGS} have_ustat.o
-o have_ustat
${EXT} \
2553 >/dev
/null
2>&1; ${TRUE}
2554 -${Q} ${SHELL} -c
"./have_ustat${EXT} > ustat_tmp 2>/dev/null" \
2555 >/dev
/null
2>&1; ${TRUE}
2556 -${Q} if
[ -s ustat_tmp
]; then \
2557 ${CAT} ustat_tmp
>> have_ustat.h
; \
2559 echo
'#undef HAVE_USTAT /* no */' >> have_ustat.h
; \
2561 ${Q} echo
'' >> have_ustat.h
2562 ${Q} echo
'' >> have_ustat.h
2563 ${Q} echo
'#endif /* !__HAVE_USTAT_H__ */' >> have_ustat.h
2564 ${Q} ${RM} -f have_ustat
${EXT} have_ustat.o ustat_tmp
2565 ${Q} echo
'have_ustat.h formed'
2566 -@if
[ -z
"${Q}" ]; then \
2568 echo
'=-=-= start of $@ =-=-='; \
2570 echo
'=-=-= end of $@ =-=-='; \
2576 have_getsid.h
: have_getsid.c
${MAKE_FILE}
2577 ${Q} ${RM} -f getsid_tmp have_getsid.h
2578 ${Q} echo
'forming have_getsid.h'
2579 ${Q} echo
'/*' > have_getsid.h
2580 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_getsid.h
2581 ${Q} echo
' */' >> have_getsid.h
2582 ${Q} echo
'' >> have_getsid.h
2583 ${Q} echo
'' >> have_getsid.h
2584 ${Q} echo
'#if !defined(__HAVE_GETSID_H__)' >> have_getsid.h
2585 ${Q} echo
'#define __HAVE_GETSID_H__' >> have_getsid.h
2586 ${Q} echo
'' >> have_getsid.h
2587 ${Q} echo
'' >> have_getsid.h
2588 ${Q} echo
'/* do we have or want getsid()? */' >> have_getsid.h
2589 ${Q} ${RM} -f have_getsid.o have_getsid
${EXT}
2590 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETSID} have_getsid.c
-c \
2591 >/dev
/null
2>&1; ${TRUE}
2592 -${Q} ${LCC} ${ILDFLAGS} have_getsid.o
-o have_getsid \
2593 >/dev
/null
2>&1; ${TRUE}
2594 -${Q} ${SHELL} -c
"./have_getsid${EXT} > getsid_tmp 2>/dev/null" \
2595 >/dev
/null
2>&1; ${TRUE}
2596 -${Q} if
[ -s getsid_tmp
]; then \
2597 ${CAT} getsid_tmp
>> have_getsid.h
; \
2599 echo
'#undef HAVE_GETSID /* no */' >> have_getsid.h
; \
2601 ${Q} echo
'' >> have_getsid.h
2602 ${Q} echo
'' >> have_getsid.h
2603 ${Q} echo
'#endif /* !__HAVE_GETSID_H__ */' >> have_getsid.h
2604 ${Q} ${RM} -f have_getsid
${EXT} have_getsid.o getsid_tmp
2605 ${Q} echo
'have_getsid.h formed'
2606 -@if
[ -z
"${Q}" ]; then \
2608 echo
'=-=-= start of $@ =-=-='; \
2610 echo
'=-=-= end of $@ =-=-='; \
2616 have_getpgid.h
: have_getpgid.c
${MAKE_FILE}
2617 ${Q} ${RM} -f getpgid_tmp have_getpgid.h
2618 ${Q} echo
'forming have_getpgid.h'
2619 ${Q} echo
'/*' > have_getpgid.h
2620 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
2622 ${Q} echo
' */' >> have_getpgid.h
2623 ${Q} echo
'' >> have_getpgid.h
2624 ${Q} echo
'' >> have_getpgid.h
2625 ${Q} echo
'#if !defined(__HAVE_GETPGID_H__)' >> have_getpgid.h
2626 ${Q} echo
'#define __HAVE_GETPGID_H__' >> have_getpgid.h
2627 ${Q} echo
'' >> have_getpgid.h
2628 ${Q} echo
'' >> have_getpgid.h
2629 ${Q} echo
'/* do we have or want getpgid()? */' >> have_getpgid.h
2630 ${Q} ${RM} -f have_getpgid.o have_getpgid
${EXT}
2631 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETPGID} have_getpgid.c
-c \
2632 >/dev
/null
2>&1; ${TRUE}
2633 -${Q} ${LCC} ${ILDFLAGS} have_getpgid.o
-o have_getpgid
${EXT} \
2634 >/dev
/null
2>&1; ${TRUE}
2635 -${Q} ${SHELL} -c
"./have_getpgid${EXT} > getpgid_tmp 2>/dev/null" \
2636 >/dev
/null
2>&1; ${TRUE}
2637 -${Q} if
[ -s getpgid_tmp
]; then \
2638 ${CAT} getpgid_tmp
>> have_getpgid.h
; \
2640 echo
'#undef HAVE_GETPGID /* no */' >> have_getpgid.h
; \
2642 ${Q} echo
'' >> have_getpgid.h
2643 ${Q} echo
'' >> have_getpgid.h
2644 ${Q} echo
'#endif /* !__HAVE_GETPGID_H__ */' >> have_getpgid.h
2645 ${Q} ${RM} -f have_getpgid
${EXT} have_getpgid.o getpgid_tmp
2646 ${Q} echo
'have_getpgid.h formed'
2647 -@if
[ -z
"${Q}" ]; then \
2649 echo
'=-=-= start of $@ =-=-='; \
2651 echo
'=-=-= end of $@ =-=-='; \
2657 have_gettime.h
: have_gettime.c
${MAKE_FILE}
2658 ${Q} ${RM} -f gettime_tmp have_gettime.h
2659 ${Q} echo
'forming have_gettime.h'
2660 ${Q} echo
'/*' > have_gettime.h
2661 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
2663 ${Q} echo
' */' >> have_gettime.h
2664 ${Q} echo
'' >> have_gettime.h
2665 ${Q} echo
'' >> have_gettime.h
2666 ${Q} echo
'#if !defined(__HAVE_GETTIME_H__)' >> have_gettime.h
2667 ${Q} echo
'#define __HAVE_GETTIME_H__' >> have_gettime.h
2668 ${Q} echo
'' >> have_gettime.h
2669 ${Q} echo
'' >> have_gettime.h
2670 ${Q} echo
'/* do we have or want clock_gettime()? */' >> have_gettime.h
2671 ${Q} ${RM} -f have_gettime.o have_gettime
${EXT}
2672 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETTIME} have_gettime.c
-c \
2673 >/dev
/null
2>&1; ${TRUE}
2674 -${Q} ${LCC} ${ILDFLAGS} have_gettime.o
-o have_gettime \
2675 >/dev
/null
2>&1; ${TRUE}
2676 -${Q} ${SHELL} -c
"./have_gettime${EXT} > gettime_tmp 2>/dev/null" \
2677 >/dev
/null
2>&1; ${TRUE}
2678 -${Q} if
[ -s gettime_tmp
]; then \
2679 ${CAT} gettime_tmp
>> have_gettime.h
; \
2681 echo
'#undef HAVE_GETTIME /* no */' >> have_gettime.h
; \
2683 ${Q} echo
'' >> have_gettime.h
2684 ${Q} echo
'' >> have_gettime.h
2685 ${Q} echo
'#endif /* !__HAVE_GETTIME_H__ */' >> have_gettime.h
2686 ${Q} ${RM} -f have_gettime
${EXT} have_gettime.o gettime_tmp
2687 ${Q} echo
'have_gettime.h formed'
2688 -@if
[ -z
"${Q}" ]; then \
2690 echo
'=-=-= start of $@ =-=-='; \
2692 echo
'=-=-= end of $@ =-=-='; \
2698 have_getprid.h
: have_getprid.c
${MAKE_FILE}
2699 ${Q} ${RM} -f getprid_tmp have_getprid.h
2700 ${Q} echo
'forming have_getprid.h'
2701 ${Q} echo
'/*' > have_getprid.h
2702 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
2704 ${Q} echo
' */' >> have_getprid.h
2705 ${Q} echo
'' >> have_getprid.h
2706 ${Q} echo
'' >> have_getprid.h
2707 ${Q} echo
'#if !defined(__HAVE_GETPRID_H__)' >> have_getprid.h
2708 ${Q} echo
'#define __HAVE_GETPRID_H__' >> have_getprid.h
2709 ${Q} echo
'' >> have_getprid.h
2710 ${Q} echo
'' >> have_getprid.h
2711 ${Q} echo
'/* do we have or want getprid()? */' >> have_getprid.h
2712 ${Q} ${RM} -f have_getprid.o have_getprid
${EXT}
2713 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETPRID} have_getprid.c
-c \
2714 >/dev
/null
2>&1; ${TRUE}
2715 -${Q} ${LCC} ${ILDFLAGS} have_getprid.o
-o have_getprid
${EXT} \
2716 >/dev
/null
2>&1; ${TRUE}
2717 -${Q} ${SHELL} -c
"./have_getprid${EXT} > getprid_tmp 2>/dev/null" \
2718 >/dev
/null
2>&1; ${TRUE}
2719 -${Q} if
[ -s getprid_tmp
]; then \
2720 ${CAT} getprid_tmp
>> have_getprid.h
; \
2722 echo
'#undef HAVE_GETPRID /* no */' >> have_getprid.h
; \
2724 ${Q} echo
'' >> have_getprid.h
2725 ${Q} echo
'' >> have_getprid.h
2726 ${Q} echo
'#endif /* !__HAVE_GETPRID_H__ */' >> have_getprid.h
2727 ${Q} ${RM} -f have_getprid
${EXT} have_getprid.o getprid_tmp
2728 ${Q} echo
'have_getprid.h formed'
2729 -@if
[ -z
"${Q}" ]; then \
2731 echo
'=-=-= start of $@ =-=-='; \
2733 echo
'=-=-= end of $@ =-=-='; \
2739 have_urandom.h
: ${MAKE_FILE}
2740 ${Q} ${RM} -f have_urandom.h
2741 ${Q} echo
'forming have_urandom.h'
2742 ${Q} echo
'/*' > have_urandom.h
2743 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
2745 ${Q} echo
' */' >> have_urandom.h
2746 ${Q} echo
'' >> have_urandom.h
2747 ${Q} echo
'' >> have_urandom.h
2748 ${Q} echo
'#if !defined(__HAVE_URANDOM_H__)' >> have_urandom.h
2749 ${Q} echo
'#define __HAVE_URANDOM_H__' >> have_urandom.h
2750 ${Q} echo
'' >> have_urandom.h
2751 ${Q} echo
'' >> have_urandom.h
2752 ${Q} echo
'/* do we have /dev/urandom? */' >> have_urandom.h
2753 -${Q} if
[ X
"${HAVE_URANDOM_H}" = X
"YES" ]; then \
2754 echo
'#define HAVE_URANDOM_H /* yes */' >> have_urandom.h
; \
2755 elif
[ X
"${HAVE_URANDOM_H}" = X
"NO" ]; then \
2756 echo
'#undef HAVE_URANDOM_H /* no */' >> have_urandom.h
; \
2757 elif
[ -r
/dev
/urandom
] 2>/dev
/null
; then \
2758 echo
'#define HAVE_URANDOM_H /* yes */' >> have_urandom.h
; \
2760 echo
'#undef HAVE_URANDOM_H /* no */' >> have_urandom.h
; \
2762 ${Q} echo
'' >> have_urandom.h
2763 ${Q} echo
'' >> have_urandom.h
2764 ${Q} echo
'#endif /* !__HAVE_URANDOM_H__ */' >> have_urandom.h
2765 ${Q} echo
'have_urandom.h formed'
2766 -@if
[ -z
"${Q}" ]; then \
2768 echo
'=-=-= start of $@ =-=-='; \
2770 echo
'=-=-= end of $@ =-=-='; \
2776 have_rusage.h
: have_rusage.c
${MAKE_FILE}
2777 ${Q} ${RM} -f rusage_tmp have_rusage.h
2778 ${Q} echo
'forming have_rusage.h'
2779 ${Q} echo
'/*' > have_rusage.h
2780 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> \
2782 ${Q} echo
' */' >> have_rusage.h
2783 ${Q} echo
'' >> have_rusage.h
2784 ${Q} echo
'' >> have_rusage.h
2785 ${Q} echo
'#if !defined(__HAVE_RUSAGE_H__)' >> have_rusage.h
2786 ${Q} echo
'#define __HAVE_RUSAGE_H__' >> have_rusage.h
2787 ${Q} echo
'' >> have_rusage.h
2788 ${Q} echo
'' >> have_rusage.h
2789 ${Q} echo
'/* do we have or want getrusage()? */' >> have_rusage.h
2790 ${Q} ${RM} -f have_rusage.o have_rusage
${EXT}
2791 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETRUSAGE} have_rusage.c
-c \
2792 >/dev
/null
2>&1; ${TRUE}
2793 -${Q} ${LCC} ${ILDFLAGS} have_rusage.o
-o have_rusage
${EXT} \
2794 >/dev
/null
2>&1; ${TRUE}
2795 -${Q} ${SHELL} -c
"./have_rusage${EXT} > rusage_tmp 2>/dev/null" \
2796 >/dev
/null
2>&1; ${TRUE}
2797 -${Q} if
[ -s rusage_tmp
]; then \
2798 ${CAT} rusage_tmp
>> have_rusage.h
; \
2800 echo
'#undef HAVE_GETRUSAGE /* no */' >> have_rusage.h
; \
2802 ${Q} echo
'' >> have_rusage.h
2803 ${Q} echo
'' >> have_rusage.h
2804 ${Q} echo
'#endif /* !__HAVE_RUSAGE_H__ */' >> have_rusage.h
2805 ${Q} ${RM} -f have_rusage
${EXT} have_rusage.o rusage_tmp
2806 ${Q} echo
'have_rusage.h formed'
2807 -@if
[ -z
"${Q}" ]; then \
2809 echo
'=-=-= start of $@ =-=-='; \
2811 echo
'=-=-= end of $@ =-=-='; \
2817 have_strdup.h
: have_strdup.c
${MAKE_FILE}
2818 ${Q} ${RM} -f strdup_tmp have_strdup.h
2819 ${Q} echo
'forming have_strdup.h'
2820 ${Q} echo
'/*' > have_strdup.h
2821 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_strdup.h
2822 ${Q} echo
' */' >> have_strdup.h
2823 ${Q} echo
'' >> have_strdup.h
2824 ${Q} echo
'' >> have_strdup.h
2825 ${Q} echo
'#if !defined(__HAVE_STRDUP_H__)' >> have_strdup.h
2826 ${Q} echo
'#define __HAVE_STRDUP_H__' >> have_strdup.h
2827 ${Q} echo
'' >> have_strdup.h
2828 ${Q} echo
'' >> have_strdup.h
2829 ${Q} echo
'/* do we have or want getstrdup()? */' >> have_strdup.h
2830 ${Q} ${RM} -f have_strdup.o have_strdup
${EXT}
2831 -${Q} ${LCC} ${ICFLAGS} ${HAVE_STRDUP} have_strdup.c
-c \
2832 >/dev
/null
2>&1; ${TRUE}
2833 -${Q} ${LCC} ${ILDFLAGS} have_strdup.o
-o have_strdup \
2834 >/dev
/null
2>&1; ${TRUE}
2835 -${Q} ${SHELL} -c
"./have_strdup${EXT} > strdup_tmp 2>/dev/null" \
2836 >/dev
/null
2>&1; ${TRUE}
2837 -${Q} if
[ -s strdup_tmp
]; then \
2838 ${CAT} strdup_tmp
>> have_strdup.h
; \
2840 echo
'#undef HAVE_STRDUP /* no */' >> have_strdup.h
; \
2842 ${Q} echo
'' >> have_strdup.h
2843 ${Q} echo
'' >> have_strdup.h
2844 ${Q} echo
'#endif /* !__HAVE_STRDUP_H__ */' >> have_strdup.h
2845 ${Q} ${RM} -f have_strdup
${EXT} have_strdup.o strdup_tmp
2846 ${Q} echo
'have_strdup.h formed'
2847 -@if
[ -z
"${Q}" ]; then \
2849 echo
'=-=-= start of $@ =-=-='; \
2851 echo
'=-=-= end of $@ =-=-='; \
2857 args.h
: have_stdvs.c have_varvs.c have_string.h have_unistd.h have_string.h
2858 ${Q} ${RM} -f args.h
2859 ${Q} echo
'forming args.h'
2860 ${Q} echo
'/*' > args.h
2861 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> args.h
2862 ${Q} echo
' */' >> args.h
2863 ${Q} echo
'' >> args.h
2864 ${Q} echo
'' >> args.h
2865 ${Q} echo
'#if !defined(__ARGS_H__)' >> args.h
2866 ${Q} echo
'#define __ARGS_H__' >> args.h
2867 ${Q} echo
'' >> args.h
2868 ${Q} echo
'' >> args.h
2869 ${Q} ${RM} -f have_stdvs.o have_stdvs
${EXT}
2870 -${Q} ${LCC} ${ICFLAGS} ${HAVE_VSPRINTF} have_stdvs.c
-c \
2871 >/dev
/null
2>&1; ${TRUE}
2872 -${Q} ${LCC} ${ILDFLAGS} have_stdvs.o
-o have_stdvs
${EXT} \
2873 >/dev
/null
2>&1; ${TRUE}
2874 -${Q} if .
/have_stdvs
${EXT} >>args.h
2>/dev
/null
; then \
2875 ${TOUCH} have_args.sh
; \
2879 -${Q} if
[ ! -f have_args.sh
] && [ X
"${HAVE_VSPRINTF}" = X
]; then \
2880 ${RM} -f have_stdvs.o have_stdvs
${EXT} have_varvs.o
; \
2881 ${RM} -f have_varvs
${EXT}; \
2882 ${LCC} ${ICFLAGS} ${HAVE_VSPRINTF} have_varvs.c
-c \
2884 ${LCC} ${ILDFLAGS} have_varvs.o
-o have_varvs
${EXT} 2>/dev
/null
; \
2885 if .
/have_varvs
${EXT} >>args.h
2>/dev
/null
; then \
2886 ${TOUCH} have_args.sh
; \
2893 -${Q} if
[ -f have_args.sh
]; then \
2894 echo
'exit 0' > have_args.sh
; \
2896 echo
'exit 1' > have_args.sh
; \
2897 echo
"Unable to determine what type of variable args and"; \
2898 echo
"what type of vsprintf() should be used. Set or change"; \
2899 echo
"the Makefile variable HAVE_VSPRINTF."; \
2901 ${Q} sh .
/have_args.sh
2902 ${Q} echo
'' >> args.h
2903 ${Q} echo
'' >> args.h
2904 ${Q} echo
'#endif /* !__ARGS_H__ */' >> args.h
2905 ${Q} ${RM} -f have_stdvs.o have_varvs.o have_varvs
${EXT} have_args.sh
2907 ${Q} echo
'args.h formed'
2908 -@if
[ -z
"${Q}" ]; then \
2910 echo
'=-=-= start of $@ =-=-='; \
2912 echo
'=-=-= end of $@ =-=-='; \
2918 calcerr.h
: calcerr.tbl calcerr_h.sed calcerr_h.awk
${MAKE_FILE}
2919 ${Q} ${RM} -f calerr.h
2920 ${Q} echo
'forming calcerr.h'
2921 ${Q} echo
'/*' > calcerr.h
2922 ${Q} echo
' * DO NOT EDIT' >> calcerr.h
2923 ${Q} echo
' *' >> calcerr.h
2924 ${Q} echo
' * generated by calcerr.tbl via Makefile' >> calcerr.h
2925 ${Q} echo
' */' >> calcerr.h
2926 ${Q} echo
'' >> calcerr.h
2927 ${Q} echo
'' >> calcerr.h
2928 ${Q} echo
'#if !defined(__CALCERR_H__)' >> calcerr.h
2929 ${Q} echo
'#define __CALCERR_H__' >> calcerr.h
2930 ${Q} echo
'' >> calcerr.h
2931 ${Q} echo
'' >> calcerr.h
2932 ${Q} ${SED} -f calcerr_h.sed
< calcerr.tbl | \
2933 ${AWK} -f calcerr_h.awk
>> calcerr.h
2934 ${Q} echo
'' >> calcerr.h
2935 ${Q} echo
'' >> calcerr.h
2936 ${Q} echo
'#endif /* !__CALCERR_H__ */' >> calcerr.h
2937 ${Q} echo
'calcerr.h formed'
2938 -@if
[ -z
"${Q}" ]; then \
2940 echo
'=-=-= start of $@ =-=-='; \
2942 echo
'=-=-= end of $@ =-=-='; \
2948 calcerr.c
: calcerr.tbl calcerr_c.sed calcerr_c.awk
${MAKE_FILE}
2949 ${Q} ${RM} -f calerr.c
2950 ${Q} echo
'forming calcerr.c'
2951 ${Q} echo
'/*' > calcerr.c
2952 ${Q} echo
' * DO NOT EDIT' >> calcerr.c
2953 ${Q} echo
' *' >> calcerr.c
2954 ${Q} echo
' * generated by calcerr.tbl via Makefile' >> calcerr.c
2955 ${Q} echo
' */' >> calcerr.c
2956 ${Q} echo
'' >> calcerr.c
2957 ${Q} ${SED} -f calcerr_c.sed
< calcerr.tbl | \
2958 ${AWK} -f calcerr_c.awk
>> calcerr.c
2959 ${Q} echo
'calcerr.c formed'
2960 -@if
[ -z
"${Q}" ]; then \
2962 echo
'=-=-= start of $@ =-=-='; \
2964 echo
'=-=-= end of $@ =-=-='; \
2970 no_implicit.arg
: no_implicit.c
${MAKE_FILE}
2971 ${Q} ${RM} -f no_implicit
${EXT} no_implicit.o no_implicit.arg
2972 ${Q} echo
'forming no_implicit.arg'
2973 -${Q} if
[ X
"${HAVE_NO_IMPLICIT}" = X
"YES" ]; then \
2974 echo
""'-Wno-implicit' > no_implicit.arg
; \
2975 elif
[ X
"${HAVE_NO_IMPLICIT}" = X
"NO" ]; then \
2976 ${TOUCH} no_implicit.arg
; \
2978 ${LCC} -Wno-implicit
${ICFLAGS} -DHAVE_NO_IMPLICIT \
2979 no_implicit.c
-c
>/dev
/null
2>&1; \
2980 ${LCC} ${ILDFLAGS} no_implicit.o
-o no_implicit
${EXT} \
2982 ${SHELL} -c
"./no_implicit${EXT} > no_implicit.arg 2>/dev/null" \
2983 >/dev
/null
2>&1; ${TRUE}; \
2985 ${Q} echo
'no_implicit.arg formed'
2986 -@if
[ -z
"${Q}" ]; then \
2988 echo
'=-=-= start of $@ =-=-='; \
2990 echo
'=-=-= end of $@ =-=-='; \
2996 have_unused.h
: have_unused.c
${MAKE_FILE}
2997 ${Q} ${RM} -f unused_tmp have_unused.h
2998 ${Q} echo
'forming have_unused.h'
2999 ${Q} echo
'/*' > have_unused.h
3000 ${Q} echo
' * DO NOT EDIT -- generated by the Makefile' >> have_unused.h
3001 ${Q} echo
' */' >> have_unused.h
3002 ${Q} echo
'' >> have_unused.h
3003 ${Q} echo
'' >> have_unused.h
3004 ${Q} echo
'#if !defined(__HAVE_UNUSED_H__)' >> have_unused.h
3005 ${Q} echo
'#define __HAVE_UNUSED_H__' >> have_unused.h
3006 ${Q} echo
'' >> have_unused.h
3007 ${Q} echo
'' >> have_unused.h
3008 ${Q} echo
'/* do we have/want the unused attribute? */' >> have_unused.h
3009 ${Q} ${RM} -f have_unused.o have_unused
${EXT}
3010 -${Q} ${LCC} ${ICFLAGS} ${HAVE_UNUSED} have_unused.c
-c \
3011 >/dev
/null
2>&1; ${TRUE}
3012 -${Q} ${LCC} ${ILDFLAGS} have_unused.o
-o have_unused \
3013 >/dev
/null
2>&1; ${TRUE}
3014 -${Q} ${SHELL} -c
"./have_unused${EXT} > unused_tmp 2>/dev/null" \
3015 >/dev
/null
2>&1; ${TRUE}
3016 -${Q} if
[ -s unused_tmp
]; then \
3017 ${CAT} unused_tmp
>> have_unused.h
; \
3019 echo
'#undef HAVE_UNUSED /* no */' >> have_unused.h
; \
3020 echo
'#undef UNUSED' >> have_unused.h
; \
3021 echo
'#define UNUSED /* no */' >> have_unused.h
; \
3023 ${Q} echo
'' >> have_unused.h
3024 ${Q} echo
'' >> have_unused.h
3025 ${Q} echo
'#endif /* !__HAVE_UNUSED_H__ */' >> have_unused.h
3026 ${Q} ${RM} -f have_unused
${EXT} have_unused.o unused_tmp
3027 ${Q} echo
'have_unused.h formed'
3028 -@if
[ -z
"${Q}" ]; then \
3030 echo
'=-=-= start of $@ =-=-='; \
3032 echo
'=-=-= end of $@ =-=-='; \
3040 # Build .h files for windoz based systems
3042 # This is really a internal utility rule that is used to create the
3043 # win32 sub-directory for distribution.
3047 win32_hsrc
: win32.mkdef
${MAKE_FILE}
3048 ${Q} echo
'forming win32 directory'
3049 ${Q} ${RM} -rf win32
3051 ${Q} ${CP} ${UTIL_C_SRC} win32
3052 ${Q} ${CP} ${UTIL_MISC_SRC} win32
3053 ${Q} ${CP} ${MAKE_FILE} win32
/${MAKE_FILE}
3055 echo
"${MAKE} -f ${MAKE_FILE} hsrc `${CAT} win32.mkdef` EXT="; \
3056 ${MAKE} -f
${MAKE_FILE} hsrc
`${CAT} win32.mkdef` EXT
=; \
3057 ${RM} -f
${UTIL_C_SRC}; \
3058 ${RM} -f
${UTIL_MISC_SRC}; \
3059 ${RM} -f
${UTIL_OBJS}; \
3060 ${RM} -f
${UTIL_PROGS}; \
3061 ${RM} -f
${UTIL_FILES}; \
3062 ${RM} -f
${MAKE_FILE})
3063 ${Q} echo
'win32 directory formed'
3067 # These rules are used in the process of building the BUILD_H_SRC.
3071 endian.o
: endian.c have_unistd.h
3072 ${LCC} ${ICFLAGS} ${CALC_BYTE_ORDER} endian.c
-c
3074 endian
${EXT}: endian.o
3076 ${LCC} ${ICFLAGS} endian.o
-o
$@
3078 longbits.o
: longbits.c have_unistd.h
3079 ${LCC} ${ICFLAGS} longbits.c
-c
3081 longbits
${EXT}: longbits.o
3083 ${LCC} ${ICFLAGS} longbits.o
-o
$@
3087 # These two .all rules are used to determine of the lower level
3088 # directory has had its all rule performed.
3092 cal
/.
all: cal
/Makefile
3093 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3094 ${V} echo
'=-=-=-=-= Invoking all rule for cal =-=-=-=-='
3096 cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} all
3097 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3098 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3100 help
/.
all: help
/Makefile
3101 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3102 ${V} echo
'=-=-=-=-= Invoking all rule for help =-=-=-=-='
3104 cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} all
3105 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3106 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3108 help
/builtin
: help
/Makefile \
3109 func.c help
/builtin.top help
/builtin.end help
/funclist.sed
3110 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3111 ${V} echo
'=-=-=-=-= Invoking builtin rule for help =-=-=-=-='
3113 cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} builtin
3114 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3115 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3117 cscript
/.
all: ${CSCRIPT_TARGETS}
3119 ${CSCRIPT_TARGETS}: cscript
/Makefile
3120 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3121 ${V} echo
'=-=-=-=-= Invoking all rule for cscript =-=-=-=-='
3122 ${RM} -f cscript
/.
all
3123 cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} all
3124 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3125 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3127 custom
/.
all: custom
/Makefile
3128 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3129 ${V} echo
'=-=-=-=-= Invoking all rule for custom =-=-=-=-='
3131 cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} all
3132 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3133 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3135 custom
/libcustcalc
${LIB_EXT_VERSION}: custom
/Makefile
3136 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3137 ${V} echo
'=-=-=-=-= Invoking all rule for custom =-=-=-=-='
3138 cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} $@
3139 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3140 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3142 libcustcalc
${LIB_EXT_VERSION}: custom
/libcustcalc
${LIB_EXT_VERSION}
3146 libcustcalc
${LIB_EXT_VERS}: custom
/libcustcalc
${LIB_EXT_VERSION}
3150 libcustcalc
${LIB_EXT_VER}: libcustcalc
${LIB_EXT_VERSION}
3154 libcustcalc
${LIB_EXT_VE}: libcustcalc
${LIB_EXT_VERSION}
3158 libcustcalc
${LIB_EXT}: libcustcalc
${LIB_EXT_VERSION}
3164 # building calc-static and static lib*.a libraires
3168 calc-static
${EXT}: .hsrc
${CALCOBJS} \
3169 ${CALC_STATIC_LIBS} ${MAKE_FILE}
3171 ${CC} ${LDFLAGS} ${CALCOBJS} ${LD_STATIC} ${CALC_STATIC_LIBS} \
3172 ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
3174 libcustcalc.a
: custom
/libcustcalc.a
3178 libcalc.a
: ${LIBOBJS} ${MAKE_FILE}
3180 ${AR} qc libcalc.a
${LIBOBJS}
3182 ${CHMOD} 0644 libcalc.a
3184 custom
/libcustcalc.a
: custom
/Makefile
3185 cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} libcustcalc.a
3187 sample_rand-static
${EXT}: sample_rand.o
${CALC_STATIC_LIBS} ${MAKE_FILE}
3188 ${CC} ${LDFLAGS} sample_rand.o
${LD_STATIC} \
3189 ${CALC_STATIC_LIBS} ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
3191 sample_many-static
${EXT}: sample_many.o
${CALC_STATIC_LIBS} ${MAKE_FILE}
3192 ${CC} ${LDFLAGS} sample_many.o
${LD_STATIC} \
3193 ${CALC_STATIC_LIBS} ${READLINE_LIB} ${READLINE_EXTRAS} -o
$@
3197 # Home grown make dependency rules. Your system make not support
3198 # or have the needed tools. You can ignore this section.
3200 # We will form a skelaton tree of *.c files containing only #include "foo.h"
3201 # lines and .h files containing the same lines surrounded by multiple include
3202 # prevention lines. This allows us to build a static depend list that will
3203 # satisfy all possible cpp symbol definition combinations.
3207 depend
: custom
/Makefile hsrc
3208 ${Q} if
[ -f
${MAKE_FILE}.bak
]; then \
3209 echo
"${MAKE_FILE}.bak exists, remove or move it"; \
3214 ${V} echo
'=-=-=-=-= Invoking depend rule for cscript =-=-=-=-='
3215 ${Q} cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} depend
3216 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3217 ${V} echo
'=-=-=-=-= Invoking depend rule for custom =-=-=-=-='
3218 ${Q} cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} depend
3219 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3220 ${Q} echo forming skel
3223 -${Q} for i in
${C_SRC} ${BUILD_C_SRC}; do \
3224 ${SED} -n
'/^#[ ]*include[ ]*"/p' "$$i" | \
3225 ${GREP} -v
'\.\./getopt/getopt\.h' > "skel/$$i"; \
3227 ${Q} ${MKDIR} skel
/custom
3228 -${Q} for i in
${H_SRC} ${BUILD_H_SRC} custom.h
/dev
/null
; do \
3229 if
[ X
"$$i" != X
"/dev/null" ]; then \
3230 tag
="`echo $$i | ${SED} 's/[\.+,:]/_/g'`"; \
3231 echo
"#if !defined($$tag)" > "skel/$$i"; \
3232 echo
"#define $$tag" >> "skel/$$i"; \
3233 ${SED} -n
'/^#[ ]*include[ ]*"/p' "$$i" | \
3234 LANG
=C
${SORT} -u
>> "skel/$$i"; \
3235 echo
'#endif /* '"$$tag"' */' >> "skel/$$i"; \
3238 ${Q} ${RM} -f skel
/makedep.out
3239 ${Q} echo skel formed
3240 ${Q} echo forming dependency list
3241 ${Q} :> skel
/makedep.out
3243 ${MAKEDEPEND} -w
1 -f makedep.out
${C_SRC} ${BUILD_C_SRC}
3244 -${Q} for i in
${C_SRC} ${BUILD_C_SRC} /dev
/null
; do \
3245 if
[ X
"$$i" != X
"/dev/null" ]; then \
3246 echo
"$$i" |
${SED} 's/^\(.*\)\.c/\1.o: \1.c/'; \
3248 done
>> skel
/makedep.out
3249 ${Q} LANG
=C
${SORT} -u skel
/makedep.out
-o skel
/makedep.out
3250 ${Q} echo dependency list formed
3251 ${Q} echo forming new
${MAKE_FILE}
3252 ${Q} ${RM} -f
${MAKE_FILE}.bak
3253 ${Q} ${MV} ${MAKE_FILE} ${MAKE_FILE}.bak
3254 ${Q} ${SED} -n
'1,/^# DO NOT DELETE THIS LINE/p' \
3255 ${MAKE_FILE}.bak
> ${MAKE_FILE}
3256 ${Q} ${GREP} -v
'^#' skel
/makedep.out
>> ${MAKE_FILE}
3258 -${Q} if
${CMP} -s
${MAKE_FILE}.bak
${MAKE_FILE}; then \
3259 echo
'top level ${MAKE_FILE} was already up to date'; \
3260 ${MV} -f
${MAKE_FILE}.bak
${MAKE_FILE}; \
3262 ${RM} -f
${MAKE_FILE}.tmp
; \
3263 ${MV} ${MAKE_FILE} ${MAKE_FILE}.tmp
; \
3264 if
[ -d RCS
-a
! -w
"${MAKE_FILE}" ]; then \
3265 ${CO} -l
${MAKE_FILE}; \
3267 ${MV} ${MAKE_FILE}.tmp
${MAKE_FILE}; \
3268 if
[ -d RCS
]; then \
3269 echo
'********************************************************'; \
3270 echo
'new top level ${MAKE_FILE} formed -- need to check it in'; \
3271 echo
'********************************************************'; \
3275 # generate the list of h files for lower level depend use
3278 -${Q} for i in
${H_SRC} ${BUILD_H_SRC} /dev
/null
; do \
3279 if
[ X
"$$i" != X
"/dev/null" ]; then \
3289 # This rule is the most accurate as it uses calc source to
3290 # produce the version value. This rule produces a full
3291 # version string. Note that the full version could be 4
3292 # or 3 levels long depending on the minor patch number.
3295 # This rule is the most accurate as it uses calc source to
3296 # produce the version value. This rule produces only a
3297 # 3 level version string.
3300 # This rule is the most accurate as it uses calc source to
3301 # produce the version value. This rule produces only a
3302 # 2 level version string.
3305 # This rule is the most accurate as it uses calc source to
3306 # produce the version value. This rule produces only a
3307 # 1 level version string.
3310 # This rule simply echos the value found in this makefile.
3311 # This rule produces the full version string. Note that the
3312 # full version could be 4 or 3 levels long depending on the
3313 # minor patch number.
3316 # This rule simply echos the value found in this makefile.
3317 # This rule produces only a 3 level version string.
3320 # This rule simply echos the value found in this makefile.
3321 # This rule produces only a 2 level version string.
3324 # This rule simply echos the value found in this makefile.
3325 # This rule produces only a 1 level version string.
3329 calc_version
: ver_calc
${EXT}
3332 calc_vers
: ver_calc
${EXT}
3333 @.
/ver_calc
${EXT} -V
3335 calc_ver
: ver_calc
${EXT}
3336 @.
/ver_calc
${EXT} -V |
${SED} -e
's/\.[^.]*$$//'
3338 calc_ve
: ver_calc
${EXT}
3339 @.
/ver_calc
${EXT} -V |
${SED} -e
's/\.[^.]*\.[^.]*$$//'
3353 ver_calc
${EXT}: version.c have_unused.h
3355 ${LCC} ${ICFLAGS} -DCALC_VER
${ILDFLAGS} version.c
-o
$@
3359 # File distribution list generation. You can ignore this section.
3361 # We will form the names of source files as if they were in a
3362 # sub-directory called calc.
3366 distlist
: custom
/Makefile
${DISTLIST}
3367 ${Q} (for i in
${DISTLIST} /dev
/null
; do \
3368 if
[ X
"$$i" != X
"/dev/null" ]; then \
3372 for i in
${BUILD_H_SRC} ${BUILD_C_SRC} /dev
/null
; do \
3373 if
[ X
"$$i" != X
"/dev/null" ]; then \
3377 (cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} $@
); \
3378 (cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} $@
); \
3379 (cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} $@
); \
3380 (cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} $@
) \
3383 distdir
: custom
/Makefile
3386 (cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} $@
); \
3387 (cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} $@
); \
3388 (cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} $@
); \
3389 (cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} $@
) \
3392 calcliblist
: custom
/Makefile
3393 ${Q} (for i in
${CALCLIBLIST} /dev
/null
; do \
3394 if
[ X
"$$i" != X
"/dev/null" ]; then \
3398 (cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} $@
); \
3399 (cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} $@
); \
3400 (cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} $@
); \
3401 (cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} $@
) \
3405 ${Q} ${MAKE} -f Makefile calcliblist | \
3406 ${FMT} -64 |
${SED} -e
's/^/ /'
3411 # Doing a 'make check' will cause the regression test suite to be executed.
3412 # This rule will try to build anything that needs to be built as well.
3414 # Doing a 'make chk' will cause only the context around interesting
3415 # (and error) messages to be printed. Unlike 'make check', this
3416 # rule does not cause things to be built. I.e., the all rule is
3421 check: all .
/cal
/regress.cal
3422 ${CALC_ENV} .
/calc
${EXT} -d
-q read regress
3424 chk
: .
/cal
/regress.cal
3425 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3426 ${CALC_ENV} .
/calc
${EXT} -d
-q read regress
2>&1 |
${AWK} -f
check.awk
3427 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3434 # * print major Makefile variables
3437 # * print major Makefile variables
3438 # * build anything not yet built
3441 # * remove everything that was previously built
3442 # * print major Makefile variables
3444 # * run the regression tests
3448 @echo
'=-=-=-=-= dumping major make variables =-=-=-=-='
3449 @echo
'ALIGN32=${ALIGN32}'; echo
''
3450 @echo
'ALLOW_CUSTOM=${ALLOW_CUSTOM}'; echo
''
3451 @echo
'AR=${AR}'; echo
''
3452 @echo
'AWK=${AWK}'; echo
''
3453 @echo
'BINDIR=${BINDIR}'; echo
''
3454 @echo
'BLD_TYPE=${BLD_TYPE}'; echo
''
3455 @echo
'BUILD_C_SRC=${BUILD_C_SRC}'; echo
''
3456 @echo
'BUILD_H_SRC=${BUILD_H_SRC}'; echo
''
3457 @echo
'BYTE_ORDER=${BYTE_ORDER}'; echo
''
3458 @echo
'CALCLIBLIST=${CALCLIBLIST}'; echo
''
3459 @echo
'CALCOBJS=${CALCOBJS}'; echo
''
3460 @echo
'CALCPAGER=${CALCPAGER}'; echo
''
3461 @echo
'CALCPATH=${CALCPATH}'; echo
''
3462 @echo
'CALCRC=${CALCRC}'; echo
''
3463 @echo
'CALCSRC=${CALCSRC}'; echo
''
3464 @echo
'CALC_DYNAMIC_LIBS=${CALC_DYNAMIC_LIBS}'; echo
''
3465 @echo
'CALC_ENV=${CALC_ENV}'; echo
''
3466 @echo
'CALC_INCDIR=${CALC_INCDIR}'; echo
''
3467 @echo
'CALC_SHAREDIR=${CALC_SHAREDIR}'; echo
''
3468 @echo
'CALC_STATIC_LIBS=${CALC_STATIC_LIBS}'; echo
''
3469 @echo
'CAL_PASSDOWN=${CAL_PASSDOWN}'; echo
''
3470 @echo
'CAT=${CAT}'; echo
''
3471 @echo
'CATDIR=${CATDIR}'; echo
''
3472 @echo
'CATEXT=${CATEXT}'; echo
''
3473 @echo
'CATMODE=${CATMODE}'; echo
''
3474 @echo
'CC=${CC}'; echo
''
3475 @echo
'CCMISC=${CCMISC}'; echo
''
3476 @echo
'CCOPT=${CCOPT}'; echo
''
3477 @echo
'CCWARN=${CCWARN}'; echo
''
3478 @echo
'CCWERR=${CCWERR}'; echo
''
3479 @echo
'CFLAGS=${CFLAGS}'; echo
''
3480 @echo
'CHMOD=${CHMOD}'; echo
''
3481 @echo
'CMP=${CMP}'; echo
''
3482 @echo
'CO=${CO}'; echo
''
3483 @echo
'COL=${COL}'; echo
''
3484 @echo
'COMMON_CFLAGS=${COMMON_CFLAGS}'; echo
''
3485 @echo
'COMMON_LDFLAGS=${COMMON_LDFLAGS}'; echo
''
3486 @echo
'CP=${CP}'; echo
''
3487 @echo
'CSCRIPT_PASSDOWN=${CSCRIPT_PASSDOWN}'; echo
''
3488 @echo
'CSCRIPT_TARGETS=${CSCRIPT_TARGETS}'; echo
''
3489 @echo
'CTAGS=${CTAGS}'; echo
''
3490 @echo
'CUSTOMCALDIR=${CUSTOMCALDIR}'; echo
''
3491 @echo
'CUSTOMHELPDIR=${CUSTOMHELPDIR}'; echo
''
3492 @echo
'CUSTOMINCDIR=${CUSTOMINCDIR}'; echo
''
3493 @echo
'CUSTOM_PASSDOWN=${CUSTOM_PASSDOWN}'; echo
''
3494 @echo
'C_SRC=${C_SRC}'; echo
''
3495 @echo
'DEBUG=${DEBUG}'; echo
''
3496 @echo
'DEFAULT_LIB_INSTALL_PATH=${DEFAULT_LIB_INSTALL_PATH}'; echo
''
3497 @echo
'DEV_BITS=${DEV_BITS}'; echo
''
3498 @echo
'DIFF=${DIFF}'; echo
''
3499 @echo
'DISTLIST=${DISTLIST}'; echo
''
3500 @echo
'EXT=${EXT}'; echo
''
3501 @echo
'FMT=${FMT}'; echo
''
3502 @echo
'FPOS_BITS=${FPOS_BITS}'; echo
''
3503 @echo
'FPOS_POS_BITS=${FPOS_POS_BITS}'; echo
''
3504 @echo
'GREP=${GREP}'; echo
''
3505 @echo
'HAVE_CONST=${HAVE_CONST}'; echo
''
3506 @echo
'HAVE_FPOS=${HAVE_FPOS}'; echo
''
3507 @echo
'HAVE_FPOS_POS=${HAVE_FPOS_POS}'; echo
''
3508 @echo
'HAVE_GETPGID=${HAVE_GETPGID}'; echo
''
3509 @echo
'HAVE_GETPRID=${HAVE_GETPRID}'; echo
''
3510 @echo
'HAVE_GETRUSAGE=${HAVE_GETRUSAGE}'; echo
''
3511 @echo
'HAVE_GETSID=${HAVE_GETSID}'; echo
''
3512 @echo
'HAVE_GETTIME=${HAVE_GETTIME}'; echo
''
3513 @echo
'HAVE_MEMMOVE=${HAVE_MEMMOVE}'; echo
''
3514 @echo
'HAVE_NEWSTR=${HAVE_NEWSTR}'; echo
''
3515 @echo
'HAVE_NO_IMPLICIT=${HAVE_NO_IMPLICIT}'; echo
''
3516 @echo
'HAVE_OFFSCL=${HAVE_OFFSCL}'; echo
''
3517 @echo
'HAVE_POSSCL=${HAVE_POSSCL}'; echo
''
3518 @echo
'HAVE_STDLIB_H=${HAVE_STDLIB_H}'; echo
''
3519 @echo
'HAVE_STRDUP=${HAVE_STRDUP}'; echo
''
3520 @echo
'HAVE_STRING_H=${HAVE_STRING_H}'; echo
''
3521 @echo
'HAVE_SYS_TIMES_H=${HAVE_SYS_TIMES_H}'; echo
''
3522 @echo
'HAVE_SYS_TIME_H=${HAVE_SYS_TIME_H}'; echo
''
3523 @echo
'HAVE_TIMES_H=${HAVE_TIMES_H}'; echo
''
3524 @echo
'HAVE_TIME_H=${HAVE_TIME_H}'; echo
''
3525 @echo
'HAVE_UID_T=${HAVE_UID_T}'; echo
''
3526 @echo
'HAVE_UNISTD_H=${HAVE_UNISTD_H}'; echo
''
3527 @echo
'HAVE_UNUSED=${HAVE_UNUSED}'; echo
''
3528 @echo
'HAVE_URANDOM_H=${HAVE_URANDOM_H}'; echo
''
3529 @echo
'HAVE_USTAT=${HAVE_USTAT}'; echo
''
3530 @echo
'HAVE_VSPRINTF=${HAVE_VSPRINTF}'; echo
''
3531 @echo
'HELPDIR=${HELPDIR}'; echo
''
3532 @echo
'HELP_PASSDOWN=${HELP_PASSDOWN}'; echo
''
3533 @echo
'H_SRC=${H_SRC}'; echo
''
3534 @echo
'ICFLAGS=${ICFLAGS}'; echo
''
3535 @echo
'ILDFLAGS=${ILDFLAGS}'; echo
''
3536 @echo
'INCDIR=${INCDIR}'; echo
''
3537 @echo
'INODE_BITS=${INODE_BITS}'; echo
''
3538 @echo
'LANG=${LANG}'; echo
''
3539 @echo
'LCC=${LCC}'; echo
''
3540 @echo
'LDCONFIG=${LDCONFIG}'; echo
''
3541 @echo
'LDFLAGS=${LDFLAGS}'; echo
''
3542 @echo
'LDFLAGS=${LDFLAGS}'; echo
''
3543 @echo
'LD_DEBUG=${LD_DEBUG}'; echo
''
3544 @echo
'LD_SHARE=${LD_SHARE}'; echo
''
3545 @echo
'LIBCALC_SHLIB=${LIBCALC_SHLIB}'; echo
''
3546 @echo
'LIBCUSTCALC_SHLIB=${LIBCUSTCALC_SHLIB}'; echo
''
3547 @echo
'LIBDIR=${LIBDIR}'; echo
''
3548 @echo
'LIBOBJS=${LIBOBJS}'; echo
''
3549 @echo
'LIBSRC=${LIBSRC}'; echo
''
3550 @echo
'LIB_H_SRC=${LIB_H_SRC}'; echo
''
3551 @echo
'LICENSE=${LICENSE}'; echo
''
3552 @echo
'LN=${LN}'; echo
''
3553 @echo
'LONG_BITS=${LONG_BITS}'; echo
''
3554 @echo
'MAKE=${MAKE}'; echo
''
3555 @echo
'MAKEDEPEND=${MAKEDEPEND}'; echo
''
3556 @echo
'MAKEFILE_REV=${MAKEFILE_REV}'; echo
''
3557 @echo
'MAKE_FILE=${MAKE_FILE}'; echo
''
3558 @echo
'MANDIR=${MANDIR}'; echo
''
3559 @echo
'MANEXT=${MANEXT}'; echo
''
3560 @echo
'MANMAKE=${MANMAKE}'; echo
''
3561 @echo
'MANMODE=${MANMODE}'; echo
''
3562 @echo
'MKDIR=${MKDIR}'; echo
''
3563 @echo
'MKDIR_ARG=${MKDIR_ARG}'; echo
''
3564 @echo
'MV=${MV}'; echo
''
3565 @echo
'NROFF=${NROFF}'; echo
''
3566 @echo
'NROFF_ARG=${NROFF_ARG}'; echo
''
3567 @echo
'OBJS=${OBJS}'; echo
''
3568 @echo
'OFF_T_BITS=${OFF_T_BITS}'; echo
''
3569 @echo
'PURIFY=${PURIFY}'; echo
''
3570 @echo
'Q=${Q}'; echo
''
3571 @echo
'RANLIB=${RANLIB}'; echo
''
3572 @echo
'READLINE_EXTRAS=${READLINE_EXTRAS}'; echo
''
3573 @echo
'READLINE_INCLUDE=${READLINE_INCLUDE}'; echo
''
3574 @echo
'READLINE_LIB=${READLINE_LIB}'; echo
''
3575 @echo
'RM=${RM}'; echo
''
3576 @echo
'RMDIR=${RMDIR}'; echo
''
3577 @echo
'SAMPLE_C_SRC=${SAMPLE_C_SRC}'; echo
''
3578 @echo
'SAMPLE_H_SRC=${SAMPLE_H_SRC}'; echo
''
3579 @echo
'SAMPLE_OBJ=${SAMPLE_OBJ}'; echo
''
3580 @echo
'SAMPLE_STATIC_TARGETS=${SAMPLE_STATIC_TARGETS}'; echo
''
3581 @echo
'SAMPLE_TARGETS=${SAMPLE_TARGETS}'; echo
''
3582 @echo
'SCRIPTDIR=${SCRIPTDIR}'; echo
''
3583 @echo
'SED=${SED}'; echo
''
3584 @echo
'SHELL=${SHELL}'; echo
''
3585 @echo
'SORT=${SORT}'; echo
''
3586 @echo
'SPLINT=${SPLINT}'; echo
''
3587 @echo
'SPLINT_OPTS=${SPLINT_OPTS}'; echo
''
3588 @echo
'SYM_DYNAMIC_LIBS=${SYM_DYNAMIC_LIBS}'; echo
''
3589 @echo
'T=${T}'; echo
''
3590 @echo
'TARGETS=${TARGETS}'; echo
''
3591 @echo
'TEE=${TEE}'; echo
''
3592 @echo
'TERMCONTROL=${TERMCONTROL}'; echo
''
3593 @echo
'TOP_MAKE_FILE=${TOP_MAKE_FILE}'; echo
''
3594 @echo
'TOUCH=${TOUCH}'; echo
''
3595 @echo
'TRUE=${TRUE}'; echo
''
3596 @echo
'USE_READLINE=${USE_READLINE}'; echo
''
3597 @echo
'UTIL_C_SRC=${UTIL_C_SRC}'; echo
''
3598 @echo
'UTIL_MISC_SRC=${UTIL_MISC_SRC}'; echo
''
3599 @echo
'UTIL_OBJS=${UTIL_OBJS}'; echo
''
3600 @echo
'UTIL_FILES=${UTIL_FILES}'; echo
''
3601 @echo
'UTIL_PROGS=${UTIL_PROGS}'; echo
''
3602 @echo
'UTIL_TMP=${UTIL_TMP}'; echo
''
3603 @echo
'V=${V}'; echo
''
3604 @echo
'VERS=${VERS}'; echo
''
3605 @echo
'VERSION=${VERSION}'; echo
''
3606 @echo
'XARGS=${XARGS}'; echo
''
3607 @echo
'target=${target}'; echo
''
3608 @echo
'=-=-=-=-= ${MAKE_FILE} end of major make variable dump =-=-=-=-='
3610 mkdebug
: env version.c
3611 @echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3612 @echo
'=-=-=-=-= Determining the source version =-=-=-=-='
3613 @
${MAKE} -f Makefile Q
= V
=@ ver_calc
${EXT}
3615 @echo
'=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-=-='
3616 @
${MAKE} -f Makefile Q
= V
=@
all
3617 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3618 @echo
'=-=-=-=-= Determining the binary version =-=-=-=-='
3619 -@.
/calc
${EXT} -e
-q
-v
3620 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3621 @echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3624 @echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3625 @echo
'=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ clobber =-=-=-=-='
3626 @
${MAKE} -f Makefile Q
= V
=@
clobber
3627 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3628 @echo
'=-=-=-=-= Determining the source version =-=-=-=-='
3629 @
${MAKE} -f Makefile Q
= V
=@ ver_calc
${EXT}
3631 @echo
'=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-=-='
3632 @
${MAKE} -f Makefile Q
= V
=@
all
3633 @echo
'=-=-=-=-= Determining the binary version =-=-=-=-='
3634 -@.
/calc
${EXT} -e
-q
-v
3635 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3636 @echo
'=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ chk =-=-=-=-='
3637 @echo
'=-=-=-=-= this may take a while =-=-=-=-='
3638 @
${MAKE} -f Makefile Q
= V
=@ chk
3639 @echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3640 @echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3647 # * only run calc interactively with the ${CALC_ENV} environment
3650 # * run the dbx debugger on calc with the ${CALC_ENV} environment
3653 # * run the gdb debugger on calc with the ${CALC_ENV} environment
3658 ${CALC_ENV} .
/calc
${EXT}
3661 ${CALC_ENV} dbx .
/calc
${EXT}
3664 ${CALC_ENV} gdb .
/calc
${EXT}
3672 rpm
: clobber rpm-preclean rpm.mk calc.spec.in
3673 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3674 ${MAKE} -f rpm.mk
all V
=${V} RPM_TOP
="${RPM_TOP}"
3675 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3678 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3679 ${MAKE} -f rpm.mk
$@ V
=${V} RPM_TOP
="${RPM_TOP}"
3680 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3685 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3688 ${CP} -f
-p calc-static
${EXT} ${SAMPLE_STATIC_TARGETS} static
3689 ${CP} -f
-p libcalc.a custom
/libcustcalc.a static
3690 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3693 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3694 ${RM} -f calc-static
${EXT} ${SAMPLE_STATIC_TARGETS}
3695 cd static
; ${CP} -f
-p calc-static
${EXT} ${SAMPLE_STATIC_TARGETS} ..
3697 cd static
; ${CP} -f
-p libcalc.a ..
3698 ${RM} -f custom
/libcustcalc.a
3699 cd static
; ${CP} -f
-p libcustcalc.a ..
/custom
3700 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3703 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3704 ${CALC_ENV} .
/calc-static
${EXT} -d
-q read regress
2>&1 | \
3706 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3709 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3711 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3719 # Form the installed file list
3721 inst_files
: ${MAKE_FILE} help
/Makefile cal
/Makefile custom
/Makefile \
3722 cscript
/Makefile ver_calc
${EXT}
3723 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3724 ${Q} ${RM} -f inst_files
3725 ${Q} echo
${BINDIR}/calc
${EXT} > inst_files
3726 ${Q} cd help
; LANG
=C \
3727 ${MAKE} -f Makefile
${HELP_PASSDOWN} echo_inst_files | \
3728 ${GREP} '__file__..' |
${SED} -e s
'/.*__file__ //' >> ..
/inst_files
3729 ${Q} cd cal
; LANG
=C \
3730 ${MAKE} -f Makefile
${CAL_PASSDOWN} echo_inst_files | \
3731 ${GREP} '__file__..' |
${SED} -e s
'/.*__file__ //' >> ..
/inst_files
3732 ${Q} cd custom
; LANG
=C \
3733 ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} echo_inst_files | \
3734 ${GREP} '__file__..' |
${SED} -e s
'/.*__file__ //' >> ..
/inst_files
3735 ${Q} cd cscript
; LANG
=C \
3736 ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} echo_inst_files | \
3737 ${GREP} '__file__..' |
${SED} -e s
'/.*__file__ //' >> ..
/inst_files
3738 ${Q} echo
${LIBDIR}/libcalc.a
>> inst_files
3739 ${Q} for i in
${LIB_H_SRC} ${BUILD_H_SRC} /dev
/null
; do \
3740 if
[ X
"$$i" != X
"/dev/null" ]; then \
3741 echo
${CALC_INCDIR}/$$i; \
3744 ${Q} if
[ ! -z
"${MANDIR}" ]; then \
3745 echo
${MANDIR}/calc.
${MANEXT}; \
3747 ${Q} LANG
=C
${SORT} -u inst_files
-o inst_files
3748 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3750 # The olduninstall rule will remove calc files from the older, histroic
3751 # locations under the /usr/local directory. If you are using the
3752 # new default values for ${BINDIR}, ${CALC_SHAREDIR}, ${INCDIR} and ${LIBDIR}
3753 # then you can use this rule to clean out the older calc stuff under
3754 # the /usr/local directory.
3758 ${MAKE} -f Makefile \
3759 BINDIR
=/usr
/local
/bin \
3760 INCDIR
=/usr
/local
/include \
3761 LIBDIR
=/usr
/local
/lib
/calc \
3762 CALC_SHAREDIR
=/usr
/local
/lib
/calc \
3763 HELPDIR
=/usr
/local
/lib
/calc
/help \
3764 CALC_INCDIR
=/usr
/local
/include/calc \
3765 CUSTOMCALDIR
=/usr
/local
/lib
/calc
/custom \
3766 CUSTOMHELPDIR
=/usr
/local
/lib
/calc
/help
/custhelp \
3767 CUSTOMINCDIR
=/usr
/local
/lib
/calc
/custom \
3768 SCRIPTDIR
=/usr
/local
/bin
/cscript \
3769 MANDIR
=/usr
/local
/man
/man1 \
3771 ${XARGS} ${RM} -f
< inst_files
3772 -${RMDIR} /usr
/local
/lib
/calc
/help
/custhelp
3773 -${RMDIR} /usr
/local
/lib
/calc
/help
3774 -${RMDIR} /usr
/local
/lib
/calc
/custom
3775 -${RMDIR} /usr
/local
/lib
/calc
3776 -${RMDIR} /usr
/local
/include/calc
3777 -${RMDIR} /usr
/local
/bin
/cscript
3780 tags: ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} ${MAKE_FILE}
3781 -${CTAGS} ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} 2>&1 | \
3782 ${GREP} -v
'Duplicate entry|Second entry ignored'
3784 clean: custom
/Makefile
3785 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3787 ${RM} -f
${CALCOBJS}
3788 ${RM} -f
${UTIL_OBJS}
3789 ${RM} -f
${UTIL_TMP}
3790 ${RM} -f
${UTIL_PROGS}
3791 ${RM} -f
${UTIL_FILES}
3792 ${RM} -f
${SAMPLE_OBJ}
3793 ${RM} -f .libcustcalc_error
3794 ${RM} -f calc.spec.sed
3795 ${Q} echo
'=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
3796 cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} clean
3797 ${Q} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3798 ${Q} echo
'=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
3799 cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} clean
3800 ${Q} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3801 ${V} echo
'=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
3802 cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} clean
3803 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3804 ${V} echo
'=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
3805 cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} clean
3806 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3807 ${Q} echo remove files that are obsolete
3809 ${RM} -f endian.h stdarg.h libcalcerr.a cal
/obj help
/obj
3810 ${RM} -f have_vs.c std_arg.h try_stdarg.c fnvhash.c
3811 ${RM} -f win32dll.h have_malloc.h math_error.h string.h string.c
3812 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3814 clobber: custom
/Makefile
clean
3815 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3816 ${RM} -f
${SAMPLE_TARGETS}
3817 ${RM} -f
${SAMPLE_STATIC_TARGETS}
3818 ${RM} -f
tags .hsrc hsrc
3819 ${RM} -f
${BUILD_H_SRC}
3820 ${RM} -f
${BUILD_C_SRC}
3822 ${RM} -f
*_pure_
*.
[oa
]
3823 ${RM} -f
*.pure_linkinfo
3824 ${RM} -f
*.pure_hardlin
3827 ${RM} -f calc
.1 calc.usage
3828 ${RM} -f calc.pixie calc.rf calc.Counts calc.cord
3829 ${RM} -rf gen_h skel Makefile.bak tmp.patch
3830 ${RM} -f calc.spec inst_files rpm.mk.patch tmp
3831 ${RM} -f libcalc
${LIB_EXT_VERSION}
3832 ${RM} -f libcalc
${LIB_EXT_VERS}
3833 ${RM} -f libcalc
${LIB_EXT_VER}
3834 ${RM} -f libcalc
${LIB_EXT_VE}
3835 ${RM} -f libcalc
*${LIB_EXT}
3836 ${RM} -f libcustcalc
${LIB_EXT_VERSION}
3837 ${RM} -f libcustcalc
${LIB_EXT_VERS}
3838 ${RM} -f libcustcalc
${LIB_EXT_VER}
3839 ${RM} -f libcustcalc
${LIB_EXT_VE}
3840 ${RM} -f libcustcalc
*${LIB_EXT}
3841 ${RM} -f libcustcalc.a
3842 ${RM} -f calc-static
${EXT}
3843 ${RM} -f
${CALC_STATIC_LIBS}
3845 ${V} echo
'=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
3846 -cd help
; ${RM} -f
all; ${MAKE} -f Makefile
${HELP_PASSDOWN} $@
3847 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3848 ${V} echo
'=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
3849 -cd cal
; ${RM} -f
all; ${MAKE} -f Makefile
${CAL_PASSDOWN} $@
3850 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3851 ${V} echo
'=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
3852 cd custom
; ${RM} -f
all; ${MAKE} -f Makefile
${CUSTOM_PASSDOWN} $@
3853 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3854 ${V} echo
'=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
3855 cd cscript
; ${RM} -f
all; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} $@
3856 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3857 ${V} echo remove files that are obsolete
3858 ${RM} -rf win32 build
3859 ${RM} -f .static .dynamic calc-dynamic-only calc-static-only
3860 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3862 # install everything
3864 # NOTE: Keep the uninstall rule in reverse order to the install rule
3866 install: custom
/Makefile
${LIB_H_SRC} ${BUILD_H_SRC} calc
.1 all
3867 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3868 -${Q} if
[ ! -z
"${T}" ]; then \
3869 if
[ ! -d
${T} ]; then \
3870 echo
${MKDIR} ${MKDIR_ARG} ${T}; \
3871 ${MKDIR} ${MKDIR_ARG} ${T}; \
3872 echo
${CHMOD} 0755 ${T}; \
3873 ${CHMOD} 0755 ${T}; \
3876 -${Q} if
[ ! -d
${T}${BINDIR} ]; then \
3877 echo
${MKDIR} ${MKDIR_ARG} ${T}${BINDIR}; \
3878 ${MKDIR} ${MKDIR_ARG} ${T}${BINDIR}; \
3879 echo
${CHMOD} 0755 ${T}${BINDIR}; \
3880 ${CHMOD} 0755 ${T}${BINDIR}; \
3884 -${Q} if
[ ! -d
${T}${INCDIR} ]; then \
3885 echo
${MKDIR} ${MKDIR_ARG} ${T}${INCDIR}; \
3886 ${MKDIR} ${MKDIR_ARG} ${T}${INCDIR}; \
3887 echo
${CHMOD} 0755 ${T}${INCDIR}; \
3888 ${CHMOD} 0755 ${T}${INCDIR}; \
3892 -${Q} if
[ ! -d
${T}${LIBDIR} ]; then \
3893 echo
${MKDIR} ${MKDIR_ARG} ${T}${LIBDIR}; \
3894 ${MKDIR} ${MKDIR_ARG} ${T}${LIBDIR}; \
3895 echo
${CHMOD} 0755 ${T}${LIBDIR}; \
3896 ${CHMOD} 0755 ${T}${LIBDIR}; \
3900 -${Q} if
[ ! -d
${T}${CALC_SHAREDIR} ]; then \
3901 ${MKDIR} ${MKDIR_ARG} ${T}${CALC_SHAREDIR}; \
3902 echo
${MKDIR} ${MKDIR_ARG} ${T}${CALC_SHAREDIR}; \
3903 echo
${CHMOD} 0755 ${T}${CALC_SHAREDIR}; \
3904 ${CHMOD} 0755 ${T}${CALC_SHAREDIR}; \
3908 -${Q} if
[ ! -d
${T}${HELPDIR} ]; then \
3909 echo
${MKDIR} ${MKDIR_ARG} ${T}${HELPDIR}; \
3910 ${MKDIR} ${MKDIR_ARG} ${T}${HELPDIR}; \
3911 echo
${CHMOD} 0755 ${T}${HELPDIR}; \
3912 ${CHMOD} 0755 ${T}${HELPDIR}; \
3916 -${Q} if
[ ! -d
${T}${CALC_INCDIR} ]; then \
3917 echo
${MKDIR} ${MKDIR_ARG} ${T}${CALC_INCDIR}; \
3918 ${MKDIR} ${MKDIR_ARG} ${T}${CALC_INCDIR}; \
3919 echo
${CHMOD} 0755 ${T}${CALC_INCDIR}; \
3920 ${CHMOD} 0755 ${T}${CALC_INCDIR}; \
3924 -${Q} if
[ ! -d
${T}${CUSTOMCALDIR} ]; then \
3925 echo
${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMCALDIR}; \
3926 ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMCALDIR}; \
3927 echo
${CHMOD} 0755 ${T}${CUSTOMCALDIR}; \
3928 ${CHMOD} 0755 ${T}${CUSTOMCALDIR}; \
3932 -${Q} if
[ ! -d
${T}${CUSTOMHELPDIR} ]; then \
3933 echo
${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMHELPDIR}; \
3934 ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMHELPDIR}; \
3935 echo
${CHMOD} 0755 ${T}${CUSTOMHELPDIR}; \
3936 ${CHMOD} 0755 ${T}${CUSTOMHELPDIR}; \
3940 -${Q} if
[ ! -d
${T}${CUSTOMINCDIR} ]; then \
3941 echo
${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMINCDIR}; \
3942 ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMINCDIR}; \
3943 echo
${CHMOD} 0755 ${T}${CUSTOMINCDIR}; \
3944 ${CHMOD} 0755 ${T}${CUSTOMINCDIR}; \
3948 -${Q} if
[ ! -d
${T}${SCRIPTDIR} ]; then \
3949 echo
${MKDIR} ${MKDIR_ARG} ${T}${SCRIPTDIR}; \
3950 ${MKDIR} ${MKDIR_ARG} ${T}${SCRIPTDIR}; \
3951 echo
${CHMOD} 0755 ${T}${SCRIPTDIR}; \
3952 ${CHMOD} 0755 ${T}${SCRIPTDIR}; \
3956 -${Q} if
[ ! -z
"${MANDIR}" ]; then \
3957 if
[ ! -d
${T}${MANDIR} ]; then \
3958 echo
${MKDIR} ${MKDIR_ARG} ${T}${MANDIR}; \
3959 ${MKDIR} ${MKDIR_ARG} ${T}${MANDIR}; \
3960 echo
${CHMOD} 0755 ${T}${MANDIR}; \
3961 ${CHMOD} 0755 ${T}${MANDIR}; \
3968 -${Q} if
[ ! -z
"${CATDIR}" ]; then \
3969 if
[ ! -d
${T}${CATDIR} ]; then \
3970 echo
${MKDIR} ${MKDIR_ARG} ${T}${CATDIR}; \
3971 ${MKDIR} ${MKDIR_ARG} ${T}${CATDIR}; \
3972 echo
${CHMOD} 0755 ${T}${CATDIR}; \
3973 ${CHMOD} 0755 ${T}${CATDIR}; \
3980 -${Q} if
${CMP} -s calc
${EXT} ${T}${BINDIR}/calc
${EXT}; then \
3983 ${RM} -f
${T}${BINDIR}/calc.new
${EXT}; \
3984 ${CP} -f calc
${EXT} ${T}${BINDIR}/calc.new
${EXT}; \
3985 ${CHMOD} 0755 ${T}${BINDIR}/calc.new
${EXT}; \
3986 ${MV} -f
${T}${BINDIR}/calc.new
${EXT} ${T}${BINDIR}/calc
${EXT}; \
3987 echo
"installed ${T}${BINDIR}/calc${EXT}"; \
3989 -${Q} if
[ -f calc-static
${EXT} ]; then \
3990 if
${CMP} -s calc-static
${EXT} \
3991 ${T}${BINDIR}/calc-static
${EXT}; then \
3994 ${RM} -f
${T}${BINDIR}/calc-static.new
${EXT}; \
3995 ${CP} -f calc-static
${EXT} \
3996 ${T}${BINDIR}/calc-static.new
${EXT}; \
3997 ${CHMOD} 0755 ${T}${BINDIR}/calc-static.new
${EXT}; \
3998 ${MV} -f
${T}${BINDIR}/calc-static.new
${EXT} \
3999 ${T}${BINDIR}/calc-static
${EXT}; \
4000 echo
"installed ${T}${BINDIR}/calc-static${EXT}"; \
4003 ${V} echo
'=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4004 ${Q} cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} install
4005 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4006 ${V} echo
'=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4007 ${Q} cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} install
4008 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4009 ${V} echo
'=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4010 ${Q} cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} install
4011 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4012 ${V} echo
'=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4013 ${Q} cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} install
4014 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4015 -${Q} if
[ -f libcalc.a
]; then \
4016 if
${CMP} -s libcalc.a
${T}${LIBDIR}/libcalc.a
; then \
4019 ${RM} -f
${T}${LIBDIR}/libcalc.a.new
; \
4020 ${CP} -f libcalc.a
${T}${LIBDIR}/libcalc.a.new
; \
4021 ${CHMOD} 0644 ${T}${LIBDIR}/libcalc.a.new
; \
4022 ${MV} -f
${T}${LIBDIR}/libcalc.a.new
${T}${LIBDIR}/libcalc.a
; \
4023 ${RANLIB} ${T}${LIBDIR}/libcalc.a
; \
4024 echo
"installed ${T}${LIBDIR}/libcalc.a"; \
4027 ${Q}# NOTE: The this makefile installs libcustcalc${LIB_EXT_VERSION}
4028 ${Q}# because we only want to perform one ${LDCONFIG} for both
4029 ${Q}# libcalc${LIB_EXT_VERSION} and libcustcalc${LIB_EXT_VERSION}.
4030 -${Q} if
${CMP} -s libcalc
${LIB_EXT_VERSION} \
4031 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION} && \
4032 ${CMP} -s custom
/libcustcalc
${LIB_EXT_VERSION} \
4033 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}; then \
4036 ${RM} -f
${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}.new
; \
4037 ${CP} -f libcalc
${LIB_EXT_VERSION} \
4038 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}.new
; \
4039 ${CHMOD} 0644 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}.new
; \
4040 ${MV} -f
${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}.new \
4041 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERSION}; \
4042 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4043 ${LN} -f
-s libcalc
${LIB_EXT_VERSION} \
4044 ${T}${LIBDIR}/libcalc
${LIB_EXT_VERS}; \
4045 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4046 ${LN} -f
-s libcalc
${LIB_EXT_VERSION} \
4047 ${T}${LIBDIR}/libcalc
${LIB_EXT_VER}; \
4048 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4049 ${LN} -f
-s libcalc
${LIB_EXT_VERSION} \
4050 ${T}${LIBDIR}/libcalc
${LIB_EXT_VE}; \
4051 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4052 ${LN} -f
-s libcalc
${LIB_EXT_VERSION} \
4053 ${T}${LIBDIR}/libcalc
${LIB_EXT}; \
4054 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4055 ${RM} -f
${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}.new
; \
4056 ${CP} -f custom
/libcustcalc
${LIB_EXT_VERSION} \
4057 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}.new
; \
4058 ${CHMOD} 0644 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}.new
; \
4059 ${MV} -f
${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}.new \
4060 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERSION}; \
4061 echo
"installed ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}"; \
4062 ${LN} -f
-s libcustcalc
${LIB_EXT_VERSION} \
4063 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VERS}; \
4064 echo
"installed ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4065 ${LN} -f
-s libcustcalc
${LIB_EXT_VERSION} \
4066 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VER}; \
4067 echo
"installed ${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4068 ${LN} -f
-s libcustcalc
${LIB_EXT_VERSION} \
4069 ${T}${LIBDIR}/libcustcalc
${LIB_EXT_VE}; \
4070 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4071 ${LN} -f
-s libcustcalc
${LIB_EXT_VERSION} \
4072 ${T}${LIBDIR}/libcustcalc
${LIB_EXT}; \
4073 echo
"installed ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4074 if
[ -z
"${T}" -o
"/" = "${T}" ]; then \
4075 if
[ ! -z
"${LDCONFIG}" ]; then \
4076 echo
"running ${LDCONFIG}"; \
4078 echo
"finished ${LDCONFIG}"; \
4082 -${Q} for i in
${LIB_H_SRC} ${BUILD_H_SRC} /dev
/null
; do \
4083 if
[ "$$i" = "/dev/null" ]; then \
4087 ${SED} -e
's/^\(#[ ]*include[ ][ ]*\)"/\1"calc\//' \
4089 if
${CMP} -s tmp
${T}${CALC_INCDIR}/$$i; then \
4092 ${RM} -f
${T}${CALC_INCDIR}/$$i.new
; \
4093 ${CP} -f tmp
${T}${CALC_INCDIR}/$$i.new
; \
4094 ${CHMOD} 0444 ${T}${CALC_INCDIR}/$$i.new
; \
4095 ${MV} -f
${T}${CALC_INCDIR}/$$i.new
${T}${CALC_INCDIR}/$$i; \
4096 echo
"installed ${T}${CALC_INCDIR}/$$i"; \
4098 if
[ -f
"${T}${CALC_INCDIR}/std_arg.h" ]; then \
4099 ${RM} -f
${T}${CALC_INCDIR}/std_arg.h
; \
4100 echo
"removed old ${T}${CALC_INCDIR}/std_arg.h"; \
4102 if
[ -f
"${T}${CALC_INCDIR}/win32dll.h" ]; then \
4103 ${RM} -f
${T}${CALC_INCDIR}/win32dll.h
; \
4104 echo
"removed old ${T}${CALC_INCDIR}/win32dll.h"; \
4106 if
[ -f
"${T}${CALC_INCDIR}/have_malloc.h" ]; then \
4107 ${RM} -f
${T}${CALC_INCDIR}/have_malloc.h
; \
4108 echo
"removed old ${T}${CALC_INCDIR}/have_malloc.h"; \
4110 if
[ -f
"${T}${CALC_INCDIR}/math_error.h" ]; then \
4111 ${RM} -f
${T}${CALC_INCDIR}/math_error.h
; \
4112 echo
"removed old ${T}${CALC_INCDIR}/math_error.h"; \
4114 if
[ -f
"${T}${CALC_INCDIR}/string.h" ]; then \
4115 ${RM} -f
${T}${CALC_INCDIR}/string.h
; \
4116 echo
"removed old ${T}${CALC_INCDIR}/string.h"; \
4119 -${Q} if
[ -z
"${MANDIR}" ]; then \
4122 if
${CMP} -s calc
.1 ${T}${MANDIR}/calc.
${MANEXT}; then \
4125 ${RM} -f
${T}${MANDIR}/calc.
${MANEXT}.new
; \
4126 ${CP} -f calc
.1 ${T}${MANDIR}/calc.
${MANEXT}.new
; \
4127 ${CHMOD} 0444 ${T}${MANDIR}/calc.
${MANEXT}.new
; \
4128 ${MV} -f
${T}${MANDIR}/calc.
${MANEXT}.new \
4129 ${T}${MANDIR}/calc.
${MANEXT}; \
4130 echo
"installed ${T}${MANDIR}/calc.${MANEXT}"; \
4133 -${Q} if
[ -z
"${CATDIR}" ]; then \
4136 if
${CMP} -s calc
.1 ${T}${MANDIR}/calc.
${MANEXT}; then \
4139 if
[ -z
"${NROFF}" ]; then \
4140 echo
"${MANMAKE} calc.1 ${T}${CATDIR}"; \
4141 ${MANMAKE} calc
.1 ${T}${CATDIR}; \
4143 ${RM} -f
${T}${CATDIR}/calc.
${CATEXT}.new
; \
4144 ${NROFF} ${NROFF_ARG} calc
.1 > \
4145 ${T}${CATDIR}/calc.
${CATEXT}.new
; \
4146 ${CHMOD} ${MANMODE} ${T}${MANDIR}/calc.
${CATEXT}.new
; \
4147 ${MV} -f
${T}${CATDIR}/calc.
${CATEXT}.new \
4148 ${T}${CATDIR}/calc.
${CATEXT}; \
4149 echo
"installed ${T}${CATDIR}/calc.${CATEXT}"; \
4153 ${V} # NOTE: misc install cleanup
4155 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4157 # Try to remove everything that was installed
4159 # NOTE: Keep the uninstall rule in reverse order to the install rule
4161 uninstall: custom
/Makefile
4162 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4163 -${Q} if
[ -z
"${CATDIR}" ]; then \
4166 if
[ -f
"${T}${CATDIR}/calc.${CATEXT}" ]; then \
4167 ${RM} -f
"${T}${CATDIR}/calc.${CATEXT}"; \
4168 if
[ -f
"${T}${CATDIR}/calc.${CATEXT}" ]; then \
4169 echo
"cannot uninstall ${T}${CATDIR}/calc.${CATEXT}"; \
4171 echo
"uninstalled ${T}${CATDIR}/calc.${CATEXT}"; \
4175 -${Q} if
[ -z
"${MANDIR}" ]; then \
4178 if
[ -f
"${T}${MANDIR}/calc.${MANEXT}" ]; then \
4179 ${RM} -f
"${T}${MANDIR}/calc.${MANEXT}"; \
4180 if
[ -f
"${T}${MANDIR}/calc.${MANEXT}" ]; then \
4181 echo
"cannot uninstall ${T}${MANDIR}/calc.${MANEXT}"; \
4183 echo
"uninstalled ${T}${MANDIR}/calc.${MANEXT}"; \
4187 -${Q} for i in
${BUILD_H_SRC} ${LIB_H_SRC} /dev
/null
; do \
4188 if
[ "$$i" = "/dev/null" ]; then \
4191 if
[ -f
"${T}${CALC_INCDIR}/$$i" ]; then \
4192 ${RM} -f
"${T}${CALC_INCDIR}/$$i"; \
4193 if
[ -f
"${T}${CALC_INCDIR}/$$i" ]; then \
4194 echo
"cannot uninstall ${T}${CALC_INCDIR}/$$i"; \
4196 echo
"uninstalled ${T}${CALC_INCDIR}/$$i"; \
4200 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT}" ]; then \
4201 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT}"; \
4202 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT}" ]; then \
4203 echo
"cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT}"; \
4205 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT}"; \
4208 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}" ]; then \
4209 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}"; \
4210 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}" ]; then \
4211 echo
"cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}";\
4213 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}"; \
4216 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}" ]; then \
4217 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4218 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}" ]; then \
4219 echo
-n
"cannot uninstall "; \
4220 echo
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4222 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4225 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}" ]; then \
4226 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4227 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}" ]; then \
4229 "cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4231 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4234 -${Q} if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}" ]; then \
4235 ${RM} -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}"; \
4236 if
[ -f
"${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}" ]; then \
4238 "cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}";\
4240 echo
"uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}";\
4243 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT}" ]; then \
4244 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4245 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT}" ]; then \
4246 echo
"cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4248 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4251 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VE}" ]; then \
4252 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4253 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VE}" ]; then \
4254 echo
"cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4256 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4259 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VER}" ]; then \
4260 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4261 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VER}" ]; then \
4262 echo
"cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4264 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4267 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERS}" ]; then \
4268 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4269 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERS}" ]; then \
4270 echo
"cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4272 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4275 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}" ]; then \
4276 ${RM} -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4277 if
[ -f
"${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}" ]; then \
4278 echo
-n
"cannot uninstall " \
4279 echo
"${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4281 echo
"uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4284 -${Q} if
[ -z
"${T}" -o
"/" = "${T}" ]; then \
4285 if
[ ! -z
"${LDCONFIG}" ]; then \
4286 echo
"running ${LDCONFIG}"; \
4288 echo
"finished ${LDCONFIG}"; \
4291 -${Q} if
[ -f
"${T}${LIBDIR}/libcalc.a" ]; then \
4292 ${RM} -f
"${T}${LIBDIR}/libcalc.a"; \
4293 if
[ -f
"${T}${LIBDIR}/libcalc.a" ]; then \
4294 echo
"cannot uninstall ${T}${LIBDIR}/libcalc.a"; \
4296 echo
"uninstalled ${T}${LIBDIR}/libcalc.a"; \
4299 ${V} echo
'=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4300 ${Q} cd cscript
; ${MAKE} -f Makefile
${CSCRIPT_PASSDOWN} uninstall
4301 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4302 ${V} echo
'=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4303 ${Q} cd custom
; ${MAKE} -f Makefile.simple
${CUSTOM_PASSDOWN} uninstall
4304 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4305 ${V} echo
'=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4306 ${Q} cd cal
; ${MAKE} -f Makefile
${CAL_PASSDOWN} uninstall
4307 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4308 ${V} echo
'=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4309 ${Q} cd help
; ${MAKE} -f Makefile
${HELP_PASSDOWN} uninstall
4310 ${V} echo
'=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4311 -${Q} if
[ -f
"${T}${BINDIR}/calc-static${EXT}" ]; then \
4312 ${RM} -f
"${T}${BINDIR}/calc-static${EXT}"; \
4313 if
[ -f
"${T}${BINDIR}/calc-static${EXT}" ]; then \
4314 echo
"cannot uninstall ${T}${BINDIR}/calc-static${EXT}"; \
4316 echo
"uninstalled ${T}${BINDIR}/calc-static${EXT}"; \
4319 -${Q} if
[ -f
"${T}${BINDIR}/calc${EXT}" ]; then \
4320 ${RM} -f
"${T}${BINDIR}/calc${EXT}"; \
4321 if
[ -f
"${T}${BINDIR}/calc${EXT}" ]; then \
4322 echo
"cannot uninstall ${T}${BINDIR}/calc${EXT}"; \
4324 echo
"uninstalled ${T}${BINDIR}/calc${EXT}"; \
4327 -${Q} for i in
${CATDIR} ${MANDIR} ${SCRIPTDIR} \
4328 ${CUSTOMINCDIR} ${CUSTOMHELPDIR} ${CUSTOMCALDIR} \
4329 ${CALC_INCDIR} ${LIBDIR} ${INCDIR} ${BINDIR}; do \
4330 if
[ -d
"${T}$$i" ]; then \
4331 ${RMDIR} "${T}$$i" 2>/dev
/null
; \
4332 echo
"cleaned up ${T}$$i"; \
4335 -${Q} if
[ ! -z
"${T}" ]; then \
4336 if
[ -d
"${T}" ]; then \
4337 ${RMDIR} "${T}" 2>/dev
/null
; \
4338 echo
"cleaned up ${T}"; \
4341 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4343 # splint - A tool for statically checking C programs
4346 ${SPLINT} ${SPLINT_OPTS} -DCALC_SRC
-I. \
4347 ${CALCSRC} ${LIBSRC} ${BUILD_C_SRC} ${UTIL_C_SRC}
4349 # strip - for reducing the size of the binary files
4352 ${V} echo
'=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4353 ${Q} for i in
${UTIL_PROGS} ${SAMPLE_TARGETS} ${SAMPLE_STATIC_TARGETS} \
4354 calc
${EXT} calc-static
${EXT} ${CALC_DYNAMIC_LIBS} \
4355 ${CALC_STATIC_LIBS}; do \
4356 if
[ -s
"$$i" -a
-w
"$$i" ]; then \
4358 echo
"stripped $$i"; \
4361 ${V} echo
'=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4363 # calc-symlink - setup symlinks from stardard locations into the ${T} tree
4366 ${Q}if
[ -z
"${T}" ]; then \
4367 echo
"cannot use $@ make rule when T make var is empty" 1>&2; \
4368 echo
"aborting" 1>&2; \
4371 -${Q} for i in
${BINDIR}/calc
${EXT} \
4372 ${BINDIR}/calc-static
${EXT} \
4374 ${LIBDIR}/libcalc
${LIB_EXT_VERSION} \
4375 ${LIBDIR}/libcustcalc
${LIB_EXT_VERSION} \
4376 ${MANDIR}/calc.
${MANEXT} \
4380 if
[ -e
"${T}$$i" ]; then \
4381 if
[ ! -L
"$$i" -a
"${T}$$i" -ef
"$$i" ]; then \
4382 echo
"ERROR: ${T}$$i is the same as $$i" 1>&2; \
4384 if
[ -e
"$$i" ]; then \
4385 echo
${RM} -f
"$$i"; \
4388 echo
${LN} -s
"${T}$$i" "$$i"; \
4389 ${LN} -s
"${T}$$i" "$$i"; \
4392 echo
"Warning: not found: ${T}$$i" 1>&2; \
4395 -${Q} if
[ -n
"${CATDIR}" ]; then \
4396 if
[ -e
"${T}${CATDIR}/calc.${CATEXT}" ]; then \
4397 if
[ ! -L
"${CATDIR}/calc.${CATEXT}" -a \
4398 "${T}${CATDIR}/calc.${CATEXT}" -ef \
4399 "${CATDIR}/calc.${CATEXT}" ]; then \
4400 echo
-n
"ERROR: ${T}${CATDIR}/calc.${CATEXT}" 2>&1; \
4401 echo
"is the same as ${CATDIR}/calc.${CATEXT}" 1>&2; \
4403 if
[ -e
"${CATDIR}/calc.${CATEXT}" ]; then \
4404 echo
${RM} -f
"${CATDIR}/calc.${CATEXT}"; \
4405 ${RM} -f
"${CATDIR}/calc.${CATEXT}"; \
4407 echo
${LN} -s
"${T}${CATDIR}/calc.${CATEXT}" \
4408 "${CATDIR}/calc.${CATEXT}"; \
4409 ${LN} -s
"${T}${CATDIR}/calc.${CATEXT}" \
4410 "${CATDIR}/calc.${CATEXT}"; \
4415 # remove any symlinks that may have been created by calc-symlink
4418 -${Q} for i in
${BINDIR}/calc
${EXT} \
4419 ${BINDIR}/calc-static
${EXT} \
4421 ${LIBDIR}/libcalc
${LIB_EXT_VERSION} \
4422 ${LIBDIR}/libcustcalc
${LIB_EXT_VERSION} \
4423 ${MANDIR}/calc.
${MANEXT} \
4427 if
[ -L
"$$i" ]; then \
4428 echo
${RM} -f
"$$i"; \
4431 echo
"Warning: ignoring non-symlink: $$i" 1>&2; \
4434 -${Q} if
[ -n
"${CATDIR}" ]; then \
4435 if
[ -L
"${CATDIR}/calc.${CATEXT}" ]; then \
4436 echo
${RM} -f
"${CATDIR}/calc.${CATEXT}"; \
4437 ${RM} -f
"${CATDIR}/calc.${CATEXT}"; \
4439 echo
"Warning: ignoring non-symlink: ${CATDIR}/calc.${CATEXT}" \
4450 # DO NOT DELETE THIS LINE -- make depend depends on it.
4461 addop.o
: endian_calc.h
4464 addop.o
: have_const.h
4465 addop.o
: have_memmv.h
4466 addop.o
: have_newstr.h
4467 addop.o
: have_stdlib.h
4468 addop.o
: have_string.h
4480 align32.o
: align32.c
4481 align32.o
: have_unistd.h
4482 align32.o
: longbits.h
4483 assocfunc.o
: alloc.h
4484 assocfunc.o
: assocfunc.c
4485 assocfunc.o
: block.h
4486 assocfunc.o
: byteswap.h
4487 assocfunc.o
: calcerr.h
4488 assocfunc.o
: cmath.h
4489 assocfunc.o
: config.h
4491 assocfunc.o
: endian_calc.h
4493 assocfunc.o
: have_const.h
4494 assocfunc.o
: have_memmv.h
4495 assocfunc.o
: have_newstr.h
4496 assocfunc.o
: have_stdlib.h
4497 assocfunc.o
: have_string.h
4498 assocfunc.o
: longbits.h
4499 assocfunc.o
: nametype.h
4500 assocfunc.o
: qmath.h
4503 assocfunc.o
: value.h
4504 assocfunc.o
: zmath.h
4509 blkcpy.o
: byteswap.h
4515 blkcpy.o
: endian_calc.h
4518 blkcpy.o
: have_const.h
4519 blkcpy.o
: have_fpos.h
4520 blkcpy.o
: have_memmv.h
4521 blkcpy.o
: have_newstr.h
4522 blkcpy.o
: have_stdlib.h
4523 blkcpy.o
: have_string.h
4524 blkcpy.o
: longbits.h
4525 blkcpy.o
: nametype.h
4539 block.o
: endian_calc.h
4541 block.o
: have_const.h
4542 block.o
: have_memmv.h
4543 block.o
: have_newstr.h
4544 block.o
: have_stdlib.h
4545 block.o
: have_string.h
4554 byteswap.o
: byteswap.c
4555 byteswap.o
: byteswap.h
4558 byteswap.o
: endian_calc.h
4559 byteswap.o
: have_const.h
4560 byteswap.o
: have_memmv.h
4561 byteswap.o
: have_newstr.h
4562 byteswap.o
: have_stdlib.h
4563 byteswap.o
: have_string.h
4564 byteswap.o
: longbits.h
4579 calc.o
: endian_calc.h
4582 calc.o
: have_const.h
4583 calc.o
: have_memmv.h
4584 calc.o
: have_newstr.h
4585 calc.o
: have_stdlib.h
4586 calc.o
: have_strdup.h
4587 calc.o
: have_string.h
4588 calc.o
: have_uid_t.h
4589 calc.o
: have_unistd.h
4590 calc.o
: have_unused.h
4604 calcerr.o
: calcerr.c
4605 calcerr.o
: calcerr.h
4606 calcerr.o
: have_const.h
4609 codegen.o
: byteswap.h
4611 codegen.o
: calcerr.h
4613 codegen.o
: codegen.c
4617 codegen.o
: endian_calc.h
4620 codegen.o
: have_const.h
4621 codegen.o
: have_memmv.h
4622 codegen.o
: have_newstr.h
4623 codegen.o
: have_stdlib.h
4624 codegen.o
: have_string.h
4625 codegen.o
: have_unistd.h
4627 codegen.o
: lib_calc.h
4628 codegen.o
: longbits.h
4629 codegen.o
: nametype.h
4630 codegen.o
: opcodes.h
4639 comfunc.o
: byteswap.h
4641 comfunc.o
: comfunc.c
4644 comfunc.o
: endian_calc.h
4645 comfunc.o
: have_const.h
4646 comfunc.o
: have_memmv.h
4647 comfunc.o
: have_newstr.h
4648 comfunc.o
: have_stdlib.h
4649 comfunc.o
: have_string.h
4650 comfunc.o
: longbits.h
4651 comfunc.o
: nametype.h
4655 commath.o
: byteswap.h
4657 commath.o
: commath.c
4659 commath.o
: endian_calc.h
4660 commath.o
: have_const.h
4661 commath.o
: have_memmv.h
4662 commath.o
: have_newstr.h
4663 commath.o
: have_stdlib.h
4664 commath.o
: have_string.h
4665 commath.o
: longbits.h
4670 config.o
: byteswap.h
4678 config.o
: endian_calc.h
4680 config.o
: have_const.h
4681 config.o
: have_memmv.h
4682 config.o
: have_newstr.h
4683 config.o
: have_stdlib.h
4684 config.o
: have_strdup.h
4685 config.o
: have_string.h
4686 config.o
: have_times.h
4687 config.o
: longbits.h
4688 config.o
: nametype.h
4705 const.o
: endian_calc.h
4707 const.o
: have_const.h
4708 const.o
: have_memmv.h
4709 const.o
: have_newstr.h
4710 const.o
: have_stdlib.h
4711 const.o
: have_string.h
4721 custom.o
: byteswap.h
4729 custom.o
: endian_calc.h
4731 custom.o
: have_const.h
4732 custom.o
: have_memmv.h
4733 custom.o
: have_newstr.h
4734 custom.o
: have_stdlib.h
4735 custom.o
: have_string.h
4736 custom.o
: longbits.h
4737 custom.o
: nametype.h
4744 endian.o
: have_stdlib.h
4745 endian.o
: have_unistd.h
4754 file.o
: endian_calc.h
4759 file.o
: have_const.h
4761 file.o
: have_fpos_pos.h
4762 file.o
: have_memmv.h
4763 file.o
: have_newstr.h
4764 file.o
: have_stdlib.h
4765 file.o
: have_string.h
4766 file.o
: have_unistd.h
4774 fposval.o
: endian_calc.h
4775 fposval.o
: fposval.c
4776 fposval.o
: have_fpos.h
4777 fposval.o
: have_fpos_pos.h
4778 fposval.o
: have_offscl.h
4779 fposval.o
: have_posscl.h
4789 func.o
: endian_calc.h
4794 func.o
: have_const.h
4796 func.o
: have_memmv.h
4797 func.o
: have_newstr.h
4798 func.o
: have_rusage.h
4799 func.o
: have_stdlib.h
4800 func.o
: have_strdup.h
4801 func.o
: have_string.h
4802 func.o
: have_times.h
4803 func.o
: have_unistd.h
4804 func.o
: have_unused.h
4827 hash.o
: endian_calc.h
4830 hash.o
: have_const.h
4831 hash.o
: have_memmv.h
4832 hash.o
: have_newstr.h
4833 hash.o
: have_stdlib.h
4834 hash.o
: have_string.h
4844 have_const.o
: have_const.c
4845 have_fpos.o
: have_fpos.c
4846 have_fpos_pos.o
: have_fpos.h
4847 have_fpos_pos.o
: have_fpos_pos.c
4848 have_fpos_pos.o
: have_posscl.h
4849 have_getpgid.o
: have_getpgid.c
4850 have_getprid.o
: have_getprid.c
4851 have_getsid.o
: have_getsid.c
4852 have_gettime.o
: have_gettime.c
4853 have_memmv.o
: have_memmv.c
4854 have_newstr.o
: have_newstr.c
4855 have_offscl.o
: have_offscl.c
4856 have_posscl.o
: have_fpos.h
4857 have_posscl.o
: have_posscl.c
4858 have_rusage.o
: have_rusage.c
4859 have_stdvs.o
: have_stdvs.c
4860 have_stdvs.o
: have_string.h
4861 have_stdvs.o
: have_unistd.h
4862 have_strdup.o
: have_strdup.c
4863 have_uid_t.o
: have_uid_t.c
4864 have_uid_t.o
: have_unistd.h
4865 have_unused.o
: have_unused.c
4866 have_ustat.o
: have_ustat.c
4867 have_varvs.o
: have_string.h
4868 have_varvs.o
: have_unistd.h
4869 have_varvs.o
: have_varvs.c
4879 help.o
: endian_calc.h
4881 help.o
: have_const.h
4882 help.o
: have_memmv.h
4883 help.o
: have_newstr.h
4884 help.o
: have_stdlib.h
4885 help.o
: have_string.h
4886 help.o
: have_unistd.h
4903 hist.o
: endian_calc.h
4905 hist.o
: have_const.h
4906 hist.o
: have_memmv.h
4907 hist.o
: have_newstr.h
4908 hist.o
: have_stdlib.h
4909 hist.o
: have_strdup.h
4910 hist.o
: have_string.h
4911 hist.o
: have_unistd.h
4912 hist.o
: have_unused.h
4931 input.o
: endian_calc.h
4933 input.o
: have_const.h
4934 input.o
: have_memmv.h
4935 input.o
: have_newstr.h
4936 input.o
: have_stdlib.h
4937 input.o
: have_string.h
4938 input.o
: have_unistd.h
4949 jump.o
: have_const.h
4960 label.o
: endian_calc.h
4963 label.o
: have_const.h
4964 label.o
: have_memmv.h
4965 label.o
: have_newstr.h
4966 label.o
: have_stdlib.h
4967 label.o
: have_string.h
4981 lib_calc.o
: byteswap.h
4983 lib_calc.o
: calcerr.h
4986 lib_calc.o
: config.h
4987 lib_calc.o
: custom.h
4989 lib_calc.o
: endian_calc.h
4992 lib_calc.o
: have_const.h
4993 lib_calc.o
: have_memmv.h
4994 lib_calc.o
: have_newstr.h
4995 lib_calc.o
: have_stdlib.h
4996 lib_calc.o
: have_strdup.h
4997 lib_calc.o
: have_string.h
4998 lib_calc.o
: have_unistd.h
5000 lib_calc.o
: lib_calc.c
5001 lib_calc.o
: lib_calc.h
5002 lib_calc.o
: longbits.h
5003 lib_calc.o
: nametype.h
5007 lib_calc.o
: symbol.h
5008 lib_calc.o
: terminal.h
5012 lib_calc.o
: zrandom.h
5014 lib_util.o
: byteswap.h
5016 lib_util.o
: endian_calc.h
5017 lib_util.o
: have_const.h
5018 lib_util.o
: have_memmv.h
5019 lib_util.o
: have_newstr.h
5020 lib_util.o
: have_stdlib.h
5021 lib_util.o
: have_string.h
5022 lib_util.o
: lib_util.c
5023 lib_util.o
: lib_util.h
5024 lib_util.o
: longbits.h
5028 listfunc.o
: byteswap.h
5029 listfunc.o
: calcerr.h
5031 listfunc.o
: config.h
5033 listfunc.o
: endian_calc.h
5035 listfunc.o
: have_const.h
5036 listfunc.o
: have_memmv.h
5037 listfunc.o
: have_newstr.h
5038 listfunc.o
: have_stdlib.h
5039 listfunc.o
: have_string.h
5040 listfunc.o
: listfunc.c
5041 listfunc.o
: longbits.h
5042 listfunc.o
: nametype.h
5049 longbits.o
: have_stdlib.h
5050 longbits.o
: have_unistd.h
5051 longbits.o
: longbits.c
5054 matfunc.o
: byteswap.h
5055 matfunc.o
: calcerr.h
5059 matfunc.o
: endian_calc.h
5061 matfunc.o
: have_const.h
5062 matfunc.o
: have_memmv.h
5063 matfunc.o
: have_newstr.h
5064 matfunc.o
: have_stdlib.h
5065 matfunc.o
: have_string.h
5066 matfunc.o
: have_unused.h
5067 matfunc.o
: longbits.h
5068 matfunc.o
: matfunc.c
5069 matfunc.o
: nametype.h
5076 math_error.o
: alloc.h
5077 math_error.o
: args.h
5078 math_error.o
: block.h
5079 math_error.o
: byteswap.h
5080 math_error.o
: calc.h
5081 math_error.o
: calcerr.h
5082 math_error.o
: cmath.h
5083 math_error.o
: config.h
5084 math_error.o
: decl.h
5085 math_error.o
: endian_calc.h
5086 math_error.o
: hash.h
5087 math_error.o
: have_const.h
5088 math_error.o
: have_memmv.h
5089 math_error.o
: have_newstr.h
5090 math_error.o
: have_stdlib.h
5091 math_error.o
: have_string.h
5092 math_error.o
: lib_calc.h
5093 math_error.o
: longbits.h
5094 math_error.o
: math_error.c
5095 math_error.o
: nametype.h
5096 math_error.o
: qmath.h
5097 math_error.o
: sha1.h
5099 math_error.o
: value.h
5100 math_error.o
: zmath.h
5101 no_implicit.o
: no_implicit.c
5110 obj.o
: endian_calc.h
5115 obj.o
: have_newstr.h
5116 obj.o
: have_stdlib.h
5117 obj.o
: have_string.h
5131 opcodes.o
: byteswap.h
5133 opcodes.o
: calcerr.h
5138 opcodes.o
: endian_calc.h
5142 opcodes.o
: have_const.h
5143 opcodes.o
: have_fpos.h
5144 opcodes.o
: have_memmv.h
5145 opcodes.o
: have_newstr.h
5146 opcodes.o
: have_stdlib.h
5147 opcodes.o
: have_string.h
5148 opcodes.o
: have_unused.h
5151 opcodes.o
: lib_calc.h
5152 opcodes.o
: longbits.h
5153 opcodes.o
: nametype.h
5154 opcodes.o
: opcodes.c
5155 opcodes.o
: opcodes.h
5163 opcodes.o
: zrandom.h
5167 pix.o
: endian_calc.h
5170 pix.o
: have_newstr.h
5171 pix.o
: have_stdlib.h
5172 pix.o
: have_string.h
5185 poly.o
: endian_calc.h
5187 poly.o
: have_const.h
5188 poly.o
: have_memmv.h
5189 poly.o
: have_newstr.h
5190 poly.o
: have_stdlib.h
5191 poly.o
: have_string.h
5203 prime.o
: endian_calc.h
5204 prime.o
: have_const.h
5205 prime.o
: have_memmv.h
5206 prime.o
: have_newstr.h
5207 prime.o
: have_stdlib.h
5208 prime.o
: have_string.h
5219 qfunc.o
: endian_calc.h
5220 qfunc.o
: have_const.h
5221 qfunc.o
: have_memmv.h
5222 qfunc.o
: have_newstr.h
5223 qfunc.o
: have_stdlib.h
5224 qfunc.o
: have_string.h
5236 qio.o
: endian_calc.h
5239 qio.o
: have_newstr.h
5240 qio.o
: have_stdlib.h
5241 qio.o
: have_string.h
5242 qio.o
: have_unused.h
5252 qmath.o
: endian_calc.h
5253 qmath.o
: have_const.h
5254 qmath.o
: have_memmv.h
5255 qmath.o
: have_newstr.h
5256 qmath.o
: have_stdlib.h
5257 qmath.o
: have_string.h
5267 qmod.o
: endian_calc.h
5268 qmod.o
: have_const.h
5269 qmod.o
: have_memmv.h
5270 qmod.o
: have_newstr.h
5271 qmod.o
: have_stdlib.h
5272 qmod.o
: have_string.h
5279 qtrans.o
: byteswap.h
5281 qtrans.o
: endian_calc.h
5282 qtrans.o
: have_const.h
5283 qtrans.o
: have_memmv.h
5284 qtrans.o
: have_newstr.h
5285 qtrans.o
: have_stdlib.h
5286 qtrans.o
: have_string.h
5287 qtrans.o
: longbits.h
5291 quickhash.o
: alloc.h
5292 quickhash.o
: block.h
5293 quickhash.o
: byteswap.h
5294 quickhash.o
: calcerr.h
5295 quickhash.o
: cmath.h
5296 quickhash.o
: config.h
5298 quickhash.o
: endian_calc.h
5300 quickhash.o
: have_const.h
5301 quickhash.o
: have_memmv.h
5302 quickhash.o
: have_newstr.h
5303 quickhash.o
: have_stdlib.h
5304 quickhash.o
: have_string.h
5305 quickhash.o
: longbits.h
5306 quickhash.o
: nametype.h
5307 quickhash.o
: qmath.h
5308 quickhash.o
: quickhash.c
5311 quickhash.o
: value.h
5312 quickhash.o
: zmath.h
5313 quickhash.o
: zrand.h
5314 quickhash.o
: zrandom.h
5315 sample_many.o
: alloc.h
5316 sample_many.o
: block.h
5317 sample_many.o
: byteswap.h
5318 sample_many.o
: calc.h
5319 sample_many.o
: calcerr.h
5320 sample_many.o
: cmath.h
5321 sample_many.o
: config.h
5322 sample_many.o
: decl.h
5323 sample_many.o
: endian_calc.h
5324 sample_many.o
: hash.h
5325 sample_many.o
: have_const.h
5326 sample_many.o
: have_memmv.h
5327 sample_many.o
: have_newstr.h
5328 sample_many.o
: have_stdlib.h
5329 sample_many.o
: have_string.h
5330 sample_many.o
: lib_util.h
5331 sample_many.o
: longbits.h
5332 sample_many.o
: nametype.h
5333 sample_many.o
: qmath.h
5334 sample_many.o
: sample_many.c
5335 sample_many.o
: sha1.h
5336 sample_many.o
: str.h
5337 sample_many.o
: value.h
5338 sample_many.o
: zmath.h
5339 sample_many.o
: zrandom.h
5340 sample_rand.o
: alloc.h
5341 sample_rand.o
: block.h
5342 sample_rand.o
: byteswap.h
5343 sample_rand.o
: calc.h
5344 sample_rand.o
: calcerr.h
5345 sample_rand.o
: cmath.h
5346 sample_rand.o
: config.h
5347 sample_rand.o
: decl.h
5348 sample_rand.o
: endian_calc.h
5349 sample_rand.o
: hash.h
5350 sample_rand.o
: have_const.h
5351 sample_rand.o
: have_memmv.h
5352 sample_rand.o
: have_newstr.h
5353 sample_rand.o
: have_stdlib.h
5354 sample_rand.o
: have_string.h
5355 sample_rand.o
: lib_util.h
5356 sample_rand.o
: longbits.h
5357 sample_rand.o
: nametype.h
5358 sample_rand.o
: qmath.h
5359 sample_rand.o
: sample_rand.c
5360 sample_rand.o
: sha1.h
5361 sample_rand.o
: str.h
5362 sample_rand.o
: value.h
5363 sample_rand.o
: zmath.h
5364 sample_rand.o
: zrandom.h
5368 seed.o
: endian_calc.h
5369 seed.o
: have_const.h
5370 seed.o
: have_getpgid.h
5371 seed.o
: have_getprid.h
5372 seed.o
: have_getsid.h
5373 seed.o
: have_gettime.h
5374 seed.o
: have_memmv.h
5375 seed.o
: have_newstr.h
5376 seed.o
: have_rusage.h
5377 seed.o
: have_stdlib.h
5378 seed.o
: have_string.h
5379 seed.o
: have_times.h
5380 seed.o
: have_uid_t.h
5381 seed.o
: have_unistd.h
5382 seed.o
: have_urandom.h
5383 seed.o
: have_ustat.h
5396 sha1.o
: endian_calc.h
5398 sha1.o
: have_const.h
5399 sha1.o
: have_memmv.h
5400 sha1.o
: have_newstr.h
5401 sha1.o
: have_stdlib.h
5402 sha1.o
: have_string.h
5418 size.o
: endian_calc.h
5420 size.o
: have_const.h
5421 size.o
: have_memmv.h
5422 size.o
: have_newstr.h
5423 size.o
: have_stdlib.h
5424 size.o
: have_string.h
5443 str.o
: endian_calc.h
5447 str.o
: have_newstr.h
5448 str.o
: have_stdlib.h
5449 str.o
: have_string.h
5460 symbol.o
: byteswap.h
5466 symbol.o
: endian_calc.h
5469 symbol.o
: have_const.h
5470 symbol.o
: have_memmv.h
5471 symbol.o
: have_newstr.h
5472 symbol.o
: have_stdlib.h
5473 symbol.o
: have_string.h
5475 symbol.o
: longbits.h
5476 symbol.o
: nametype.h
5495 token.o
: endian_calc.h
5497 token.o
: have_const.h
5498 token.o
: have_memmv.h
5499 token.o
: have_newstr.h
5500 token.o
: have_stdlib.h
5501 token.o
: have_string.h
5520 value.o
: endian_calc.h
5524 value.o
: have_const.h
5525 value.o
: have_fpos.h
5526 value.o
: have_memmv.h
5527 value.o
: have_newstr.h
5528 value.o
: have_stdlib.h
5529 value.o
: have_string.h
5545 version.o
: byteswap.h
5547 version.o
: calcerr.h
5551 version.o
: endian_calc.h
5553 version.o
: have_const.h
5554 version.o
: have_memmv.h
5555 version.o
: have_newstr.h
5556 version.o
: have_stdlib.h
5557 version.o
: have_string.h
5558 version.o
: have_unused.h
5559 version.o
: longbits.h
5560 version.o
: nametype.h
5565 version.o
: version.c
5570 zfunc.o
: endian_calc.h
5571 zfunc.o
: have_const.h
5572 zfunc.o
: have_memmv.h
5573 zfunc.o
: have_newstr.h
5574 zfunc.o
: have_stdlib.h
5575 zfunc.o
: have_string.h
5584 zio.o
: endian_calc.h
5587 zio.o
: have_newstr.h
5588 zio.o
: have_stdlib.h
5589 zio.o
: have_string.h
5598 zmath.o
: endian_calc.h
5599 zmath.o
: have_const.h
5600 zmath.o
: have_memmv.h
5601 zmath.o
: have_newstr.h
5602 zmath.o
: have_stdlib.h
5603 zmath.o
: have_string.h
5611 zmod.o
: endian_calc.h
5612 zmod.o
: have_const.h
5613 zmod.o
: have_memmv.h
5614 zmod.o
: have_newstr.h
5615 zmod.o
: have_stdlib.h
5616 zmod.o
: have_string.h
5626 zmul.o
: endian_calc.h
5627 zmul.o
: have_const.h
5628 zmul.o
: have_memmv.h
5629 zmul.o
: have_newstr.h
5630 zmul.o
: have_stdlib.h
5631 zmul.o
: have_string.h
5639 zprime.o
: byteswap.h
5644 zprime.o
: endian_calc.h
5646 zprime.o
: have_const.h
5647 zprime.o
: have_memmv.h
5648 zprime.o
: have_newstr.h
5649 zprime.o
: have_stdlib.h
5650 zprime.o
: have_string.h
5652 zprime.o
: longbits.h
5653 zprime.o
: nametype.h
5669 zrand.o
: endian_calc.h
5671 zrand.o
: have_const.h
5672 zrand.o
: have_memmv.h
5673 zrand.o
: have_newstr.h
5674 zrand.o
: have_stdlib.h
5675 zrand.o
: have_string.h
5676 zrand.o
: have_unused.h
5688 zrandom.o
: byteswap.h
5689 zrandom.o
: calcerr.h
5693 zrandom.o
: endian_calc.h
5695 zrandom.o
: have_const.h
5696 zrandom.o
: have_memmv.h
5697 zrandom.o
: have_newstr.h
5698 zrandom.o
: have_stdlib.h
5699 zrandom.o
: have_string.h
5700 zrandom.o
: have_unused.h
5701 zrandom.o
: longbits.h
5702 zrandom.o
: nametype.h
5708 zrandom.o
: zrandom.c
5709 zrandom.o
: zrandom.h
5712 ${Q} if
[ ! -f Makefile.simple
]; then \
5713 ${CP} -f
${MAKE_FILE} $@
; fi