modified: src1/input.c
[GalaxyCodeBases.git] / c_cpp / etc / calc / Makefile
blob845031e6903c11fb7faf22be4bcc959d8ae1642d
1 #!/bin/make
3 # calc - arbitrary precision calculator
5 ########################################################################
6 # Gnu makefile: # This is a Gnu make makefile. If your make does not #
7 # Gnu makefile: # understand this makefilkke format, then edit and use #
8 # Gnu makefile: # Makefile.simple instead of this Makefile. #
9 ########################################################################
11 # (Generic calc makefile)
13 # NOTE: This is NOT the calc rpm Makefile. This Makefile is a generic
14 # Makefile for the people who build calc from the bzip2-ed tarball.
15 # Without modification, it not assume the system has readline, ncurses
16 # or less. It compiles with gcc -O3 -g3 as well. You can change all
17 # this by modifying the Makefile variables below.
19 # NOTE: You might want use the READLINE facility if your system
20 # has the GNU readline headers and libaraies:
22 # USE_READLINE= -DUSE_READLINE
23 # READLINE_LIB= -lreadline
24 # READLINE_EXTRAS= -lhistory -lncurses
26 # Copyright (C) 1999-2008 Landon Curt Noll
28 # Calc is open software; you can redistribute it and/or modify it under
29 # the terms of the version 2.1 of the GNU Lesser General Public License
30 # as published by the Free Software Foundation.
32 # Calc is distributed in the hope that it will be useful, but WITHOUT
33 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
34 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
35 # Public License for more details.
37 # A copy of version 2.1 of the GNU Lesser General Public License is
38 # distributed with calc under the filename COPYING-LGPL. You should have
39 # received a copy with calc; if not, write to Free Software Foundation, Inc.
40 # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
42 MAKEFILE_REV= $$Revision: 30.54 $$
43 # @(#) $Id: Makefile.ship,v 30.54 2013/08/11 05:40:18 chongo Exp $
44 # @(#) $Source: /usr/local/src/cmd/calc/RCS/Makefile.ship,v $
46 # Under source code control: 1990/02/15 01:48:41
47 # File existed as early as: before 1990
49 # chongo <was here> /\oo/\ http://www.isthe.com/chongo/
50 # Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
52 # calculator by David I. Bell with help/mods from others
53 # Makefile by Landon Curt Noll
55 #if 0 /* start of skip for non-Gnu makefiles */
56 ##############################################################################
57 #-=-=-=-=-=-=-=-=- Identify the target machine, if possible -=-=-=-=-=-=-=-=-#
58 ##############################################################################
60 # NOTE: You can force a target value by defining target as in:
62 # make ...__optional_arguments_... target=value
64 # Try uname -s if the target was not alreadhy set on the make command line
66 ifeq ($(target),)
67 target=$(shell uname -s 2>/dev/null)
68 endif
69 #endif /* end of skip for non-Gnu makefiles */
71 ##############################################################################
72 #-=-=-=-=-=-=-=-=- You may want to change some values below -=-=-=-=-=-=-=-=-#
73 ##############################################################################
75 # Determine the type of terminal controls that you want to use
77 # value meaning
78 # -------- -------
79 # (nothing) let the Makefile guess at what you need
80 # -DUSE_TERMIOS use struct termios from <termios.h>
81 # -DUSE_TERMIO use struct termios from <termio.h>
82 # -DUSE_SGTTY use struct sgttyb from <sys/ioctl.h>
83 # -DUSE_NOTHING windoz system, don't use any of them
85 # Select TERMCONTROL= -DUSE_TERMIOS for DJGPP.
87 # If in doubt, leave TERMCONTROL empty.
89 TERMCONTROL=
90 #TERMCONTROL= -DUSE_TERMIOS
91 #TERMCONTROL= -DUSE_TERMIO
92 #TERMCONTROL= -DUSE_SGTTY
93 #TERMCONTROL= -DUSE_WIN32
95 # If your system does not have a vsprintf() function, you could be in trouble.
97 # vsprintf(string, format, ap)
99 # This function works like sprintf except that the 3rd arg is a va_list
100 # strarg (or varargs) list. Some old systems do not have vsprintf().
101 # If you do not have vsprintf(), then calc will try sprintf() and hope
102 # for the best.
104 # A simular problem occurs if your system does not have a vsnprintf()
105 # function. This function is like the vsprintf() function except that
106 # there is an extra second argument that controls the maximum size
107 # string that is produced.
109 # If HAVE_VSPRINTF is empty, this Makefile will run the have_stdvs.c and/or
110 # have_varvs.c program to determine if vsprintf() is supported. If
111 # HAVE_VSPRINTF is set to -DDONT_HAVE_VSPRINTF then calc will hope that
112 # sprintf() will work.
114 # If in doubt, leave HAVE_VSPRINTF empty.
116 HAVE_VSPRINTF=
117 #HAVE_VSPRINTF= -DDONT_HAVE_VSPRINTF
119 # Determine the byte order of your machine
121 # Big Endian: Amdahl, 68k, Pyramid, Mips, Sparc, ...
122 # Little Endian: Vax, 32k, Spim (Dec Mips), i386, i486, ...
124 # If in doubt, leave CALC_BYTE_ORDER empty. This Makefile will attempt to
125 # use BYTE_ORDER in <machine/endian.h> or it will attempt to run
126 # the endian program. If you get syntax errors when you compile,
127 # try forcing the value to be -DBIG_ENDIAN and run the calc regression
128 # tests. (see the README file) If the calc regression tests fail, do
129 # a make clobber and try -DCALC_LITTLE_ENDIAN. If that fails, ask a wizard
130 # for help.
132 # Select CALC_BYTE_ORDER= -DCALC_LITTLE_ENDIAN for DJGPP.
134 CALC_BYTE_ORDER=
135 #CALC_BYTE_ORDER= -DBIG_ENDIAN
136 #CALC_BYTE_ORDER= -DLITTLE_ENDIAN
138 # Determine the number of bits in a long
140 # If in doubt, leave LONG_BITS empty. This Makefile will run
141 # the longbits program to determine the length.
143 # In order to avoid make brain damage in some systems, we avoid placing
144 # a space after the ='s below.
146 # Select LONG_BITS= 32 for DJGPP.
148 LONG_BITS=
149 #LONG_BITS= 32
150 #LONG_BITS= 64
152 # Determine if we have the ANSI C fgetpos and fsetpos alternate interface
153 # to the ftell() and fseek() (with whence set to SEEK_SET) functions.
155 # If HAVE_FPOS is empty, this Makefile will run the have_fpos program
156 # to determine if there is are fgetpos and fsetpos functions. If HAVE_FPOS
157 # is set to -DHAVE_NO_FPOS, then calc will use ftell() and fseek().
159 # If in doubt, leave HAVE_FPOS empty and this Makefile will figure it out.
161 HAVE_FPOS=
162 #HAVE_FPOS= -DHAVE_NO_FPOS
164 # Determine if we have an __pos element of a file position (fpos_t) structure.
166 # If HAVE_FPOS_POS is empty, this Makefile will run the have_fpos_pos program
167 # to determine if fpos_t has a __pos structure element. If HAVE_FPOS_POS
168 # is set to -DHAVE_NO_FPOS_POS, then calc assume there is no __pos element.
170 # Select HAVE_FPOS_POS= -DHAVE_NO_FPOS_POS for DJGPP.
172 # If in doubt, leave HAVE_FPOS_POS empty and this Makefile will figure it out.
174 HAVE_FPOS_POS=
175 #HAVE_FPOS_POS= -DHAVE_NO_FPOS_POS
177 # Determine the size of the __pos element in fpos_t, if it exists.
179 # If FPOS_POS_BITS is empty, then the Makefile will determine the size of
180 # the file position value of the __pos element.
182 # If there is no __pos element in fpos_t (say because fpos_t is a scalar),
183 # leave FPOS_POS_BITS blank.
185 # If in doubt, leave FPOS_POS_BITS empty and this Makefile will figure it out.
187 FPOS_POS_BITS=
188 #FPOS_POS_BITS= 32
189 #FPOS_POS_BITS= 64
191 # Determine the size of a file position value.
193 # If FPOS_BITS is empty, then the Makefile will determine the size of
194 # the file position value.
196 # Select FPOS_BITS= 32 for DJGPP.
198 # If in doubt, leave FPOS_BITS empty and this Makefile will figure it out.
200 FPOS_BITS=
201 #FPOS_BITS= 32
202 #FPOS_BITS= 64
204 # Determine the size of the off_t file offset element
206 # If OFF_T_BITS is empty, then the Makefile will determine the size of
207 # the file offset value.
209 # Select OFF_T_BITS= 32 for DJGPP.
211 # If in doubt, leave OFF_T_BITS empty and this Makefile will figure it out.
213 OFF_T_BITS=
214 #OFF_T_BITS= 32
215 #OFF_T_BITS= 64
217 # Determine the size of the dev_t device value
219 # If DEV_BITS is empty, then the Makefile will determine the size of
220 # the dev_t device value
222 # Select DEV_BITS= 32 for DJGPP.
224 # If in doubt, leave DEV_BITS empty and this Makefile will figure it out.
226 DEV_BITS=
227 #DEV_BITS= 16
228 #DEV_BITS= 32
229 #DEV_BITS= 64
231 # Determine the size of the ino_t device value
233 # If INODE_BITS is empty, then the Makefile will determine the size of
234 # the ino_t inode value
236 # Select INODE_BITS= 32 for DJGPP.
238 # If in doubt, leave INODE_BITS empty and this Makefile will figure it out.
240 INODE_BITS=
241 #INODE_BITS= 16
242 #INODE_BITS= 32
243 #INODE_BITS= 64
245 # Determine if we have an off_t which one can perform arithmetic operations,
246 # assignments and comparisons. On some systems off_t is some sort of union
247 # or struct.
249 # If HAVE_OFFSCL is empty, this Makefile will run the have_offscl program
250 # to determine if off_t is a scalar. If HAVE_OFFSCL is set to the value
251 # -DOFF_T_NON_SCALAR when calc will assume that off_t some sort of
252 # union or struct which.
254 # If in doubt, leave HAVE_OFFSCL empty and this Makefile will figure it out.
256 HAVE_OFFSCL=
257 #HAVE_OFFSCL= -DOFF_T_NON_SCALAR
259 # Determine if we have an fpos_t which one can perform arithmetic operations,
260 # assignments and comparisons. On some systems fpos_t is some sort of union
261 # or struct. Some systems do not have an fpos_t and long is as a file
262 # offset instead.
264 # If HAVE_POSSCL is empty, this Makefile will run the have_offscl program
265 # to determine if off_t is a scalar, or if there is no off_t and long
266 # (a scalar) should be used instead. If HAVE_POSSCL is set to the value
267 # -DFILEPOS_NON_SCALAR when calc will assume that fpos_t exists and is
268 # some sort of union or struct which.
270 # If in doubt, leave HAVE_POSSCL empty and this Makefile will figure it out.
272 HAVE_POSSCL=
273 #HAVE_POSSCL= -DFILEPOS_NON_SCALAR
275 # Determine if we have ANSI C const.
277 # If HAVE_CONST is empty, this Makefile will run the have_const program
278 # to determine if const is supported. If HAVE_CONST is set to -DHAVE_NO_CONST,
279 # then calc will not use const.
281 # If in doubt, leave HAVE_CONST empty and this Makefile will figure it out.
283 HAVE_CONST=
284 #HAVE_CONST= -DHAVE_NO_CONST
286 # Determine if we have uid_t
288 # If HAVE_UID_T is empty, this Makefile will run the have_uid_t program
289 # to determine if const is supported. If HAVE_UID_T is set to -DHAVE_NO_UID_T,
290 # then calc will treat uid_t as an unsigned short. This only matters if
291 # $HOME is not set and calc must look up the home directory in /etc/passwd.
293 # If in doubt, leave HAVE_UID_T empty and this Makefile will figure it out.
295 HAVE_UID_T=
296 #HAVE_UID_T= -DHAVE_NO_UID_T
298 # Determine if we have memcpy(), memset() and strchr()
300 # If HAVE_NEWSTR is empty, this Makefile will run the have_newstr program
301 # to determine if memcpy(), memset() and strchr() are supported. If
302 # HAVE_NEWSTR is set to -DHAVE_NO_NEWSTR, then calc will use bcopy() instead
303 # of memcpy(), use bfill() instead of memset(), and use index() instead of
304 # strchr().
306 # If in doubt, leave HAVE_NEWSTR empty and this Makefile will figure it out.
308 HAVE_NEWSTR=
309 #HAVE_NEWSTR= -DHAVE_NO_NEWSTR
311 # Determine if we have memmove()
313 # If HAVE_MEMMOVE is empty, this Makefile will run the have_memmv program
314 # to determine if memmove() is supported. If HAVE_MEMMOVE is set to
315 # -DHAVE_NO_MEMMOVE, then calc will use internal functions to simulate
316 # the memory move function that does correct overlapping memory modes.
318 # If in doubt, leave HAVE_MEMMOVE empty and this Makefile will figure it out.
320 HAVE_MEMMOVE=
321 #HAVE_MEMMOVE= -DHAVE_NO_MEMMOVE
323 # Determine if we have ustat()
325 # If HAVE_USTAT is empty, this Makefile will run the have_memmv program
326 # to determine if ustat() is supported. If HAVE_USTAT is set to
327 # -DHAVE_NO_USTAT, then calc will use internal functions to simulate
328 # the memory move function that does correct overlapping memory modes.
330 # Select HAVE_USTAT= -DHAVE_NO_USTAT for DJGPP.
332 # If in doubt, leave HAVE_USTAT empty and this Makefile will figure it out.
334 HAVE_USTAT=
335 #HAVE_USTAT= -DHAVE_NO_USTAT
337 # Determine if we have getsid()
339 # If HAVE_GETSID is empty, this Makefile will run the have_memmv program
340 # to determine if getsid() is supported. If HAVE_GETSID is set to
341 # -DHAVE_NO_GETSID, then calc will use internal functions to simulate
342 # the memory move function that does correct overlapping memory modes.
344 # Select HAVE_GETSID= -DHAVE_NO_GETSID for DJGPP.
346 # If in doubt, leave HAVE_GETSID empty and this Makefile will figure it out.
348 HAVE_GETSID=
349 #HAVE_GETSID= -DHAVE_NO_GETSID
351 # Determine if we have getpgid()
353 # If HAVE_GETPGID is empty, this Makefile will run the have_memmv program
354 # to determine if getpgid() is supported. If HAVE_GETPGID is set to
355 # -DHAVE_NO_GETPGID, then calc will use internal functions to simulate
356 # the memory move function that does correct overlapping memory modes.
358 # Select HAVE_GETPGID= -DHAVE_NO_GETPGID for DJGPP.
360 # If in doubt, leave HAVE_GETPGID empty and this Makefile will figure it out.
362 HAVE_GETPGID=
363 #HAVE_GETPGID= -DHAVE_NO_GETPGID
365 # Determine if we have clock_gettime()
367 # If HAVE_GETTIME is empty, this Makefile will run the have_memmv program
368 # to determine if clock_gettime() is supported. If HAVE_GETTIME is set to
369 # -DHAVE_NO_GETTIME, then calc will use internal functions to simulate
370 # the memory move function that does correct overlapping memory modes.
372 # Select HAVE_GETTIME= -DHAVE_NO_GETTIME for DJGPP.
374 # If in doubt, leave HAVE_GETTIME empty and this Makefile will figure it out.
376 HAVE_GETTIME=
377 #HAVE_GETTIME= -DHAVE_NO_GETTIME
379 # Determine if we have getprid()
381 # If HAVE_GETPRID is empty, this Makefile will run the have_memmv program
382 # to determine if getprid() is supported. If HAVE_GETPRID is set to
383 # -DHAVE_NO_GETPRID, then calc will use internal functions to simulate
384 # the memory move function that does correct overlapping memory modes.
386 # Select HAVE_GETPRID= -DHAVE_NO_GETPRID for DJGPP.
388 # If in doubt, leave HAVE_GETPRID empty and this Makefile will figure it out.
390 HAVE_GETPRID=
391 #HAVE_GETPRID= -DHAVE_NO_GETPRID
393 # Determine if we have the /dev/urandom
395 # HAVE_URANDOM_H= let the Makefile look /dev/urandom
396 # HAVE_URANDOM_H= YES assume that /dev/urandom exists
397 # HAVE_URANDOM_H= NO assume that /dev/urandom does not exist
399 # Select HAVE_URANDOM_H= NO for DJGPP.
401 # When in doubt, leave HAVE_URANDOM_H empty.
403 HAVE_URANDOM_H=
404 #HAVE_URANDOM_H= YES
405 #HAVE_URANDOM_H= NO
407 # Determine if we have getrusage()
409 # If HAVE_GETRUSAGE is empty, this Makefile will run the have_memmv program
410 # to determine if getrusage() is supported. If HAVE_GETRUSAGE is set to
411 # -DHAVE_NO_GETRUSAGE, then calc will use internal functions to simulate
412 # the memory move function that does correct overlapping memory modes.
414 # If in doubt, leave HAVE_GETRUSAGE empty and this Makefile will figure it out.
416 HAVE_GETRUSAGE=
417 #HAVE_GETRUSAGE= -DHAVE_NO_GETRUSAGE
419 # Determine if we have strdup()
421 # If HAVE_STRDUP is empty, this Makefile will run the have_memmv program
422 # to determine if strdup() is supported. If HAVE_STRDUP is set to
423 # -DHAVE_NO_STRDUP, then calc will use internal functions to simulate
424 # the memory move function that does correct overlapping memory modes.
426 # If in doubt, leave HAVE_STRDUP empty and this Makefile will figure it out.
428 HAVE_STRDUP=
429 #HAVE_STRDUP= -DHAVE_NO_STRDUP
431 # Some architectures such as Sparc do not allow one to access 32 bit values
432 # that are not alligned on a 32 bit boundary.
434 # The Dec Alpha running OSF/1 will produce alignment error messages when
435 # align32.c tries to figure out if alignment is needed. Use the
436 # ALIGN32= -DMUST_ALIGN32 to force alignment and avoid such error messages.
438 # ALIGN32= let align32.c figure out if alignment is needed
439 # ALIGN32= -DMUST_ALIGN32 force 32 bit alignment
440 # ALIGN32= -UMUST_ALIGN32 allow non-alignment of 32 bit accesses
442 # Select ALIGN32= -UMUST_ALIGN32 for DJGPP.
444 # When in doubt, be safe and pick ALIGN32=-DMUST_ALIGN32.
446 ALIGN32=
447 #ALIGN32= -DMUST_ALIGN32
448 #ALIGN32= -UMUST_ALIGN32
450 # Determine if we have the <stdlib.h> include file.
452 # HAVE_STDLIB_H= let the Makefile look for the include file
453 # HAVE_STDLIB_H= YES assume that the include file exists
454 # HAVE_STDLIB_H= NO assume that the include file does not exist
456 # Select HAVE_STDLIB_H= YES for DJGPP.
458 # When in doubt, leave HAVE_STDLIB_H empty.
460 HAVE_STDLIB_H=
461 #HAVE_STDLIB_H= YES
462 #HAVE_STDLIB_H= NO
464 # Determine if we have the <string.h> include file.
466 # HAVE_STRING_H= let the Makefile look for the include file
467 # HAVE_STRING_H= YES assume that the include file exists
468 # HAVE_STRING_H= NO assume that the include file does not exist
470 # Select HAVE_STRING_H= YES for DJGPP.
472 # When in doubt, leave HAVE_STRING_H empty.
474 HAVE_STRING_H=
475 #HAVE_STRING_H= YES
476 #HAVE_STRING_H= NO
478 # Determine if we have the <times.h> include file.
480 # HAVE_TIMES_H= let the Makefile look for the include file
481 # HAVE_TIMES_H= YES assume that the include file exists
482 # HAVE_TIMES_H= NO assume that the include file does not exist
484 # Select HAVE_TIMES_H= NO for DJGPP.
486 # When in doubt, leave HAVE_TIMES_H empty.
488 HAVE_TIMES_H=
489 #HAVE_TIMES_H= YES
490 #HAVE_TIMES_H= NO
492 # Determine if we have the <sys/times.h> include file.
494 # HAVE_SYS_TIMES_H= let the Makefile look for the include file
495 # HAVE_SYS_TIMES_H= YES assume that the include file exists
496 # HAVE_SYS_TIMES_H= NO assume that the include file does not exist
498 # Select HAVE_SYS_TIMES_H= YES for DJGPP.
500 # When in doubt, leave HAVE_SYS_TIMES_H empty.
502 HAVE_SYS_TIMES_H=
503 #HAVE_SYS_TIMES_H= YES
504 #HAVE_SYS_TIMES_H= NO
506 # Determine if we have the <time.h> include file.
508 # HAVE_TIME_H= let the Makefile look for the include file
509 # HAVE_TIME_H= YES assume that the include file exists
510 # HAVE_TIME_H= NO assume that the include file does not exist
512 # Select HAVE_TIME_H= YES for DJGPP.
514 # When in doubt, leave HAVE_TIME_H empty.
516 HAVE_TIME_H=
517 #HAVE_TIME_H= YES
518 #HAVE_TIME_H= NO
520 # Determine if we have the <sys/time.h> include file.
522 # HAVE_SYS_TIME_H= let the Makefile look for the include file
523 # HAVE_SYS_TIME_H= YES assume that the include file exists
524 # HAVE_SYS_TIME_H= NO assume that the include file does not exist
526 # Select HAVE_SYS_TIME_H= YES for DJGPP.
528 # When in doubt, leave HAVE_SYS_TIME_H empty.
530 HAVE_SYS_TIME_H=
531 #HAVE_SYS_TIME_H= YES
532 #HAVE_SYS_TIME_H= NO
534 # Determine if we have the <unistd.h> include file.
536 # HAVE_UNISTD_H= let the Makefile look for the include file
537 # HAVE_UNISTD_H= YES assume that the include file exists
538 # HAVE_UNISTD_H= NO assume that the include file does not exist
540 # Select HAVE_UNISTD_H= YES for DJGPP.
542 # When in doubt, leave HAVE_UNISTD_H empty.
544 HAVE_UNISTD_H=
545 #HAVE_UNISTD_H= YES
546 #HAVE_UNISTD_H= NO
548 # Determine if our compiler allows the -Wno-implicit flag
550 # HAVE_NO_IMPLICIT= let the Makefile test the -Wno-implicit flag
551 # HAVE_NO_IMPLICIT= NO Our compiler does not have -Wno-implicit flags
552 # HAVE_NO_IMPLICIT= YES Our compiler has a -Wno-implicit flag
554 # Select HAVE_NO_IMPLICIT= for DJGPP.
556 HAVE_NO_IMPLICIT=
557 # HAVE_NO_IMPLICIT= NO
558 # HAVE_NO_IMPLICIT= YES
560 # Determine if our compiler allows the unused attribute
562 # If HAVE_UNUSED is empty, this Makefile will run the have_unused program
563 # to determine if the unused attribute is supported. If HAVE_UNUSED is set to
564 # -DHAVE_NO_UNUSED, then the unused attribute will not be used.
566 # Select HAVE_UNUSED= for DJGPP.
568 # If in doubt, leave HAVE_UNUSED empty and this Makefile will figure it out.
570 HAVE_UNUSED=
571 #HAVE_UNUSED= -DHAVE_NO_UNUSED
573 # System include files
575 # ${INCDIR} where the system include (.h) files are kept
577 # For DJGPP, select:
579 # INCDIR= /dev/env/DJDIR/include
581 # If in doubt, set:
583 # INCDIR= /usr/include
586 #INCDIR= /usr/local/include
587 #INCDIR= /dev/env/DJDIR/include
588 INCDIR= /usr/include
590 # Where to install calc realted things
592 # ${BINDIR} where to install calc binary files
593 # ${LIBDIR} where calc link library (*.a) files are installed
594 # ${CALC_SHAREDIR} where to install calc help, .cal, startup, config files
595 # ${CALC_INCDIR} where the calc include files are installed
597 # NOTE: The install rule prepends installation paths with ${T}, which
598 # by default is empty. If ${T} is non-empty, then installation
599 # locations will be relative to the ${T} directory.
601 # NOTE: If you change LIBDIR to a non-standard location, you will need
602 # to make changes to your execution environment so that executables
603 # will search LIBDIR when they are resolving dynamic shared libraries.
605 # On OS X, this means you need to export $DYLD_LIBRARY_PATH
606 # to include the LIBDIR path in the value.
608 # On Linux and BSD, this means you need to export $LD_LIBRARY_PATH
609 # to include the LIBDIR path in the value.
611 # You might be better off not changing LIBDIR in the first place.
613 # For DJGPP, select:
615 # BINDIR= /dev/env/DJDIR/bin
616 # LIBDIR= /dev/env/DJDIR/lib
617 # CALC_SHAREDIR= /dev/env/DJDIR/share/calc
619 # If in doubt, set:
621 # BINDIR= /usr/bin
622 # LIBDIR= /usr/lib
623 # CALC_SHAREDIR= /usr/share/calc
625 #BINDIR= /usr/local/bin
626 #BINDIR= /dev/env/DJDIR/bin
627 BINDIR= /usr/bin
629 #LIBDIR= /usr/local/lib
630 #LIBDIR= /dev/env/DJDIR/lib
631 LIBDIR= /usr/lib
633 #CALC_SHAREDIR= /usr/local/lib/calc
634 #CALC_SHAREDIR= /dev/env/DJDIR/share/calc
635 CALC_SHAREDIR= /usr/share/calc
637 # NOTE: Do not set CALC_INCDIR to /usr/include or /usr/local/include!!!
638 # Always be sure that the CALC_INCDIR path ends in /calc to avoid
639 # conflicts with system or other application include files!!!
641 #CALC_INCDIR= /usr/local/include/calc
642 #CALC_INCDIR= /dev/env/DJDIR/include/calc
643 CALC_INCDIR= ${INCDIR}/calc
645 # By default, these values are based CALC_SHAREDIR, INCDIR, BINDIR
646 # ---------------------------------------------------------------
647 # ${HELPDIR} where the help directory is installed
648 # ${CUSTOMCALDIR} where custom *.cal files are installed
649 # ${CUSTOMHELPDIR} where custom help files are installed
650 # ${CUSTOMINCDIR} where custom .h files are installed
651 # ${SCRIPTDIR} where calc shell scripts are installed
653 # NOTE: The install rule prepends installation paths with ${T}, which
654 # by default is empty. If ${T} is non-empty, then installation
655 # locations will be relative to the ${T} directory.
657 # If in doubt, set:
659 # HELPDIR= ${CALC_SHAREDIR}/help
660 # CALC_INCDIR= ${INCDIR}/calc
661 # CUSTOMCALDIR= ${CALC_SHAREDIR}/custom
662 # CUSTOMHELPDIR= ${CALC_SHAREDIR}/custhelp
663 # CUSTOMINCDIR= ${CALC_INCDIR}/custom
664 # SCRIPTDIR= ${BINDIR}/cscript
666 HELPDIR= ${CALC_SHAREDIR}/help
667 CUSTOMCALDIR= ${CALC_SHAREDIR}/custom
668 CUSTOMHELPDIR= ${CALC_SHAREDIR}/custhelp
669 CUSTOMINCDIR= ${CALC_INCDIR}/custom
670 SCRIPTDIR= ${BINDIR}/cscript
672 # T - top level directory under which calc will be installed
674 # The calc install is performed under ${T}, the calc build is
675 # performed under /. The purpose for ${T} is to allow someone
676 # to install calc somewhere other than into the system area.
678 # For example, if:
680 # BINDIR= /usr/bin
681 # LIBDIR= /usr/lib
682 # CALC_SHAREDIR= /usr/share/calc
684 # and if:
686 # T= /var/tmp/testing
688 # Then the installation locations will be:
690 # calc binary files: /var/tmp/testing/usr/bin
691 # calc link library: /var/tmp/testing/usr/lib
692 # calc help, .cal ...: /var/tmp/testing/usr/share/calc
693 # ... etc ... /var/tmp/testing/...
695 # If ${T} is empty, calc is installed under /, which is the same
696 # top of tree for which it was built. If ${T} is non-empty, then
697 # calc is installed under ${T}, as if one had to chroot under
698 # ${T} for calc to operate.
700 # If in doubt, use T=
704 # where man pages are installed
706 # Select MANDIR= /dev/env/DJDIR/man/man1 for DJGPP.
708 # Use MANDIR= to disable installation of the calc man (source) page.
710 #MANDIR=
711 #MANDIR= /usr/local/man/man1
712 #MANDIR= /usr/man/man1
713 MANDIR= /usr/share/man/man1
714 #MANDIR= /dev/env/DJDIR/man/man1
715 #MANDIR= /usr/man/u_man/man1
716 #MANDIR= /usr/contrib/man/man1
718 # where cat (formatted man) pages are installed
720 # Select CATDIR= /dev/env/DJDIR/man/cat1 for DJGPP.
722 # Use CATDIR= to disable installation of the calc cat (formatted) page.
724 CATDIR=
725 #CATDIR= /usr/local/man/cat1
726 #CATDIR= /usr/local/catman/cat1
727 #CATDIR= /usr/man/cat1
728 #CATDIR= /usr/share/man/cat1
729 #CATDIR= /dev/env/DJDIR/man/cat1
730 #CATDIR= /var/cache/man/cat1
731 #CATDIR= /usr/man/u_man/cat1
732 #CATDIR= /usr/contrib/man/cat1
734 # extension to add on to the calc man page filename
736 # This is ignored if CATDIR is empty.
738 MANEXT= 1
739 #MANEXT= l
741 # extension to add on to the calc man page filename
743 # This is ignored if CATDIR is empty.
745 CATEXT= 1
746 #CATEXT= 1.gz
747 #CATEXT= 0
748 #CATEXT= l
750 # how to format a man page
752 # If CATDIR is non-empty, then
754 # If NROFF is non-empty, then
756 # ${NROFF} ${NROFF_ARG} calc.1 > ${CATDIR}/calc.${CATEXT}
757 # is used to built and install the cat page
759 # else (NROFF is empty)
761 # ${MANMAKE} calc.1 ${CATDIR}
762 # is used to built and install the cat page
763 # else
765 # The cat page is not built or installed
767 # Select NROFF= groff for DJGPP.
769 # If in doubt and you don't want to fool with man pages, set MANDIR
770 # and CATDIR to empty and ignore the NROFF, NROFF_ARG and MANMAKE
771 # lines below.
773 #NROFF= nroff
774 NROFF=
775 #NROFF= groff
776 NROFF_ARG= -man
777 #NROFF_ARG= -mandoc
778 MANMAKE= /usr/local/bin/manmake
779 #MANMAKE= manmake
780 MANMODE= 0444
781 CATMODE= 0444
783 # By default, custom builtin functions may only be executed if calc
784 # is given the -C option. This is because custom builtin functions
785 # may invoke non-standard or non-portable code. One may completely
786 # disable custom builtin functions by not compiling any of code
788 # ALLOW_CUSTOM= -DCUSTOM # allow custom only if -C is given
789 # ALLOW_CUSTOM= # disable custom even if -C is given
791 # If in doubt, use ALLOW_CUSTOM= -DCUSTOM
793 ALLOW_CUSTOM= -DCUSTOM
794 #ALLOW_CUSTOM=
796 # If the $CALCPATH environment variable is not defined, then the following
797 # path will be search for calc resource file routines.
799 # Select CALCPATH= .;./cal;~/.cal;${CALC_SHAREDIR};${CUSTOMCALDIR} for DJGPP.
801 #if 0 /* start of skip for non-Gnu makefiles */
802 ifdef ALLOW_CUSTOM
803 #endif /* end of skip for non-Gnu makefiles */
804 CALCPATH= .:./cal:~/.cal:${CALC_SHAREDIR}:${CUSTOMCALDIR}
805 #if 0 /* start of skip for non-Gnu makefiles */
806 else
807 CALCPATH= .:./cal:~/.cal:${CALC_SHAREDIR}
808 endif
809 #endif /* end of skip for non-Gnu makefiles */
811 # If the $CALCRC environment variable is not defined, then the following
812 # path will be search for calc resource files.
814 # Select CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit for DJGPP.
816 CALCRC= ${CALC_SHAREDIR}/startup:~/.calcrc:./.calcinit
817 #CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit
819 # Determine of the GNU-readline facility will be used instead of the
820 # built-in calc binding method.
822 # USE_READLINE= Do not use GNU-readline, use calc bindings
823 # USE_READLINE= -DUSE_READLINE Use GNU-readline, do not use calc bindings
825 # NOTE: If you select the 'USE_READLINE= -DUSE_READLINE' mode, you must set:
827 # READLINE_LIB The flags needed to link in the readline
828 # and history link libraries
829 # READLINE_EXTRAS Flags and libs needed to use the readline
830 # and history link libraries
831 # READLINE_INCLUDE Where the readline include files reside
832 # (leave blank if they are /usr/include/readline)
834 # NOTE: The GNU-readline code is not shipped with calc. You must have
835 # the appropriate headers and link libs installed on your system in
836 # order to use it.
838 # If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
840 USE_READLINE=
841 #USE_READLINE= -DUSE_READLINE
843 READLINE_LIB=
844 READLINE_EXTRAS=
846 #READLINE_LIB= -lreadline
847 #READLINE_EXTRAS= -lhistory -lncurses
849 #READLINE_LIB= -L/usr/gnu/lib -lreadline
850 #READLINE_EXTRAS= -lhistory -lncurses
852 #READLINE_LIB= -L/usr/local/lib -lreadline
853 #READLINE_EXTRAS= -lhistory -lncurses
855 # For Apple OS X: install fink from http://fink.sourceforge.net
856 # and then do a 'fink install readline' and then use:
858 #READLINE_LIB= -L/sw/lib -lreadline
859 #READLINE_EXTRAS= -lhistory -lncurses
861 READLINE_INCLUDE=
862 #READLINE_INCLUDE= -I/usr/gnu/include
863 #READLINE_INCLUDE= -I/usr/local/include
865 # If $PAGER is not set, use this program to display a help file
867 # Select CALCPAGER= less.exe -ci for DJGPP.
869 #CALCPAGER= more
870 #CALCPAGER= pg
871 #CALCPAGER= cat
872 CALCPAGER= less
873 #CALCPAGER= less.exe -ci
875 # Debug/Optimize options for ${CC} and ${LCC}
877 # Select DEBUG= -O2 -gstabs+ -DWINDOZ for DJGPP.
879 #DEBUG=
880 #DEBUG= -g
881 #DEBUG= -g3
883 #DEBUG= -O
884 #DEBUG= -O -g
885 #DEBUG= -O -g3
887 #DEBUG= -O1
888 #DEBUG= -O1 -g
889 #DEBUG= -O1 -g3
891 #DEBUG= -O2
892 #DEBUG= -O2 -g
893 #DEBUG= -O2 -g3
894 #DEBUG= -O2 -ipa
895 #DEBUG= -O2 -g3 -ipa
897 #DEBUG= -O3
898 #DEBUG= -O3 -g
899 DEBUG= -O3 -g3
900 #DEBUG= -O3 -ipa
901 #DEBUG= -O3 -g3 -ipa
903 # Some systems require one to use ranlib to add a symbol table to
904 # a *.a link library. Set RANLIB to the utility that performs this
905 # action. Set RANLIB to : if your system does not need such a utility.
907 RANLIB=ranlib
908 #RANLIB=:
910 # Normally certain files depend on the Makefile. If the Makefile is
911 # changed, then certain steps should be redone. If MAKE_FILE is
912 # set to Makefile, then these files will depend on Makefile. If
913 # MAKE_FILE is empty, then they wont.
915 # If in doubt, set MAKE_FILE to Makefile
917 MAKE_FILE= Makefile
919 # Controlling file makefile basename (without the path)
921 # This is the basename same of the makefile that may/does/will drive
922 # this makefile.
924 # If in doubt, set TOP_MAKE_FILE to Makefile
926 TOP_MAKE_FILE= Makefile
928 # If you do not wish to use purify, set PURIFY to an empty string.
930 # If in doubt, use PURIFY=
932 #PURIFY= purify
933 #PURIFY= purify -m71-engine
934 #PURIFY= purify -logfile=pure.out
935 #PURIFY= purify -m71-engine -logfile=pure.out
936 PURIFY=
938 # If you want to use a debugging link library such as a malloc debug link
939 # library, or need to add special ld flags after the calc link libraries
940 # are included, set ${LD_DEBUG} below.
942 # If in doubt, set LD_DEBUG to empty.
944 #LD_DEBUG= -lmalloc_cv
945 LD_DEBUG=
947 # When doing a:
949 # make check
950 # make chk
951 # make debug
953 # the ${CALC_ENV} is used to supply the proper environment variables
954 # to calc. Most people will simply need 'CALCPATH=./cal' to ensure
955 # that these debug rules will only use calc resource files under the
956 # local source directory. The longer lines (with MALLOC_VERBOSE=1 ...)
957 # are useful for SGI IRIX people who have 'WorkShop Performance Tools'
958 # and who also set 'LD_DEBUG= -lmalloc_cv' above.
960 # If in doubt, use CALC_ENV= CALCPATH=./cal LD_LIBRARY_PATH=.:./custom
962 CALC_ENV= CALCPATH=./cal LD_LIBRARY_PATH=.
963 #CALC_ENV= CALCPATH=./cal MALLOC_VERBOSE=1 MALLOC_TRACING=1 \
964 # MALLOC_FASTCHK=1 MALLOC_FULLWARN=1 LD_LIBRARY_PATH=.:./custom
965 #CALC_ENV= CALCPATH=./cal MALLOC_VERBOSE=1 MALLOC_TRACING=1 \
966 # MALLOC_FASTCHK=1 MALLOC_FULLWARN=1 MALLOC_CLEAR_FREE=1 \
967 # MALLOC_CLEAR_MALLOC=1 LD_LIBRARY_PATH=.:./custom
970 # The install rule uses:
972 # ${MKDIR} ${MKDIR_ARG}
974 # to create directorties. Normall this amounts to usins mkdir -p dir ...
975 # Some older systems may not have mkdir -p. If you system does not
976 # make mkdir -p, then set MKDIR_ARG to empty.
978 # MKDIR_ARG= -p # use mkdir -p when creating paths
979 # MKDIR_ARG= # use if system does not understand mkdir -p
981 MKDIR_ARG= -p
982 #MKDIR_ARG=
984 # Some out of date operating systems require / want an executable to
985 # end with a certain file extension. Some compile systems such as
986 # windoz build calc as calc.exe. The EXT variable is used to denote
987 # the extension required by such. Note that Cygwin requires EXT to be
988 # the same as Linux/Un*x/GNU, even though it runs under windoz.
990 # EXT= # normal Un*x / Linux / GNU/Linux / Cygwin
991 # EXT=.exe # windoz
993 # If in doubt, use EXT=
995 EXT=
996 #EXT=.exe
998 # The default calc versions
1000 VERSION= 2.12.4.10
1001 VERS= 2.12.4
1002 VER= 2.12
1003 VE= 2
1005 # Names of shared libraries with versions
1007 LIB_EXT= .so
1008 LIB_EXT_VERSION= ${LIB_EXT}.${VERSION}
1009 LIB_EXT_VERS= ${LIB_EXT}.${VERS}
1010 LIB_EXT_VER= ${LIB_EXT}.${VER}
1011 LIB_EXT_VE= ${LIB_EXT}.${VE}
1013 # standard utilities used during make
1015 SHELL= /bin/sh
1016 LANG= C
1017 MAKE= make
1018 AWK= awk
1019 SED= sed
1020 DIFF= diff
1021 GREP= egrep
1022 SORT= sort
1023 TEE= tee
1024 CTAGS= ctags
1025 CHMOD= chmod
1026 FMT= fmt
1027 XARGS= xargs
1028 CMP= cmp
1029 MKDIR= mkdir
1030 SPLINT= splint
1031 SPLINT_OPTS=
1032 RM= rm
1033 TOUCH= touch
1034 RMDIR= rmdir
1035 CP= cp
1036 MV= mv
1037 CO= co
1038 AR= ar
1039 TRUE= true
1040 CAT= cat
1041 COL= col
1042 LN= ln
1043 LDCONFIG= ldconfig
1044 # assume the X11 makedepend tool for the depend rule
1045 MAKEDEPEND= makedepend
1046 STRIP= strip
1048 # Extra compiling and linking flags
1050 # EXTRA_CFLAGS are flags given to ${CC} when compiling C files
1051 # EXTRA_LDFLAGS are flags given to ${CC} when linking progs
1053 # Both CFLAGS and LDFLAGS are left blank in this Makefile by
1054 # default so that users may use them on the make command line
1055 # to always the way that C is compiled and files are linked
1056 # respectively. For example:
1058 # make all EXTRA_CFLAGS="-DMAGIC" EXTRA_LDFLAGS="-lmagic"
1060 # NOTE: These should be left blank in this Makefile to make it
1061 # easier to add stuff on the command line. If you want to
1062 # to change the way calc is compiled by this Makefile, change
1063 # the appropirate host target section below or a flag above.
1065 EXTRA_CFLAGS=
1066 EXTRA_LDFLAGS=
1068 # COMMON_CFLAGS are the common ${CC} flags used for all progs, both
1069 # intermediate and final calc and calc related progs
1071 #if 0 /* start of skip for non-Gnu makefiles */
1072 ifdef ALLOW_CUSTOM
1073 #endif /* end of skip for non-Gnu makefiles */
1074 COMMON_CFLAGS= -DCALC_SRC ${ALLOW_CUSTOM} ${CCWARN} ${CCMISC} ${EXTRA_CFLAGS}
1075 #if 0 /* start of skip for non-Gnu makefiles */
1076 else
1077 COMMON_CFLAGS= -DCALC_SRC -UCUSTOM ${CCWARN} ${CCMISC} ${EXTRA_CFLAGS}
1078 endif
1079 #endif /* end of skip for non-Gnu makefiles */
1081 # COMMON_LDFLAGS are the common flags used for linking all progs, both
1082 # intermediate and final calc and calc related progs
1084 COMMON_LDFLAGS= ${EXTRA_LDFLAGS}
1086 # start of host target cut - Do not remove this line
1087 ##############################################################################
1088 #-=-=-=-=-=- host target section - targets that override defaults -=-=-=-=-=-#
1089 ##############################################################################
1091 # Common values set in targets
1093 # BLD_TYPE determines if calc is built with static and/or dynamic libs.
1094 # Set this value to one of:
1096 # BLD_TYPE= calc-dynamic-only
1097 # BLD_TYPE= calc-static-only
1099 # CC_SHARE are flags given to ${CC} to build .o files suitable for shared libs
1100 # DEFAULT_LIB_INSTALL_PATH is where calc progs look for calc shared libs
1101 # LD_SHARE are common flags given to ${CC} to link with shared libraries
1102 # LIBCALC_SHLIB are flags given to ${CC} to build libcalc shared lib
1103 # LIBCUSTCALC_SHLIB are flags given to ${CC} to build libcustcalc shared lib
1105 # NOTE: The above 4 values are unused if BLD_TYPE= calc-static-only
1107 # CC_STATIC are flags given to ${CC} to build .o files suitable for static libs
1108 # LD_STATIC are common flags given to ${CC} to link with static libraries
1109 # LIBCALC_STATIC are flags given to ${CC} to build libcalc static lib
1110 # LIBCUSTCALC_STATIC are flags given to ${CC} to build libcustcalc static lib
1112 # NOTE: The above 4 values are unused if BLD_TYPE= calc-dynamic-only
1114 # CCOPT are flags given to ${CC} for optimization
1115 # CCWARN are flags given to ${CC} for warning message control
1116 # CCWERR are flags given to ${CC} to make warnings fatal errors
1117 # NOTE: CCWERR is only set in development Makefiles and must only be
1118 # used with ${CC}, not ${LCC}. If you do not want the compiler
1119 # to abort on warnings, then leave CCWERR blank.
1120 # CCMISC are misc flags given to ${CC}
1122 # LCC how the C compiler is invoked on locally executed intermediate progs
1123 # CC is how the C compiler is invoked (with an optional Purify)
1125 # Specific target overrides or modifications to default values
1127 ##########################################################################
1128 # NOTE: If your target is not supported below and the default target #
1129 # is not suitable for your needs, please send to the: #
1131 # calc-contrib at asthe dot com #
1133 # EMail address an "ifeq ($(target),YOUR_TARGET_NAME)" ... "endif" #
1134 # set of lines so that we can consider them for the next release. #
1135 ##########################################################################
1137 #if 0 /* start of skip for non-Gnu makefiles */
1138 ################
1139 # Linux target #
1140 ################
1142 ifeq ($(target),Linux)
1144 BLD_TYPE= calc-dynamic-only
1146 CC_SHARE= -fPIC
1147 DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
1148 LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1149 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1150 LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1151 ifdef ALLOW_CUSTOM
1152 LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1153 else
1154 LIBCUSTCALC_SHLIB=
1155 endif
1157 CC_STATIC=
1158 LD_STATIC=
1159 LIBCALC_STATIC=
1160 LIBCUSTCALC_STATIC=
1162 CCWARN= -Wall -W -Wno-comment
1163 CCWERR=
1164 CCOPT= ${DEBUG}
1165 CCMISC=
1167 LCC= gcc
1168 CC= ${PURIFY} ${LCC} ${CCWERR}
1170 endif
1172 #################################
1173 # Apple MacOS X / Darwin target #
1174 #################################
1176 ifeq ($(target),Darwin)
1178 BLD_TYPE= calc-dynamic-only
1180 CC_SHARE= -fPIC
1181 DEFAULT_LIB_INSTALL_PATH= ${PWD}:${LIBDIR}:/usr/local/lib
1182 LD_SHARE= ${DARWIN_ARCH}
1183 LIBCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib
1184 ifdef ALLOW_CUSTOM
1185 LIBCUSTCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib
1186 else
1187 LIBCUSTCALC_SHLIB=
1188 endif
1190 CC_STATIC=
1191 LD_STATIC= ${DARWIN_ARCH}
1192 LIBCALC_STATIC=
1193 LIBCUSTCALC_STATIC=
1195 CCWARN= -Wall -W -Wno-comment
1196 CCWERR=
1197 CCOPT= ${DEBUG}
1198 CCMISC= ${DARWIN_ARCH}
1200 LCC= MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} gcc
1201 CC= ${PURIFY} ${LCC} ${CCWERR}
1203 # Darmin dynamic shared lib filenames
1204 LIB_EXT:= .dylib
1205 LIB_EXT_VERSION:= .${VERSION}${LIB_EXT}
1206 LIB_EXT_VERS:= .${VERS}${LIB_EXT}
1207 LIB_EXT_VER:= .${VER}${LIB_EXT}
1208 LIB_EXT_VE:= .${VE}${LIB_EXT}
1209 # LDCONFIG not required on this platform, so we redefine it to an empty string
1210 LDCONFIG:=
1211 # DARWIN_ARCH= -arch i386 -arch ppc # Universal binary
1212 # DARWIN_ARCH= -arch i386 # Intel binary
1213 # DARWIN_ARCH= -arch ppc # PPC binary
1214 DARWIN_ARCH= # native binary
1215 MACOSX_DEPLOYMENT_TARGET=10.8
1217 endif
1219 ##################
1220 # FreeBSD target #
1221 ##################
1223 ########################################################################
1224 # NOTE: You MUST either use gmake (GNU Make) or you must try your luck #
1225 # with Makefile.simple and custom/Makefile.simple versions. #
1226 # See HOWTO.INSTALL for more information. #
1227 ########################################################################
1229 ifeq ($(target),FreeBSD)
1231 BLD_TYPE= calc-dynamic-only
1233 CC_SHARE= -fPIC
1234 DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
1235 LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1236 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1237 LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1238 ifdef ALLOW_CUSTOM
1239 LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1240 else
1241 LIBCUSTCALC_SHLIB=
1242 endif
1244 CC_STATIC=
1245 LD_STATIC=
1246 LIBCALC_STATIC=
1247 LIBCUSTCALC_STATIC=
1249 CCWARN= -Wall -W -Wno-comment
1250 CCWERR=
1251 CCOPT= ${DEBUG}
1252 CCMISC=
1254 LCC= gcc
1255 CC= ${PURIFY} ${LCC} ${CCWERR}
1257 MAKE= gmake
1259 endif
1261 ##################
1262 # OpenBSD target #
1263 ##################
1265 ########################################################################
1266 # NOTE: You MUST either use gmake (GNU Make) or you must try your luck #
1267 # with Makefile.simple and custom/Makefile.simple versions. #
1268 # See HOWTO.INSTALL for more information. #
1269 ########################################################################
1271 ifeq ($(target),OpenBSD)
1273 BLD_TYPE= calc-dynamic-only
1275 CC_SHARE= -fPIC
1276 DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
1277 LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1278 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1279 LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1280 ifdef ALLOW_CUSTOM
1281 LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1282 else
1283 LIBCUSTCALC_SHLIB=
1284 endif
1286 CC_STATIC=
1287 LD_STATIC=
1288 LIBCALC_STATIC=
1289 LIBCUSTCALC_STATIC=
1291 CCWARN= -Wall
1292 CCWERR=
1293 CCOPT= ${DEBUG}
1294 CCMISC=
1296 LCC= gcc
1297 CC= ${PURIFY} ${LCC} ${CCWERR}
1299 MAKE= gmake
1301 endif
1303 ################
1304 # SunOS target #
1305 ################
1307 # XXX - this needs to be tested
1308 ifeq ($(target),SunOS)
1310 BLD_TYPE= calc-dynamic-only
1312 CC_SHARE= -fPIC
1313 DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
1314 LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1315 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1316 LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1317 ifdef ALLOW_CUSTOM
1318 LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1319 else
1320 LIBCUSTCALC_SHLIB=
1321 endif
1323 CC_STATIC=
1324 LIBCALC_STATIC=
1325 LIBCUSTCALC_STATIC=
1326 LD_STATIC=
1328 CCWARN= -Wall -W -Wno-comment
1329 CCWERR=
1330 CCOPT= ${DEBUG}
1331 CCMISC=
1333 LCC= gcc
1334 CC= ${PURIFY} ${LCC} ${CCWERR}
1336 endif
1338 #################
1339 # Cygwin target #
1340 #################
1342 ifeq ($(target),Cygwin)
1344 BLD_TYPE= calc-static-only
1346 CC_SHARE= -fPIC
1347 DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
1348 LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1349 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1350 LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1351 ifdef ALLOW_CUSTOM
1352 LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1353 else
1354 LIBCUSTCALC_SHLIB=
1355 endif
1357 CC_STATIC=
1358 LIBCALC_STATIC=
1359 LIBCUSTCALC_STATIC=
1360 LD_STATIC=
1362 CCWARN= -Wall -W -Wno-comment
1363 CCWERR=
1364 CCOPT= ${DEBUG}
1365 CCMISC=
1367 LCC= gcc
1368 CC= ${PURIFY} ${LCC} ${CCWERR}
1370 endif
1372 #######################################################
1373 # simple target - values used to form Makefile.simple #
1374 #######################################################
1376 # NOTE: This is not a real host target. The simple target
1377 # exists only to form the Makefile.simple file.
1379 ifeq ($(target),simple)
1380 #endif /* end of skip for non-Gnu makefiles */
1382 BLD_TYPE= calc-static-only
1384 CC_SHARE= -fPIC
1385 DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
1386 LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1387 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1388 LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1389 LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1391 CC_STATIC=
1392 LD_STATIC=
1393 LIBCALC_STATIC=
1394 LIBCUSTCALC_STATIC=
1396 CCWARN= -Wall -W -Wno-comment
1397 CCWERR=
1398 CCOPT= ${DEBUG}
1399 CCMISC=
1401 LCC= cc
1402 CC= ${PURIFY} ${LCC} ${CCWERR}
1404 # The simple makefile forces the use of static ${CC} flags
1406 # ICFLAGS are given to ${CC} for intermediate progs used to help compile calc
1407 # CFLAGS are given to ${CC} for calc progs other than intermediate progs
1408 # ILDFLAGS for ${CC} in linking intermediate progs used to help compile calc
1409 # LDFLAGS for ${CC} in linking calc progs other than intermediate progs
1411 ICFLAGS= ${COMMON_CFLAGS} ${CC_STATIC}
1412 CFLAGS= ${ICFLAGS} ${CCOPT}
1414 ILDFLAGS= ${COMMON_LDFLAGS} ${LD_STATIC}
1415 LDFLAGS= ${LD_DEBUG} ${ILDFLAGS} ${LIBCALC_STATIC} ${LIBCUSTCALC_STATIC}
1417 #if 0 /* start of skip for non-Gnu makefiles */
1418 endif
1420 ###################################################
1421 # MINGW32_NT-5.0 target #
1422 ###################################################
1425 ifeq ($(target),MINGW32_NT-5.0)
1427 EXT=.exe
1428 TERMCONTROL= -DUSE_WIN32
1429 ifdef ALLOW_CUSTOM
1430 #endif /* end of skip for non-Gnu makefiles */
1431 CALCPATH= .;./cal;~/.cal;${CALC_SHAREDIR};${CUSTOMCALDIR}
1432 #if 0 /* start of skip for non-Gnu makefiles */
1433 else
1434 CALCPATH= .;./cal;~/.cal;${CALC_SHAREDIR}
1435 endif
1436 CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit
1438 BLD_TYPE= calc-static-only
1440 CC_SHARE= -fPIC
1441 DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
1442 LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1443 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1444 LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1445 ifdef ALLOW_CUSTOM
1446 LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1447 else
1448 LIBCUSTCALC_SHLIB=
1449 endif
1451 CC_STATIC= -DSTATIC_ONLY
1452 LIBCALC_STATIC=
1453 LIBCUSTCALC_STATIC=
1454 LD_STATIC=
1456 CCWARN= -Wall -W -Wno-comment
1457 CCWERR=
1458 CCOPT= ${DEBUG}
1459 CCMISC= -DNOTCYGWIN
1461 LCC= gcc
1462 CC= ${PURIFY} ${LCC} ${CCWERR}
1464 endif
1466 ###################################################
1467 # default target - when no specific target exists #
1468 ###################################################
1470 # NOTE: This is the default generic host target. Used when no other
1471 # host target matches.
1473 ifeq ($(target),)
1475 BLD_TYPE= calc-static-only
1477 CC_SHARE= -fPIC
1478 DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib
1479 LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \
1480 "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}"
1481 LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}"
1482 ifdef ALLOW_CUSTOM
1483 LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}"
1484 else
1485 LIBCUSTCALC_SHLIB=
1486 endif
1488 CC_STATIC=
1489 LIBCALC_STATIC=
1490 LIBCUSTCALC_STATIC=
1491 LD_STATIC=
1493 CCWARN= -Wall -W -Wno-comment
1494 CCWERR=
1495 CCOPT= ${DEBUG}
1496 CCMISC=
1498 LCC= gcc
1499 CC= ${PURIFY} ${LCC} ${CCWERR}
1501 endif
1503 ###########################################
1504 # Set the default compile flags for ${CC} #
1505 ###########################################
1507 # Required flags to compile C files for calc
1509 # ICFLAGS are given to ${CC} for intermediate progs used to help compile calc
1510 # CFLAGS are given to ${CC} for calc progs other than intermediate progs
1512 # NOTE: This does not work for: make-XYZ-only and BLD_TYPE != make-XYZ-only
1514 ifeq ($(BLD_TYPE),calc-static-only)
1515 ICFLAGS= ${COMMON_CFLAGS} ${CC_STATIC}
1516 else
1517 ICFLAGS= ${COMMON_CFLAGS} ${CC_SHARE}
1518 endif
1519 CFLAGS= ${ICFLAGS} ${CCOPT}
1521 # Required flags to link files for calc
1523 # ILDFLAGS for ${CC} in linking intermediate progs used to help compile calc
1524 # LDFLAGS for ${CC} in linking calc progs other than intermediate progs
1526 ILDFLAGS= ${COMMON_LDFLAGS}
1527 LDFLAGS= ${LD_DEBUG} ${ILDFLAGS}
1528 #endif /* end of skip for non-Gnu makefiles */
1530 #######################################################################
1531 #-=-=-=-=-=- end of target section - only make rules below -=-=-=-=-=-#
1532 #######################################################################
1533 # end of host target cut - Do not remove this line
1535 ###############################################################################
1536 #=-=-=-=-=- Be careful if you change something in this next section -=-=-=-=-=#
1537 ###############################################################################
1539 # Makefile debug
1541 # Q=@ do not echo internal Makefile actions (quiet mode)
1542 # Q= echo internal Makefile actions (debug / verbose mode)
1544 # V=@: do not echo debug statements (quiet mode)
1545 # V=@ do echo debug statements (debug / verbose mode)
1549 V=@:
1550 #V=@
1552 # the source files which are built into a math link library
1554 # There MUST be a .o for every .c in LIBOBJS
1556 LIBSRC= addop.c assocfunc.c blkcpy.c block.c byteswap.c \
1557 codegen.c comfunc.c commath.c config.c const.c custom.c \
1558 file.c func.c hash.c help.c hist.c input.c jump.c label.c \
1559 lib_calc.c lib_util.c listfunc.c matfunc.c math_error.c \
1560 obj.c opcodes.c pix.c poly.c prime.c qfunc.c qio.c \
1561 qmath.c qmod.c qtrans.c quickhash.c seed.c sha1.c size.c \
1562 str.c symbol.c token.c value.c version.c zfunc.c zio.c \
1563 zmath.c zmod.c zmul.c zprime.c zrand.c zrandom.c
1565 # the object files which are built into a math link library
1567 # There MUST be a .o for every .c in LIBSRC plus calcerr.o
1568 # which is built via this Makefile.
1570 LIBOBJS= addop.o assocfunc.o blkcpy.o block.o byteswap.o calcerr.o \
1571 codegen.o comfunc.o commath.o config.o const.o custom.o \
1572 file.o func.o hash.o help.o hist.o input.o jump.o label.o \
1573 lib_calc.o lib_util.o listfunc.o matfunc.o math_error.o \
1574 obj.o opcodes.o pix.o poly.o prime.o qfunc.o qio.o \
1575 qmath.o qmod.o qtrans.o quickhash.o seed.o sha1.o size.o \
1576 str.o symbol.o token.o value.o version.o zfunc.o zio.o \
1577 zmath.o zmod.o zmul.o zprime.o zrand.o zrandom.o
1579 # the calculator source files
1581 # There MUST be a .c for every .o in CALCOBJS.
1583 CALCSRC= calc.c
1585 # we build these .o files for calc
1587 # There MUST be a .o for every .c in CALCSRC.
1589 CALCOBJS= calc.o
1591 # these .h files are needed to build the math link library
1593 LIB_H_SRC= alloc.h blkcpy.h block.h byteswap.h calc.h cmath.h \
1594 config.h custom.h decl.h file.h func.h hash.h hist.h jump.h \
1595 label.h lib_util.h lib_calc.h nametype.h \
1596 opcodes.h prime.h qmath.h sha1.h str.h \
1597 symbol.h token.h value.h zmath.h zrand.h zrandom.h
1599 # we build these .h files during the make
1601 BUILD_H_SRC= align32.h args.h calcerr.h conf.h endian_calc.h \
1602 fposval.h have_const.h have_fpos.h have_fpos_pos.h \
1603 have_memmv.h have_newstr.h have_offscl.h have_posscl.h \
1604 have_stdlib.h have_string.h have_times.h have_uid_t.h \
1605 have_unistd.h longbits.h terminal.h \
1606 have_ustat.h have_getsid.h have_getpgid.h \
1607 have_gettime.h have_getprid.h have_urandom.h have_rusage.h \
1608 have_strdup.h have_unused.h
1610 # we build these .c files during the make
1612 BUILD_C_SRC= calcerr.c
1614 # these .c files may be used in the process of building BUILD_H_SRC
1616 # There MUST be a .c for every .o in UTIL_OBJS.
1618 UTIL_C_SRC= align32.c endian.c longbits.c have_newstr.c have_uid_t.c \
1619 have_const.c have_stdvs.c have_varvs.c fposval.c have_fpos.c \
1620 have_fpos_pos.c have_offscl.c have_posscl.c have_memmv.c \
1621 have_ustat.c have_getsid.c have_getpgid.c \
1622 have_gettime.c have_getprid.c have_rusage.c have_strdup.c \
1623 no_implicit.c have_unused.c
1625 # these awk and sed tools are used in the process of building BUILD_H_SRC
1626 # and BUILD_C_SRC
1628 UTIL_MISC_SRC= calcerr_h.sed calcerr_h.awk calcerr_c.sed calcerr_c.awk \
1629 calcerr.tbl check.awk win32.mkdef
1631 # these .o files may get built in the process of building BUILD_H_SRC
1633 # There MUST be a .o for every .c in UTIL_C_SRC.
1635 UTIL_OBJS= endian.o longbits.o have_newstr.o have_uid_t.o \
1636 have_const.o fposval.o have_fpos.o have_fpos_pos.o \
1637 try_strarg.o have_stdvs.o have_varvs.o have_posscl.o have_memmv.o \
1638 have_ustat.o have_getsid.o have_getpgid.o \
1639 have_gettime.o have_getprid.o ver_calc.o have_rusage.o have_strdup.o \
1640 no_implicit.o have_unused.o
1642 # these temp files may be created (and removed) during the build of BUILD_C_SRC
1644 UTIL_TMP= ll_tmp fpos_tmp fposv_tmp const_tmp uid_tmp newstr_tmp vs_tmp \
1645 memmv_tmp offscl_tmp posscl_tmp newstr_tmp \
1646 getsid_tmp gettime_tmp getprid_tmp rusage_tmp strdup_tmp
1648 # these utility executables may be created in the process of
1649 # building the BUILD_H_SRC file set
1651 UTIL_PROGS= align32${EXT} fposval${EXT} have_uid_t${EXT} have_const${EXT} \
1652 endian${EXT} longbits${EXT} have_newstr${EXT} have_stdvs${EXT} \
1653 have_varvs${EXT} have_ustat${EXT} have_getsid${EXT} \
1654 have_getpgid${EXT} have_gettime${EXT} have_getprid${EXT} \
1655 ver_calc${EXT} have_strdup${EXT} no_implicit${EXT} \
1656 have_unused${EXT} have_fpos${EXT} have_fpos_pos${EXT} \
1657 have_offscl${EXT} have_rusage${EXT}
1659 # these utility files and scripts may be created in the process of building
1660 # the BUILD_H_SRC file set
1662 UTIL_FILES= no_implicit.arg have_args.sh
1664 # Any .h files that are needed to compile sample code.
1666 SAMPLE_H_SRC=
1668 # Any .c files that are needed to compile sample code.
1670 # There MUST be a .c in SAMPLE_C_SRC for every .o in SAMPLE_OBJ.
1672 SAMPLE_C_SRC= sample_many.c sample_rand.c
1674 # Any .o files that are needed to compile sample code.
1676 # There MUST be a .c in SAMPLE_C_SRC for every .o in SAMPLE_OBJ.
1678 SAMPLE_OBJ= sample_many.o sample_rand.o
1680 # The complete list of Makefile vars passed down to custom/Makefile.
1682 CUSTOM_PASSDOWN= \
1683 ALLOW_CUSTOM="${ALLOW_CUSTOM}" \
1684 AR=${AR} \
1685 AWK=${AWK} \
1686 BINDIR="${BINDIR}" \
1687 BLD_TYPE="${BLD_TYPE}" \
1688 CALC_INCDIR="${CALC_INCDIR}" \
1689 CALC_SHAREDIR="${CALC_SHAREDIR}" \
1690 CAT=${CAT} \
1691 CC="${CC}" \
1692 CCERR="${CCERR}" \
1693 CCMISC="${CCMISC}" \
1694 CCOPT="${CCOPT}" \
1695 CCWARN="${CCWARN}" \
1696 CC_SHARE="${CC_SHARE}" \
1697 CFLAGS="${CFLAGS} -I.." \
1698 CHMOD=${CHMOD} \
1699 CMP=${CMP} \
1700 CO=${CO} \
1701 COMMON_CFLAGS="${COMMON_CFLAGS} -I.." \
1702 COMMON_LDFLAGS="${COMMON_LDFLAGS}" \
1703 CP=${CP} \
1704 CUSTOMCALDIR="${CUSTOMCALDIR}" \
1705 CUSTOMHELPDIR="${CUSTOMHELPDIR}" \
1706 CUSTOMINCDIR="${CUSTOMINCDIR}" \
1707 DEBUG="${DEBUG}" \
1708 DEFAULT_LIB_INSTALL_PATH="${DEFAULT_LIB_INSTALL_PATH}" \
1709 FMT=${FMT} \
1710 GREP=${GREP} \
1711 HELPDIR="${HELPDIR}" \
1712 ICFLAGS="${ICFLAGS} -I.." \
1713 ILDFLAGS="${ILDFLAGS}" \
1714 INCDIR="${INCDIR}" \
1715 LANG=${LANG} \
1716 LCC="${LCC}" \
1717 LDCONFIG=${LDCONFIG} \
1718 LDFLAGS="${LDFLAGS}" \
1719 LD_SHARE="${LD_SHARE}" \
1720 LIBCUSTCALC_SHLIB="${LIBCUSTCALC_SHLIB}" \
1721 LIBDIR="${LIBDIR}" \
1722 LN=${LN} \
1723 MAKE=${MAKE} \
1724 MAKEDEPEND=${MAKEDEPEND} \
1725 MAKE_FILE=Makefile \
1726 MKDIR=${MKDIR} \
1727 MV=${MV} \
1728 PURIFY="${PURIFY}" \
1729 Q="${Q}" \
1730 RANLIB="${RANLIB}" \
1731 RM=${RM} \
1732 RMDIR=${RMDIR} \
1733 SCRIPTDIR="${SCRIPTDIR}" \
1734 SED=${SED} \
1735 SORT=${SORT} \
1736 T=${T} \
1737 TOP_MAKE_FILE=${MAKE_FILE} \
1738 TOUCH=${TOUCH} \
1739 TRUE=${TRUE} \
1740 VERSION=${VERSION} \
1741 target=${target}
1743 # The compelte list of Makefile vars passed down to help/Makefile.
1745 HELP_PASSDOWN= \
1746 AR=${AR} \
1747 BINDIR="${BINDIR}" \
1748 CALC_INCDIR="${CALC_INCDIR}" \
1749 CALC_SHAREDIR="${CALC_SHAREDIR}" \
1750 CAT=${CAT} \
1751 CFLAGS="${CFLAGS}" \
1752 CHMOD=${CHMOD} \
1753 CMP=${CMP} \
1754 CO=${CO} \
1755 COMMON_CFLAGS="${COMMON_CFLAGS}" \
1756 COMMON_LDFLAGS="${COMMON_LDFLAGS}" \
1757 CP=${CP} \
1758 EXT=${EXT} \
1759 FMT=${FMT} \
1760 HELPDIR="${HELPDIR}" \
1761 ICFLAGS="${ICFLAGS}" \
1762 ILDFLAGS="${ILDFLAGS}" \
1763 INCDIR="${INCDIR}" \
1764 LANG=${LANG} \
1765 LCC="${LCC}" \
1766 LIBDIR="${LIBDIR}" \
1767 MAKE_FILE=Makefile \
1768 MKDIR=${MKDIR} \
1769 MV=${MV} \
1770 Q="${Q}" \
1771 RM=${RM} \
1772 RMDIR=${RMDIR} \
1773 SCRIPTDIR="${SCRIPTDIR}" \
1774 SED=${SED} \
1775 T=${T} \
1776 TOP_MAKE_FILE=${MAKE_FILE} \
1777 TOUCH=${TOUCH} \
1778 TRUE=${TRUE}
1780 # The compelte list of Makefile vars passed down to cal/Makefile.
1782 CAL_PASSDOWN= \
1783 AR=${AR} \
1784 BINDIR="${BINDIR}" \
1785 CALC_INCDIR="${CALC_INCDIR}" \
1786 CALC_SHAREDIR="${CALC_SHAREDIR}" \
1787 CAT=${CAT} \
1788 CHMOD=${CHMOD} \
1789 CMP=${CMP} \
1790 CO=${CO} \
1791 CP=${CP} \
1792 HELPDIR="${HELPDIR}" \
1793 INCDIR="${INCDIR}" \
1794 LANG=${LANG} \
1795 LIBDIR="${LIBDIR}" \
1796 MAKE_FILE=Makefile \
1797 MKDIR=${MKDIR} \
1798 MV=${MV} \
1799 Q="${Q}" \
1800 RM=${RM} \
1801 RMDIR=${RMDIR} \
1802 SCRIPTDIR="${SCRIPTDIR}" \
1803 T=${T} \
1804 TOP_MAKE_FILE=${MAKE_FILE} \
1805 TOUCH=${TOUCH} \
1806 TRUE=${TRUE}
1808 # The compelte list of Makefile vars passed down to cscript/Makefile.
1810 CSCRIPT_PASSDOWN= \
1811 AR=${AR} \
1812 BINDIR="${BINDIR}" \
1813 CALC_INCDIR="${CALC_INCDIR}" \
1814 CALC_SHAREDIR="${CALC_SHAREDIR}" \
1815 CAT=${CAT} \
1816 CHMOD=${CHMOD} \
1817 CMP=${CMP} \
1818 CO=${CO} \
1819 CP=${CP} \
1820 FMT=${FMT} \
1821 HELPDIR="${HELPDIR}" \
1822 INCDIR="${INCDIR}" \
1823 LANG=${LANG} \
1824 LIBDIR="${LIBDIR}" \
1825 MAKE_FILE=Makefile \
1826 MKDIR=${MKDIR} \
1827 MV=${MV} \
1828 Q="${Q}" \
1829 RM=${RM} \
1830 RMDIR=${RMDIR} \
1831 SCRIPTDIR="${SCRIPTDIR}" \
1832 SED=${SED} \
1833 SORT=${SORT} \
1834 T=${T} \
1835 TOP_MAKE_FILE=${MAKE_FILE} \
1836 TOUCH=${TOUCH} \
1837 TRUE=${TRUE}
1839 # complete list of .h files found (but not built) in the distribution
1841 H_SRC= ${LIB_H_SRC} ${SAMPLE_H_SRC}
1843 # complete list of .c files found (but not built) in the distribution
1845 C_SRC= ${LIBSRC} ${CALCSRC} ${UTIL_C_SRC} ${SAMPLE_C_SRC}
1847 # The list of files that describe calc's GNU Lesser General Public License
1849 LICENSE= COPYING COPYING-LGPL
1851 # These files are found (but not built) in the distribution
1853 DISTLIST= ${C_SRC} ${H_SRC} ${MAKE_FILE} BUGS CHANGES LIBRARY README \
1854 README.WINDOWS calc.man HOWTO.INSTALL ${UTIL_MISC_SRC} ${LICENSE} \
1855 sample.README calc.spec.in rpm.mk
1857 # These files are used to make (but not built) a calc .a link library
1859 CALCLIBLIST= ${LIBSRC} ${UTIL_C_SRC} ${LIB_H_SRC} ${MAKE_FILE} \
1860 ${UTIL_MISC_SRC} BUGS CHANGES LIBRARY
1862 # complete list of .o files
1864 OBJS= ${LIBOBJS} ${CALCOBJS} ${UTIL_OBJS} ${SAMPLE_OBJ}
1866 # static library build
1868 #if 0 /* start of skip for non-Gnu makefiles */
1869 ifdef ALLOW_CUSTOM
1870 #endif /* end of skip for non-Gnu makefiles */
1871 CALC_STATIC_LIBS= libcalc.a libcustcalc.a
1872 #if 0 /* start of skip for non-Gnu makefiles */
1873 else
1874 CALC_STATIC_LIBS= libcalc.a
1875 endif
1876 #endif /* end of skip for non-Gnu makefiles */
1878 # Libaraies created and used to build calc
1880 #if 0 /* start of skip for non-Gnu makefiles */
1881 ifdef ALLOW_CUSTOM
1882 #endif /* end of skip for non-Gnu makefiles */
1883 CALC_DYNAMIC_LIBS= libcalc${LIB_EXT_VERSION} libcustcalc${LIB_EXT_VERSION}
1884 #if 0 /* start of skip for non-Gnu makefiles */
1885 else
1886 CALC_DYNAMIC_LIBS= libcalc${LIB_EXT_VERSION}
1887 endif
1888 #endif /* end of skip for non-Gnu makefiles */
1890 # Symlinks of dymanic shared libraries
1892 #if 0 /* start of skip for non-Gnu makefiles */
1893 ifdef ALLOW_CUSTOM
1894 #endif /* end of skip for non-Gnu makefiles */
1895 SYM_DYNAMIC_LIBS= libcalc${LIB_EXT_VER} libcalc${LIB_EXT_VE} libcalc${LIB_EXT} \
1896 libcalc${LIB_EXT_VERS} libcustcalc${LIB_EXT_VERSION} \
1897 libcustcalc${LIB_EXT_VERS} libcustcalc${LIB_EXT_VER} \
1898 libcustcalc${LIB_EXT_VE} libcustcalc${LIB_EXT}
1899 #if 0 /* start of skip for non-Gnu makefiles */
1900 else
1901 SYM_DYNAMIC_LIBS= libcalc${LIB_EXT_VER} libcalc${LIB_EXT_VE} libcalc${LIB_EXT} \
1902 libcalc${LIB_EXT_VERS}
1903 endif
1904 #endif /* end of skip for non-Gnu makefiles */
1906 # list of sample programs to that need to be built to satisfy sample rule
1908 # NOTE: The ${SAMPLE_TARGETS} and ${SAMPLE_STATIC_TARGETS} are built but
1909 # not installed at this time.
1911 # NOTE: There must be a foo-static${EXT} in SAMPLE_STATIC_TARGETS for
1912 # every foo${EXT} in ${SAMPLE_TARGETS}.
1914 SAMPLE_TARGETS= sample_rand${EXT} sample_many${EXT}
1915 SAMPLE_STATIC_TARGETS= sample_rand-static${EXT} sample_many-static${EXT}
1917 # list of cscript programs to that need to be built to satisfy cscript/.all
1919 # NOTE: This list MUST be coordinated with the ${CSCRIPT_TARGETS} variable
1920 # in the cscript/Makefile
1922 CSCRIPT_TARGETS= cscript/mersenne cscript/piforever cscript/plus \
1923 cscript/square cscript/fproduct cscript/powerterm
1925 # dynamic first targets
1927 DYNAMIC_FIRST_TARGETS= ${LICENSE} .dynamic
1929 # static first targets
1931 STATIC_FIRST_TARGETS= ${LICENSE} .static
1933 # early targets - things needed before the main build phase can begin
1935 #if 0 /* start of skip for non-Gnu makefiles */
1936 ifdef ALLOW_CUSTOM
1937 #endif /* end of skip for non-Gnu makefiles */
1938 EARLY_TARGETS= custom/Makefile hsrc .hsrc custom/.all
1939 #if 0 /* start of skip for non-Gnu makefiles */
1940 else
1941 EARLY_TARGETS= hsrc .hsrc
1942 endif
1943 #endif /* end of skip for non-Gnu makefiles */
1945 # late targets - things needed after the main build phase is complete
1947 LATE_TARGETS= calc.1 calc.usage \
1948 cal/.all help/.all help/builtin cscript/.all \
1949 Makefile.simple
1951 # complete list of targets
1953 TARGETS= ${EARLY_TARGETS} ${BLD_TYPE} ${LATE_TARGETS}
1957 # The reason for this Makefile :-)
1961 all: ${BLD_TYPE} CHANGES
1963 prep:
1964 ${Q} ${MAKE} -f ${MAKE_FILE} all DEBUG='-g3'
1966 calc-dynamic-only: ${DYNAMIC_FIRST_TARGETS} ${EARLY_TARGETS} \
1967 ${CALC_DYNAMIC_LIBS} ${SYM_DYNAMIC_LIBS} calc${EXT} \
1968 ${SAMPLE_TARGETS} ${LATE_TARGETS}
1970 .dynamic: ${MAKE_FILE}
1971 ${Q} r="calc-dynamic-only"; \
1972 if [ "${BLD_TYPE}" != "$$r" ]; then \
1973 echo "NOTE: The host target $(target) defaults to a build" 1>&2; \
1974 echo " type of: ${BLD_TYPE}, so you need to use" 1>&2; \
1975 echo " the following make command:" 1>&2; \
1976 echo "" 1>&2; \
1977 echo " ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
1978 echo " ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
1979 echo "" 1>&2; \
1980 echo "NOTE: It is a very good idea to c first clobber any" 1>&2; \
1981 echo " previously built .o, libs and executables" 1>&2; \
1982 echo " before switching to $$r!" 1>&2; \
1983 echo "" 1>&2; \
1984 echo "=== aborting make ===" 1>&2; \
1985 exit 1; \
1987 ${Q} for i in .static calc-static${EXT} ${SAMPLE_STATIC_TARGETS} \
1988 libcalc.a custom/libcustcalc.a; do \
1989 r="calc-dynamic-only"; \
1990 if [ -r "$$i" ]; then \
1991 echo "Found the static target $$i file. You must:" 1>&2; \
1992 echo "" 1>&2; \
1993 echo " ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
1994 echo " ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
1995 echo "" 1>&2; \
1996 echo "to clean out any previously build static files." 1>&2; \
1997 echo "" 1>&2; \
1998 echo "=== aborting make ===" 1>&2; \
1999 exit 2; \
2000 fi; \
2001 done
2002 -${Q} ${TOUCH} $@
2004 calc-static-only: ${STATIC_FIRST_TARGETS} ${EARLY_TARGETS} \
2005 ${CALC_STATIC_LIBS} calc-static${EXT} \
2006 ${SAMPLE_STATIC_TARGETS} ${LATE_TARGETS}
2007 ${Q} for i in calc${EXT} ${SAMPLE_TARGETS}; do \
2008 if ${CMP} -s "$$i-static" "$$i"; then \
2009 ${TRUE}; \
2010 else \
2011 ${RM} -f "$$i"; \
2012 ${LN} "$$i-static" "$$i"; \
2013 fi; \
2014 done
2016 .static: ${MAKE_FILE}
2017 ${Q} r="calc-static-only"; \
2018 if [ "${BLD_TYPE}" != "$$r" ]; then \
2019 echo "NOTE: The host target $(target) defaults to a build" 1>&2; \
2020 echo " type of: ${BLD_TYPE}, so you need to use" 1>&2; \
2021 echo " the following make command:" 1>&2; \
2022 echo "" 1>&2; \
2023 echo " ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
2024 echo " ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
2025 echo "" 1>&2; \
2026 echo "NOTE: It is a very good idea to c first clobber any" 1>&2; \
2027 echo " previously built .o, libs and executables" 1>&2; \
2028 echo " before switching to $$r!" 1>&2; \
2029 echo "" 1>&2; \
2030 echo "=== aborting make ===" 1>&2; \
2031 exit 3; \
2033 ${Q} for i in .dynamic ${CALC_DYNAMIC_LIBS} ${SYM_DYNAMIC_LIBS} \
2034 custom/libcustcalc${LIB_EXT_VERSION}; do \
2035 r="calc-static-only"; \
2036 if [ -r "$$i" ]; then \
2037 echo "Found the dynamic target $$i file. You must:" 1>&2; \
2038 echo "" 1>&2; \
2039 echo " ${MAKE} -f ${MAKE_FILE} clobber" 1>&2; \
2040 echo " ${MAKE} -f ${MAKE_FILE} $$r BLD_TYPE=$$r" 1>&2; \
2041 echo "" 1>&2; \
2042 echo "to clean out any previously build dynamic files." 1>&2; \
2043 echo "" 1>&2; \
2044 echo "=== aborting make ===" 1>&2; \
2045 exit 4; \
2046 fi; \
2047 done
2048 -${Q} ${TOUCH} $@
2050 calc${EXT}: .hsrc ${CALCOBJS} ${CALC_DYNAMIC_LIBS} ${MAKE_FILE}
2051 ${RM} -f $@
2052 ${CC} ${CALCOBJS} ${LDFLAGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \
2053 ${READLINE_LIB} ${READLINE_EXTRAS} -o $@
2055 libcalc${LIB_EXT_VERSION}: ${LIBOBJS} ver_calc${EXT} ${MAKE_FILE}
2056 ${CC} ${LIBCALC_SHLIB} ${LIBOBJS} \
2057 ${READLINE_LIB} ${READLINE_EXTRAS} -o libcalc${LIB_EXT_VERSION}
2059 libcalc${LIB_EXT_VERS}: libcalc${LIB_EXT_VERSION}
2060 ${Q} ${RM} -f $@
2061 ${LN} -s $? $@
2063 libcalc${LIB_EXT_VER}: libcalc${LIB_EXT_VERSION}
2064 ${Q} ${RM} -f $@
2065 ${LN} -s $? $@
2067 libcalc${LIB_EXT_VE}: libcalc${LIB_EXT_VERSION}
2068 ${Q} ${RM} -f $@
2069 ${LN} -s $? $@
2071 libcalc${LIB_EXT}: libcalc${LIB_EXT_VERSION}
2072 ${Q} ${RM} -f $@
2073 ${LN} -s $? $@
2077 # calc documentation
2081 calc.1: calc.man ${MAKE_FILE}
2082 ${RM} -f $@
2083 ${Q} echo forming calc.1 from calc.man
2084 @${SED} -e 's:$${LIBDIR}:${LIBDIR}:g' \
2085 -e 's,$${BINDIR},${BINDIR},g' \
2086 -e 's,$${CALCPATH},${CALCPATH},g' \
2087 -e 's,$${SCRIPTDIR},${SCRIPTDIR},g' \
2088 -e 's,$${CALC_INCDIR},${CALC_INCDIR},g' \
2089 -e 's,$${CUSTOMCALDIR},${CUSTOMCALDIR},g' \
2090 -e 's,$${CUSTOMINCDIR},${CUSTOMINCDIR},g' \
2091 -e 's,$${CUSTOMHELPDIR},${CUSTOMHELPDIR},g' \
2092 -e 's,$${CALCRC},${CALCRC},g' < calc.man > calc.1
2093 ${Q} echo calc.man formed
2095 calc.usage: calc.1 ${MAKE_FILE}
2096 ${RM} -f $@
2097 ${Q} echo forming calc.usage from calc.1
2098 ${Q} if [ -z "${NROFF}" ]; then \
2099 LESSCHARSET=iso8859 ${CALCPAGER} calc.1; \
2100 else \
2101 ${NROFF} -man calc.1; \
2102 fi | ${COL} -b > $@
2103 ${Q} echo calc.usage formed
2108 # These rules compile the sample code against the calc library
2112 sample: ${SAMPLE_TARGETS}
2114 sample_rand${EXT}: sample_rand.o ${CALC_DYNAMIC_LIBS} ${MAKE_FILE}
2115 ${CC} sample_rand.o ${CLDFALGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \
2116 ${READLINE_LIB} ${READLINE_EXTRAS} -o $@
2118 sample_many${EXT}: sample_many.o ${CALC_DYNAMIC_LIBS} ${MAKE_FILE}
2119 ${CC} sample_many.o ${CLDFALGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \
2120 ${READLINE_LIB} ${READLINE_EXTRAS} -o $@
2124 # Special .o files
2128 hist.o: hist.c ${MAKE_FILE}
2129 ${CC} ${CFLAGS} ${TERMCONTROL} ${USE_READLINE} ${READLINE_INCLUDE} \
2130 -c hist.c
2132 seed.o: seed.c no_implicit.arg ${MAKE_FILE}
2133 ${CC} ${CFLAGS} `${CAT} no_implicit.arg` -c seed.c
2137 # The next set of rules cause the .h files BUILD_H_SRC files to be built
2138 # according tot he system and the Makefile variables above. The hsrc rule
2139 # is a convenient rule to invoke to built all of the BUILD_H_SRC.
2141 # We add in the BUILD_C_SRC files because they are similar to the
2142 # BUILD_H_SRC files in terms of the build process.
2144 # NOTE: Due to bogus shells found on one common system we must have
2145 # an non-empty else clause for every if condition. *sigh*
2146 # We also place ; ${TRUE} at the end of some commands to avoid
2147 # meaningless cosmetic messages by the same system.
2151 hsrc: ${BUILD_H_SRC} ${BUILD_C_SRC}
2153 .hsrc: ${BUILD_H_SRC} ${BUILD_C_SRC}
2154 ${Q} ${RM} -f .hsrc
2155 -${Q} ${TOUCH} .hsrc
2157 conf.h: ${MAKE_FILE}
2158 ${Q} ${RM} -f conf.h
2159 ${Q} echo 'forming conf.h'
2160 ${Q} echo '/*' > conf.h
2161 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> conf.h
2162 ${Q} echo ' */' >> conf.h
2163 ${Q} echo '' >> conf.h
2164 ${Q} echo '' >> conf.h
2165 ${Q} echo '#if !defined(__CONF_H__)' >> conf.h
2166 ${Q} echo '#define __CONF_H__' >> conf.h
2167 ${Q} echo '' >> conf.h
2168 ${Q} echo '' >> conf.h
2169 ${Q} echo '/* the default :-separated search path */' >> conf.h
2170 ${Q} echo '#if !defined(DEFAULTCALCPATH)' >> conf.h
2171 ${Q} echo '#define DEFAULTCALCPATH "${CALCPATH}"' >> conf.h
2172 ${Q} echo '#endif /* DEFAULTCALCPATH */' >> conf.h
2173 ${Q} echo '' >> conf.h
2174 ${Q} echo '/* the default :-separated startup file list */' >> conf.h
2175 ${Q} echo '#if !defined(DEFAULTCALCRC)' >> conf.h
2176 ${Q} echo '#define DEFAULTCALCRC "${CALCRC}"' >> conf.h
2177 ${Q} echo '#endif /* DEFAULTCALCRC */' >> conf.h
2178 ${Q} echo '' >> conf.h
2179 ${Q} echo '/* the location of the help directory */' >> conf.h
2180 ${Q} echo '#if !defined(HELPDIR)' >> conf.h
2181 ${Q} echo '#define HELPDIR "${HELPDIR}"' >> conf.h
2182 ${Q} echo '#endif /* HELPDIR */' >> conf.h
2183 ${Q} echo '' >> conf.h
2184 #if 0 /* start of skip for non-Gnu makefiles */
2185 ifdef ALLOW_CUSTOM
2186 #endif /* end of skip for non-Gnu makefiles */
2187 ${Q} echo '/* the location of the custom help directory */' >> conf.h
2188 ${Q} echo '#if !defined(CUSTOMHELPDIR)' >> conf.h
2189 ${Q} echo '#define CUSTOMHELPDIR "${CUSTOMHELPDIR}"' >> conf.h
2190 ${Q} echo '#endif /* CUSTOMHELPDIR */' >> conf.h
2191 ${Q} echo '' >> conf.h
2192 #if 0 /* start of skip for non-Gnu makefiles */
2193 endif
2194 #endif /* end of skip for non-Gnu makefiles */
2195 ${Q} echo '/* the default pager to use */' >> conf.h
2196 ${Q} echo '#if !defined(DEFAULTCALCPAGER)' >> conf.h
2197 ${Q} echo '#define DEFAULTCALCPAGER "${CALCPAGER}"' >> conf.h
2198 ${Q} echo '#endif /* DEFAULTCALCPAGER */' >> conf.h
2199 ${Q} echo '' >> conf.h
2200 ${Q} echo '' >> conf.h
2201 ${Q} echo '#endif /* !__CONF_H__ */' >> conf.h
2202 ${Q} echo 'conf.h formed'
2203 -@if [ -z "${Q}" ]; then \
2204 echo ''; \
2205 echo '=-=-= start of $@ =-=-='; \
2206 ${CAT} $@; \
2207 echo '=-=-= end of $@ =-=-='; \
2208 echo ''; \
2209 else \
2210 ${TRUE}; \
2213 endian_calc.h: endian${EXT} ${MAKE_FILE}
2214 ${Q} ${RM} -f endian_calc.h
2215 ${Q} echo 'forming endian_calc.h'
2216 ${Q} echo '/*' > endian_calc.h
2217 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> endian_calc.h
2218 ${Q} echo ' */' >> endian_calc.h
2219 ${Q} echo '' >> endian_calc.h
2220 ${Q} echo '' >> endian_calc.h
2221 ${Q} echo '#if !defined(__ENDIAN_CALC_H__)' >> endian_calc.h
2222 ${Q} echo '#define __ENDIAN_CALC_H__' >> endian_calc.h
2223 ${Q} echo '' >> endian_calc.h
2224 ${Q} echo '' >> endian_calc.h
2225 ${Q} echo '/* what byte order are we? */' >> endian_calc.h
2226 -${Q} if [ X"${CALC_BYTE_ORDER}" = X ]; then \
2227 if [ -f ${INCDIR}/endian.h ]; then \
2228 echo '#include <endian.h>' >> endian_calc.h; \
2229 echo '#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h; \
2230 elif [ -f ${INCDIR}/machine/endian.h ]; then \
2231 echo '#include <machine/endian.h>' >> endian_calc.h; \
2232 echo '#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h; \
2233 elif [ -f ${INCDIR}/sys/endian.h ]; then \
2234 echo '#include <sys/endian.h>' >> endian_calc.h; \
2235 echo '#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h; \
2236 elif [ -f /usr/include/endian.h ]; then \
2237 echo '#include <endian.h>' >> endian_calc.h; \
2238 echo '#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h; \
2239 elif [ -f /usr/include/machine/endian.h ]; then \
2240 echo '#include <machine/endian.h>' >> endian_calc.h; \
2241 echo '#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h; \
2242 elif [ -f /usr/include/sys/endian.h ]; then \
2243 echo '#include <sys/endian.h>' >> endian_calc.h; \
2244 echo '#define CALC_BYTE_ORDER BYTE_ORDER' >> endian_calc.h; \
2245 else \
2246 ./endian${EXT} >> endian_calc.h; \
2247 fi; \
2248 else \
2249 ./endian${EXT} >> endian_calc.h; \
2251 ${Q} echo '' >> endian_calc.h
2252 ${Q} echo '' >> endian_calc.h
2253 ${Q} echo '#endif /* !__ENDIAN_CALC_H__ */' >> endian_calc.h
2254 ${Q} echo 'endian_calc.h formed'
2255 -@if [ -z "${Q}" ]; then \
2256 echo ''; \
2257 echo '=-=-= start of $@ =-=-='; \
2258 ${CAT} $@; \
2259 echo '=-=-= end of $@ =-=-='; \
2260 echo ''; \
2261 else \
2262 ${TRUE}; \
2265 longbits.h: longbits${EXT} ${MAKE_FILE}
2266 ${Q} ${RM} -f longbits.h
2267 ${Q} echo 'forming longbits.h'
2268 ${Q} echo '/*' > longbits.h
2269 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> longbits.h
2270 ${Q} echo ' */' >> longbits.h
2271 ${Q} echo '' >> longbits.h
2272 ${Q} echo '' >> longbits.h
2273 ${Q} echo '#if !defined(__LONGBITS_H__)' >> longbits.h
2274 ${Q} echo '#define __LONGBITS_H__' >> longbits.h
2275 ${Q} echo '' >> longbits.h
2276 ${Q} echo '' >> longbits.h
2277 ${Q} ./longbits${EXT} ${LONG_BITS} >> longbits.h
2278 ${Q} echo '' >> longbits.h
2279 ${Q} echo '' >> longbits.h
2280 ${Q} echo '#endif /* !__LONGBITS_H__ */' >> longbits.h
2281 ${Q} echo 'longbits.h formed'
2282 -@if [ -z "${Q}" ]; then \
2283 echo ''; \
2284 echo '=-=-= start of $@ =-=-='; \
2285 ${CAT} $@; \
2286 echo '=-=-= end of $@ =-=-='; \
2287 echo ''; \
2288 else \
2289 ${TRUE}; \
2292 have_times.h: ${MAKE_FILE}
2293 ${Q} ${RM} -f have_times.h
2294 ${Q} echo 'forming have_times.h'
2295 ${Q} echo '/*' > have_times.h
2296 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_times.h
2297 ${Q} echo ' */' >> have_times.h
2298 ${Q} echo '' >> have_times.h
2299 ${Q} echo '' >> have_times.h
2300 ${Q} echo '#if !defined(__HAVE_TIMES_H__)' >> have_times.h
2301 ${Q} echo '#define __HAVE_TIMES_H__' >> have_times.h
2302 ${Q} echo '' >> have_times.h
2303 ${Q} echo '' >> have_times.h
2304 ${Q} echo '/* do we have <times.h>? */' >> have_times.h
2305 -${Q} if [ X"${HAVE_TIMES_H}" = X"YES" ]; then \
2306 echo '#define HAVE_TIMES_H /* yes */' >> have_times.h; \
2307 elif [ X"${HAVE_TIMES_H}" = X"NO" ]; then \
2308 echo '#undef HAVE_TIMES_H /* no */' >> have_times.h; \
2309 elif [ -f ${INCDIR}/times.h ]; then \
2310 echo '#define HAVE_TIMES_H /* yes */' >> have_times.h; \
2311 elif [ -f /usr/include/times.h ]; then \
2312 echo '#define HAVE_TIMES_H /* yes */' >> have_times.h; \
2313 else \
2314 echo '#undef HAVE_TIMES_H /* no */' >> have_times.h; \
2316 -${Q} if [ X"${HAVE_SYS_TIMES_H}" = X"YES" ]; then \
2317 echo '#define HAVE_SYS_TIMES_H /* yes */' >> have_times.h; \
2318 elif [ X"${HAVE_SYS_TIMES_H}" = X"NO" ]; then \
2319 echo '#undef HAVE_SYS_TIMES_H /* no */' >> have_times.h; \
2320 elif [ -f ${INCDIR}/sys/times.h ]; then \
2321 echo '#define HAVE_SYS_TIMES_H /* yes */' >> have_times.h; \
2322 elif [ -f /usr/include/sys/times.h ]; then \
2323 echo '#define HAVE_SYS_TIMES_H /* yes */' >> have_times.h; \
2324 else \
2325 echo '#undef HAVE_SYS_TIMES_H /* no */' >> have_times.h; \
2327 -${Q} if [ X"${HAVE_TIME_H}" = X"YES" ]; then \
2328 echo '#define HAVE_TIME_H /* yes */' >> have_times.h; \
2329 elif [ X"${HAVE_TIME_H}" = X"NO" ]; then \
2330 echo '#undef HAVE_TIME_H /* no */' >> have_times.h; \
2331 elif [ -f ${INCDIR}/time.h ]; then \
2332 echo '#define HAVE_TIME_H /* yes */' >> have_times.h; \
2333 elif [ -f /usr/include/time.h ]; then \
2334 echo '#define HAVE_TIME_H /* yes */' >> have_times.h; \
2335 else \
2336 echo '#undef HAVE_TIME_H /* no */' >> have_times.h; \
2338 -${Q} if [ X"${HAVE_SYS_TIME_H}" = X"YES" ]; then \
2339 echo '#define HAVE_SYS_TIME_H /* yes */' >> have_times.h; \
2340 elif [ X"${HAVE_SYS_TIME_H}" = X"NO" ]; then \
2341 echo '#undef HAVE_SYS_TIME_H /* no */' >> have_times.h; \
2342 elif [ -f ${INCDIR}/sys/time.h ]; then \
2343 echo '#define HAVE_SYS_TIME_H /* yes */' >> have_times.h; \
2344 elif [ -f /usr/include/sys/time.h ]; then \
2345 echo '#define HAVE_SYS_TIME_H /* yes */' >> have_times.h; \
2346 else \
2347 echo '#undef HAVE_SYS_TIME_H /* no */' >> have_times.h; \
2349 ${Q} echo '' >> have_times.h
2350 ${Q} echo '' >> have_times.h
2351 ${Q} echo '#endif /* !__HAVE_TIMES_H__ */' >> have_times.h
2352 ${Q} echo 'have_times.h formed'
2353 -@if [ -z "${Q}" ]; then \
2354 echo ''; \
2355 echo '=-=-= start of $@ =-=-='; \
2356 ${CAT} $@; \
2357 echo '=-=-= end of $@ =-=-='; \
2358 echo ''; \
2359 else \
2360 ${TRUE}; \
2363 have_stdlib.h: ${MAKE_FILE}
2364 ${Q} ${RM} -f have_stdlib.h
2365 ${Q} echo 'forming have_stdlib.h'
2366 ${Q} echo '/*' > have_stdlib.h
2367 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_stdlib.h
2368 ${Q} echo ' */' >> have_stdlib.h
2369 ${Q} echo '' >> have_stdlib.h
2370 ${Q} echo '' >> have_stdlib.h
2371 ${Q} echo '#if !defined(__HAVE_STDLIB_H__)' >> have_stdlib.h
2372 ${Q} echo '#define __HAVE_STDLIB_H__' >> have_stdlib.h
2373 ${Q} echo '' >> have_stdlib.h
2374 ${Q} echo '' >> have_stdlib.h
2375 ${Q} echo '/* do we have <stdlib.h>? */' >> have_stdlib.h
2376 -${Q} if [ X"${HAVE_STDLIB_H}" = X"YES" ]; then \
2377 echo '#define HAVE_STDLIB_H /* yes */' >> have_stdlib.h; \
2378 elif [ X"${HAVE_STDLIB_H}" = X"NO" ]; then \
2379 echo '#undef HAVE_STDLIB_H /* no */' >> have_stdlib.h; \
2380 elif [ -f ${INCDIR}/stdlib.h ]; then \
2381 echo '#define HAVE_STDLIB_H /* yes */' >> have_stdlib.h; \
2382 elif [ -f /usr/include/stdlib.h ]; then \
2383 echo '#define HAVE_STDLIB_H /* yes */' >> have_stdlib.h; \
2384 else \
2385 echo '#undef HAVE_STDLIB_H /* no */' >> have_stdlib.h; \
2387 ${Q} echo '' >> have_stdlib.h
2388 ${Q} echo '' >> have_stdlib.h
2389 ${Q} echo '#endif /* !__HAVE_STDLIB_H__ */' >> have_stdlib.h
2390 ${Q} echo 'have_stdlib.h formed'
2391 -@if [ -z "${Q}" ]; then \
2392 echo ''; \
2393 echo '=-=-= start of $@ =-=-='; \
2394 ${CAT} $@; \
2395 echo '=-=-= end of $@ =-=-='; \
2396 echo ''; \
2397 else \
2398 ${TRUE}; \
2401 have_unistd.h: ${MAKE_FILE}
2402 ${Q} ${RM} -f have_unistd.h
2403 ${Q} echo 'forming have_unistd.h'
2404 ${Q} echo '/*' > have_unistd.h
2405 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_unistd.h
2406 ${Q} echo ' */' >> have_unistd.h
2407 ${Q} echo '' >> have_unistd.h
2408 ${Q} echo '' >> have_unistd.h
2409 ${Q} echo '#if !defined(__HAVE_UNISTD_H__)' >> have_unistd.h
2410 ${Q} echo '#define __HAVE_UNISTD_H__' >> have_unistd.h
2411 ${Q} echo '' >> have_unistd.h
2412 ${Q} echo '' >> have_unistd.h
2413 ${Q} echo '/* do we have <unistd.h>? */' >> have_unistd.h
2414 -${Q} if [ X"${HAVE_UNISTD_H}" = X"YES" ]; then \
2415 echo '#define HAVE_UNISTD_H /* yes */' >> have_unistd.h; \
2416 elif [ X"${HAVE_UNISTD_H}" = X"NO" ]; then \
2417 echo '#undef HAVE_UNISTD_H /* no */' >> have_unistd.h; \
2418 elif [ -f ${INCDIR}/unistd.h ]; then \
2419 echo '#define HAVE_UNISTD_H /* yes */' >> have_unistd.h; \
2420 elif [ -f /usr/include/unistd.h ]; then \
2421 echo '#define HAVE_UNISTD_H /* yes */' >> have_unistd.h; \
2422 else \
2423 echo '#undef HAVE_UNISTD_H /* no */' >> have_unistd.h; \
2425 ${Q} echo '' >> have_unistd.h
2426 ${Q} echo '' >> have_unistd.h
2427 ${Q} echo '#endif /* !__HAVE_UNISTD_H__ */' >> have_unistd.h
2428 ${Q} echo 'have_unistd.h formed'
2429 -@if [ -z "${Q}" ]; then \
2430 echo ''; \
2431 echo '=-=-= start of $@ =-=-='; \
2432 ${CAT} $@; \
2433 echo '=-=-= end of $@ =-=-='; \
2434 echo ''; \
2435 else \
2436 ${TRUE}; \
2439 have_string.h: ${MAKE_FILE}
2440 ${Q} ${RM} -f have_string.h
2441 ${Q} echo 'forming have_string.h'
2442 ${Q} echo '/*' > have_string.h
2443 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_string.h
2444 ${Q} echo ' */' >> have_string.h
2445 ${Q} echo '' >> have_string.h
2446 ${Q} echo '' >> have_string.h
2447 ${Q} echo '#if !defined(__HAVE_STRING_H__)' >> have_string.h
2448 ${Q} echo '#define __HAVE_STRING_H__' >> have_string.h
2449 ${Q} echo '' >> have_string.h
2450 ${Q} echo '' >> have_string.h
2451 ${Q} echo '/* do we have <string.h>? */' >> have_string.h
2452 -${Q} if [ X"${HAVE_STRING_H}" = X"YES" ]; then \
2453 echo '#define HAVE_STRING_H /* yes */' >> have_string.h; \
2454 elif [ X"${HAVE_STRING_H}" = X"NO" ]; then \
2455 echo '#undef HAVE_STRING_H /* no */' >> have_string.h; \
2456 elif [ -f ${INCDIR}/string.h ]; then \
2457 echo '#define HAVE_STRING_H /* yes */' >> have_string.h; \
2458 elif [ -f /usr/include/string.h ]; then \
2459 echo '#define HAVE_STRING_H /* yes */' >> have_string.h; \
2460 else \
2461 echo '#undef HAVE_STRING_H /* no */' >> have_string.h; \
2463 ${Q} echo '' >> have_string.h
2464 ${Q} echo '' >> have_string.h
2465 ${Q} echo '#endif /* !__HAVE_STRING_H__ */' >> have_string.h
2466 ${Q} echo 'have_string.h formed'
2467 -@if [ -z "${Q}" ]; then \
2468 echo ''; \
2469 echo '=-=-= start of $@ =-=-='; \
2470 ${CAT} $@; \
2471 echo '=-=-= end of $@ =-=-='; \
2472 echo ''; \
2473 else \
2474 ${TRUE}; \
2477 terminal.h: ${MAKE_FILE}
2478 ${Q} ${RM} -f terminal.h
2479 ${Q} echo 'forming terminal.h'
2480 ${Q} echo '/*' > terminal.h
2481 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> terminal.h
2482 ${Q} echo ' */' >> terminal.h
2483 ${Q} echo '' >> terminal.h
2484 ${Q} echo '' >> terminal.h
2485 ${Q} echo '#if !defined(__TERMINAL_H__)' >> terminal.h
2486 ${Q} echo '#define __TERMINAL_H__' >> terminal.h
2487 ${Q} echo '' >> terminal.h
2488 ${Q} echo '' >> terminal.h
2489 ${Q} echo '/* determine the type of terminal interface */' >> terminal.h
2490 ${Q} echo '#if !defined(USE_TERMIOS)' >> terminal.h
2491 ${Q} echo '#if !defined(USE_TERMIO)' >> terminal.h
2492 ${Q} echo '#if !defined(USE_SGTTY)' >> terminal.h
2493 -${Q} if [ X"${TERMCONTROL}" = X"-DUSE_WIN32" ]; then \
2494 echo '/* windoz, use none of these modes */' >> terminal.h; \
2495 echo '#undef USE_TERMIOS /* <termios.h> */' >> terminal.h; \
2496 echo '#undef USE_TERMIO /* <termio.h> */' >> terminal.h; \
2497 echo '#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h; \
2498 elif [ -f ${INCDIR}/termios.h ]; then \
2499 echo '/* use termios */' >> terminal.h; \
2500 echo '#define USE_TERMIOS /* <termios.h> */' >> terminal.h; \
2501 echo '#undef USE_TERMIO /* <termio.h> */' >> terminal.h; \
2502 echo '#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h; \
2503 elif [ -f ${INCDIR}/termio.h ]; then \
2504 echo '/* use termio */' >> terminal.h; \
2505 echo '#undef USE_TERMIOS /* <termios.h> */' >> terminal.h; \
2506 echo '#define USE_TERMIO /* <termio.h> */' >> terminal.h; \
2507 echo '#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h; \
2508 elif [ -f /usr/include/termios.h ]; then \
2509 echo '/* use termios */' >> terminal.h; \
2510 echo '#define USE_TERMIOS /* <termios.h> */' >> terminal.h; \
2511 echo '#undef USE_TERMIO /* <termio.h> */' >> terminal.h; \
2512 echo '#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h; \
2513 elif [ -f /usr/include/termio.h ]; then \
2514 echo '/* use termio */' >> terminal.h; \
2515 echo '#undef USE_TERMIOS /* <termios.h> */' >> terminal.h; \
2516 echo '#define USE_TERMIO /* <termio.h> */' >> terminal.h; \
2517 echo '#undef USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h; \
2518 else \
2519 echo '/* use sgtty */' >> terminal.h; \
2520 echo '#undef USE_TERMIOS /* <termios.h> */' >> terminal.h; \
2521 echo '#undef USE_TERMIO /* <termio.h> */' >> terminal.h; \
2522 echo '#define USE_SGTTY /* <sys/ioctl.h> */' >> terminal.h; \
2524 ${Q} echo '#endif' >> terminal.h
2525 ${Q} echo '#endif' >> terminal.h
2526 ${Q} echo '#endif' >> terminal.h
2527 ${Q} echo '' >> terminal.h
2528 ${Q} echo '' >> terminal.h
2529 ${Q} echo '#endif /* !__TERMINAL_H__ */' >> terminal.h
2530 ${Q} echo 'terminal.h formed'
2531 -@if [ -z "${Q}" ]; then \
2532 echo ''; \
2533 echo '=-=-= start of $@ =-=-='; \
2534 ${CAT} $@; \
2535 echo '=-=-= end of $@ =-=-='; \
2536 echo ''; \
2537 else \
2538 ${TRUE}; \
2541 have_fpos.h: have_fpos.c ${MAKE_FILE}
2542 ${Q} ${RM} -f fpos_tmp have_fpos.h
2543 ${Q} echo 'forming have_fpos.h'
2544 ${Q} echo '/*' > have_fpos.h
2545 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_fpos.h
2546 ${Q} echo ' */' >> have_fpos.h
2547 ${Q} echo '' >> have_fpos.h
2548 ${Q} echo '' >> have_fpos.h
2549 ${Q} echo '#if !defined(__HAVE_FPOS_H__)' >> have_fpos.h
2550 ${Q} echo '#define __HAVE_FPOS_H__' >> have_fpos.h
2551 ${Q} echo '' >> have_fpos.h
2552 ${Q} echo '' >> have_fpos.h
2553 ${Q} echo '/* do we have fgetpos & fsetpos functions? */' >> have_fpos.h
2554 ${Q} ${RM} -f have_fpos.o have_fpos${EXT}
2555 -${Q} ${LCC} ${HAVE_FPOS} ${ICFLAGS} have_fpos.c -c \
2556 >/dev/null 2>&1; ${TRUE}
2557 -${Q} ${LCC} ${ILDFLAGS} have_fpos.o -o have_fpos${EXT} \
2558 >/dev/null 2>&1; ${TRUE}
2559 -${Q} ${SHELL} -c "./have_fpos${EXT} > fpos_tmp 2>/dev/null" \
2560 >/dev/null 2>&1; ${TRUE}
2561 -${Q} if [ -s fpos_tmp ]; then \
2562 ${CAT} fpos_tmp >> have_fpos.h; \
2563 else \
2564 echo '#undef HAVE_FPOS /* no */' >> have_fpos.h; \
2565 echo '' >> have_fpos.h; \
2566 echo 'typedef long FILEPOS;' >> have_fpos.h; \
2568 ${Q} echo '' >> have_fpos.h
2569 ${Q} echo '' >> have_fpos.h
2570 ${Q} echo '#endif /* !__HAVE_FPOS_H__ */' >> have_fpos.h
2571 ${Q} ${RM} -f have_fpos${EXT} have_fpos.o fpos_tmp
2572 ${Q} echo 'have_fpos.h formed'
2573 -@if [ -z "${Q}" ]; then \
2574 echo ''; \
2575 echo '=-=-= start of $@ =-=-='; \
2576 ${CAT} $@; \
2577 echo '=-=-= end of $@ =-=-='; \
2578 echo ''; \
2579 else \
2580 ${TRUE}; \
2583 have_fpos_pos.h: have_fpos_pos.c have_fpos.h have_posscl.h ${MAKE_FILE}
2584 ${Q} ${RM} -f fpos_tmp have_fpos_pos.h
2585 ${Q} echo 'forming have_fpos_pos.h'
2586 ${Q} echo '/*' > have_fpos_pos.h
2587 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' \
2588 >> have_fpos_pos.h
2589 ${Q} echo ' */' >> have_fpos_pos.h
2590 ${Q} echo '' >> have_fpos_pos.h
2591 ${Q} echo '' >> have_fpos_pos.h
2592 ${Q} echo '#if !defined(__HAVE_FPOS_POS_H__)' >> have_fpos_pos.h
2593 ${Q} echo '#define __HAVE_FPOS_POS_H__' >> have_fpos_pos.h
2594 ${Q} echo '' >> have_fpos_pos.h
2595 ${Q} echo '' >> have_fpos_pos.h
2596 ${Q} echo '/* do we have fgetpos & fsetpos functions? */' \
2597 >> have_fpos_pos.h
2598 ${Q} ${RM} -f have_fpos_pos.o have_fpos_pos${EXT}
2599 -${Q} ${LCC} ${HAVE_FPOS} ${HAVE_FPOS_POS} \
2600 ${ICFLAGS} have_fpos_pos.c -c >/dev/null 2>&1; ${TRUE}
2601 -${Q} ${LCC} ${ILDFLAGS} have_fpos_pos.o -o have_fpos_pos${EXT} \
2602 >/dev/null 2>&1; ${TRUE}
2603 -${Q} ${SHELL} -c "./have_fpos_pos${EXT} > fpos_tmp 2>/dev/null" \
2604 >/dev/null 2>&1; ${TRUE}
2605 -${Q} if [ -s fpos_tmp ]; then \
2606 ${CAT} fpos_tmp >> have_fpos_pos.h; \
2607 else \
2608 echo '#undef HAVE_FPOS_POS /* no */' >> have_fpos_pos.h; \
2609 echo '' >> have_fpos_pos.h; \
2610 echo '#undef FPOS_POS_BITS' >> have_fpos_pos.h; \
2612 ${Q} echo '' >> have_fpos_pos.h
2613 ${Q} echo '' >> have_fpos_pos.h
2614 ${Q} echo '#endif /* !__HAVE_FPOS_POS_H__ */' >> have_fpos_pos.h
2615 ${Q} ${RM} -f have_fpos_pos${EXT} have_fpos_pos.o fpos_tmp
2616 ${Q} echo 'have_fpos_pos.h formed'
2617 -@if [ -z "${Q}" ]; then \
2618 echo ''; \
2619 echo '=-=-= start of $@ =-=-='; \
2620 ${CAT} $@; \
2621 echo '=-=-= end of $@ =-=-='; \
2622 echo ''; \
2623 else \
2624 ${TRUE}; \
2627 fposval.h: fposval.c have_fpos.h have_fpos_pos.h have_offscl.h have_posscl.h \
2628 endian_calc.h ${MAKE_FILE}
2629 ${Q} ${RM} -f fposv_tmp fposval.h
2630 ${Q} echo 'forming fposval.h'
2631 ${Q} echo '/*' > fposval.h
2632 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> fposval.h
2633 ${Q} echo ' */' >> fposval.h
2634 ${Q} echo '' >> fposval.h
2635 ${Q} echo '' >> fposval.h
2636 ${Q} echo '#if !defined(__FPOSVAL_H__)' >> fposval.h
2637 ${Q} echo '#define __FPOSVAL_H__' >> fposval.h
2638 ${Q} echo '' >> fposval.h
2639 ${Q} echo '' >> fposval.h
2640 ${Q} echo '/* what are our file position & size types? */' >> fposval.h
2641 ${Q} ${RM} -f fposval.o fposval${EXT}
2642 -${Q} ${LCC} ${ICFLAGS} ${FPOS_BITS} ${OFF_T_BITS} \
2643 ${DEV_BITS} ${INODE_BITS} fposval.c -c >/dev/null 2>&1; ${TRUE}
2644 -${Q} ${LCC} ${ILDFLAGS} fposval.o -o fposval${EXT} >/dev/null \
2645 2>&1; ${TRUE}
2646 ${Q} ${SHELL} -c "./fposval${EXT} fposv_tmp >> fposval.h 2>/dev/null" \
2647 >/dev/null 2>&1; ${TRUE}
2648 ${Q} echo '' >> fposval.h
2649 ${Q} echo '' >> fposval.h
2650 ${Q} echo '#endif /* !__FPOSVAL_H__ */' >> fposval.h
2651 ${Q} ${RM} -f fposval${EXT} fposval.o fposv_tmp
2652 ${Q} echo 'fposval.h formed'
2653 -@if [ -z "${Q}" ]; then \
2654 echo ''; \
2655 echo '=-=-= start of $@ =-=-='; \
2656 ${CAT} $@; \
2657 echo '=-=-= end of $@ =-=-='; \
2658 echo ''; \
2659 else \
2660 ${TRUE}; \
2663 have_const.h: have_const.c ${MAKE_FILE}
2664 ${Q} ${RM} -f have_const const_tmp have_const.h
2665 ${Q} echo 'forming have_const.h'
2666 ${Q} echo '/*' > have_const.h
2667 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_const.h
2668 ${Q} echo ' */' >> have_const.h
2669 ${Q} echo '' >> have_const.h
2670 ${Q} echo '' >> have_const.h
2671 ${Q} echo '#if !defined(__HAVE_CONST_H__)' >> have_const.h
2672 ${Q} echo '#define __HAVE_CONST_H__' >> have_const.h
2673 ${Q} echo '' >> have_const.h
2674 ${Q} echo '' >> have_const.h
2675 ${Q} echo '/* do we have or want const? */' >> have_const.h
2676 ${Q} ${RM} -f have_const.o have_const${EXT}
2677 -${Q} ${LCC} ${ICFLAGS} ${HAVE_CONST} have_const.c -c \
2678 >/dev/null 2>&1; ${TRUE}
2679 -${Q} ${LCC} ${ILDFLAGS} have_const.o -o have_const${EXT} \
2680 >/dev/null 2>&1; ${TRUE}
2681 -${Q} ${SHELL} -c "./have_const${EXT} > const_tmp 2>/dev/null" \
2682 >/dev/null 2>&1; ${TRUE}
2683 -${Q} if [ -s const_tmp ]; then \
2684 ${CAT} const_tmp >> have_const.h; \
2685 else \
2686 echo '#undef HAVE_CONST /* no */' >> have_const.h; \
2687 echo '#undef CONST' >> have_const.h; \
2688 echo '#define CONST /* no */' >> have_const.h; \
2690 ${Q} echo '' >> have_const.h
2691 ${Q} echo '' >> have_const.h
2692 ${Q} echo '#endif /* !__HAVE_CONST_H__ */' >> have_const.h
2693 ${Q} ${RM} -f have_const${EXT} have_const.o const_tmp
2694 ${Q} echo 'have_const.h formed'
2695 -@if [ -z "${Q}" ]; then \
2696 echo ''; \
2697 echo '=-=-= start of $@ =-=-='; \
2698 ${CAT} $@; \
2699 echo '=-=-= end of $@ =-=-='; \
2700 echo ''; \
2701 else \
2702 ${TRUE}; \
2705 have_offscl.h: have_offscl.c ${MAKE_FILE}
2706 ${Q} ${RM} -f offscl_tmp have_offscl.h
2707 ${Q} echo 'forming have_offscl.h'
2708 ${Q} echo '/*' > have_offscl.h
2709 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_offscl.h
2710 ${Q} echo ' */' >> have_offscl.h
2711 ${Q} echo '' >> have_offscl.h
2712 ${Q} echo '' >> have_offscl.h
2713 ${Q} echo '#if !defined(__HAVE_OFFSCL_H__)' >> have_offscl.h
2714 ${Q} echo '#define __HAVE_OFFSCL_H__' >> have_offscl.h
2715 ${Q} echo '' >> have_offscl.h
2716 ${Q} echo '' >> have_offscl.h
2717 ${Q} ${RM} -f have_offscl.o have_offscl${EXT}
2718 -${Q} ${LCC} ${ICFLAGS} ${HAVE_OFFSCL} have_offscl.c -c \
2719 >/dev/null 2>&1; ${TRUE}
2720 -${Q} ${LCC} ${ILDFLAGS} have_offscl.o -o have_offscl${EXT} \
2721 >/dev/null 2>&1; ${TRUE}
2722 -${Q} ${SHELL} -c "./have_offscl${EXT} > offscl_tmp 2>/dev/null" \
2723 >/dev/null 2>&1; ${TRUE}
2724 -${Q} if [ -s offscl_tmp ]; then \
2725 ${CAT} offscl_tmp >> have_offscl.h; \
2726 else \
2727 echo '#undef HAVE_OFF_T_SCALAR /* off_t is not a simple value */' \
2728 >> have_offscl.h; \
2730 ${Q} echo '' >> have_offscl.h
2731 ${Q} echo '' >> have_offscl.h
2732 ${Q} echo '#endif /* !__HAVE_OFFSCL_H__ */' >> have_offscl.h
2733 ${Q} ${RM} -f have_offscl${EXT} have_offscl.o offscl_tmp
2734 ${Q} echo 'have_offscl.h formed'
2735 -@if [ -z "${Q}" ]; then \
2736 echo ''; \
2737 echo '=-=-= start of $@ =-=-='; \
2738 ${CAT} $@; \
2739 echo '=-=-= end of $@ =-=-='; \
2740 echo ''; \
2741 else \
2742 ${TRUE}; \
2745 have_posscl.h: have_posscl.c have_fpos.h ${MAKE_FILE}
2746 ${Q} ${RM} -f have_posscl have_posscl.o posscl_tmp have_posscl.h
2747 ${Q} echo 'forming have_posscl.h'
2748 ${Q} echo '/*' > have_posscl.h
2749 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_posscl.h
2750 ${Q} echo ' */' >> have_posscl.h
2751 ${Q} echo '' >> have_posscl.h
2752 ${Q} echo '' >> have_posscl.h
2753 ${Q} echo '#if !defined(__HAVE_POSSCL_H__)' >> have_posscl.h
2754 ${Q} echo '#define __HAVE_POSSCL_H__' >> have_posscl.h
2755 ${Q} echo '' >> have_posscl.h
2756 ${Q} echo '' >> have_posscl.h
2757 ${Q} ${RM} -f have_posscl.o have_posscl
2758 -${Q} ${LCC} ${ICFLAGS} ${HAVE_POSSCL} have_posscl.c -c \
2759 >/dev/null 2>&1; ${TRUE}
2760 -${Q} ${LCC} ${ILDFLAGS} have_posscl.o -o have_posscl \
2761 >/dev/null 2>&1; ${TRUE}
2762 -${Q} ${SHELL} -c "./have_posscl > posscl_tmp 2>/dev/null" \
2763 >/dev/null 2>&1; ${TRUE}
2764 -${Q} if [ -s posscl_tmp ]; then \
2765 ${CAT} posscl_tmp >> have_posscl.h; \
2766 else \
2767 echo '/* FILEPOS is not a simple value */' >> have_posscl.h; \
2768 echo '#undef HAVE_FILEPOS_SCALAR' >> have_posscl.h; \
2770 ${Q} echo '' >> have_posscl.h
2771 ${Q} echo '' >> have_posscl.h
2772 ${Q} echo '#endif /* !__HAVE_POSSCL_H__ */' >> have_posscl.h
2773 ${Q} ${RM} -f have_posscl have_posscl.o posscl_tmp
2774 ${Q} echo 'have_posscl.h formed'
2775 -@if [ -z "${Q}" ]; then \
2776 echo ''; \
2777 echo '=-=-= start of $@ =-=-='; \
2778 ${CAT} $@; \
2779 echo '=-=-= end of $@ =-=-='; \
2780 echo ''; \
2781 else \
2782 ${TRUE}; \
2785 align32.h: align32.c longbits.h have_unistd.h ${MAKE_FILE}
2786 ${Q} ${RM} -f align32 align32_tmp align32.h
2787 ${Q} echo 'forming align32.h'
2788 ${Q} echo '/*' > align32.h
2789 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> align32.h
2790 ${Q} echo ' */' >> align32.h
2791 ${Q} echo '' >> align32.h
2792 ${Q} echo '' >> align32.h
2793 ${Q} echo '#if !defined(__MUST_ALIGN32_H__)' >> align32.h
2794 ${Q} echo '#define __MUST_ALIGN32_H__' >> align32.h
2795 ${Q} echo '' >> align32.h
2796 ${Q} echo '' >> align32.h
2797 ${Q} echo '/* must we always align 32 bit accesses? */' >> align32.h
2798 -${Q} if [ X"-DMUST_ALIGN32" = X${ALIGN32} ]; then \
2799 echo '/* forced to align 32 bit values */' >> align32.h; \
2800 echo '#define MUST_ALIGN32' >> align32.h; \
2801 else \
2802 ${TRUE}; \
2804 -${Q} if [ X"-UMUST_ALIGN32" = X${ALIGN32} ]; then \
2805 echo '/* forced to not require 32 bit alignment */' >> align32.h; \
2806 echo '#undef MUST_ALIGN32' >> align32.h; \
2807 else \
2808 ${TRUE}; \
2810 -${Q} if [ X = X${ALIGN32} ]; then \
2811 ${RM} -f align32.o align32${EXT}; \
2812 ${LCC} ${ICFLAGS} ${ALIGN32} align32.c -c >/dev/null 2>&1; \
2813 ${LCC} ${ILDFLAGS} align32.o -o align32${EXT} >/dev/null 2>&1; \
2814 ${SHELL} -c \
2815 "./align32${EXT} >align32_tmp 2>/dev/null" >/dev/null 2>&1; \
2816 if [ -s align32_tmp ]; then \
2817 ${CAT} align32_tmp >> align32.h; \
2818 else \
2819 echo '/* guess we must align 32 bit values */' >> align32.h; \
2820 echo '#define MUST_ALIGN32' >> align32.h; \
2821 fi; \
2822 ${RM} -f align32${EXT} align32.o align32_tmp core; \
2823 else \
2824 ${TRUE}; \
2826 ${Q} echo '' >> align32.h
2827 ${Q} echo '' >> align32.h
2828 ${Q} echo '#endif /* !__MUST_ALIGN32_H__ */' >> align32.h
2829 ${Q} echo 'align32.h formed'
2830 -@if [ -z "${Q}" ]; then \
2831 echo ''; \
2832 echo '=-=-= start of $@ =-=-='; \
2833 ${CAT} $@; \
2834 echo '=-=-= end of $@ =-=-='; \
2835 echo ''; \
2836 else \
2837 ${TRUE}; \
2840 have_uid_t.h: have_uid_t.c have_unistd.h ${MAKE_FILE}
2841 ${Q} ${RM} -f have_uid_t uid_tmp have_uid_t.h
2842 ${Q} echo 'forming have_uid_t.h'
2843 ${Q} echo '/*' > have_uid_t.h
2844 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_uid_t.h
2845 ${Q} echo ' */' >> have_uid_t.h
2846 ${Q} echo '' >> have_uid_t.h
2847 ${Q} echo '' >> have_uid_t.h
2848 ${Q} echo '#if !defined(__HAVE_UID_T_H__)' >> have_uid_t.h
2849 ${Q} echo '#define __HAVE_UID_T_H__' >> have_uid_t.h
2850 ${Q} echo '' >> have_uid_t.h
2851 ${Q} echo '' >> have_uid_t.h
2852 ${Q} echo '/* do we have or want uid_t? */' >> have_uid_t.h
2853 ${Q} ${RM} -f have_uid_t.o have_uid_t${EXT}
2854 -${Q} ${LCC} ${ICFLAGS} ${HAVE_UID_T} have_uid_t.c -c \
2855 >/dev/null 2>&1; ${TRUE}
2856 -${Q} ${LCC} ${ILDFLAGS} have_uid_t.o -o have_uid_t${EXT} \
2857 >/dev/null 2>&1; ${TRUE}
2858 -${Q} ${SHELL} -c "./have_uid_t${EXT} > uid_tmp 2>/dev/null" \
2859 >/dev/null 2>&1; ${TRUE}
2860 -${Q} if [ -s uid_tmp ]; then \
2861 ${CAT} uid_tmp >> have_uid_t.h; \
2862 else \
2863 echo '#undef HAVE_UID_T /* no */' >> have_uid_t.h; \
2865 ${Q} echo '' >> have_uid_t.h
2866 ${Q} echo '' >> have_uid_t.h
2867 ${Q} echo '#endif /* !__HAVE_UID_T_H__ */' >> have_uid_t.h
2868 ${Q} ${RM} -f have_uid_t${EXT} have_uid_t.o uid_tmp
2869 ${Q} echo 'have_uid_t.h formed'
2870 -@if [ -z "${Q}" ]; then \
2871 echo ''; \
2872 echo '=-=-= start of $@ =-=-='; \
2873 ${CAT} $@; \
2874 echo '=-=-= end of $@ =-=-='; \
2875 echo ''; \
2876 else \
2877 ${TRUE}; \
2880 have_newstr.h: have_newstr.c ${MAKE_FILE}
2881 ${Q} ${RM} -f newstr_tmp have_newstr.h
2882 ${Q} echo 'forming have_newstr.h'
2883 ${Q} echo '/*' > have_newstr.h
2884 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_newstr.h
2885 ${Q} echo ' */' >> have_newstr.h
2886 ${Q} echo '' >> have_newstr.h
2887 ${Q} echo '' >> have_newstr.h
2888 ${Q} echo '#if !defined(__HAVE_NEWSTR_H__)' >> have_newstr.h
2889 ${Q} echo '#define __HAVE_NEWSTR_H__' >> have_newstr.h
2890 ${Q} echo '' >> have_newstr.h
2891 ${Q} echo '' >> have_newstr.h
2892 ${Q} echo '/* do we have or want memcpy(), memset() & strchr()? */' \
2893 >> have_newstr.h
2894 ${Q} ${RM} -f have_newstr.o have_newstr${EXT}
2895 -${Q} ${LCC} ${ICFLAGS} ${HAVE_NEWSTR} have_newstr.c -c \
2896 >/dev/null 2>&1; ${TRUE}
2897 -${Q} ${LCC} ${ILDFLAGS} have_newstr.o -o have_newstr${EXT} \
2898 >/dev/null 2>&1; ${TRUE}
2899 -${Q} ${SHELL} -c "./have_newstr${EXT} > newstr_tmp 2>/dev/null" \
2900 >/dev/null 2>&1; ${TRUE}
2901 -${Q} if [ -s newstr_tmp ]; then \
2902 ${CAT} newstr_tmp >> have_newstr.h; \
2903 else \
2904 echo '#undef HAVE_NEWSTR /* no */' >> have_newstr.h; \
2906 ${Q} echo '' >> have_newstr.h
2907 ${Q} echo '' >> have_newstr.h
2908 ${Q} echo '#endif /* !__HAVE_NEWSTR_H__ */' >> have_newstr.h
2909 ${Q} ${RM} -f have_newstr${EXT} have_newstr.o newstr_tmp
2910 ${Q} echo 'have_newstr.h formed'
2911 -@if [ -z "${Q}" ]; then \
2912 echo ''; \
2913 echo '=-=-= start of $@ =-=-='; \
2914 ${CAT} $@; \
2915 echo '=-=-= end of $@ =-=-='; \
2916 echo ''; \
2917 else \
2918 ${TRUE}; \
2921 have_memmv.h: have_memmv.c ${MAKE_FILE}
2922 ${Q} ${RM} -f have_memmv have_memmv.o memmv_tmp have_memmv.h
2923 ${Q} echo 'forming have_memmv.h'
2924 ${Q} echo '/*' > have_memmv.h
2925 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_memmv.h
2926 ${Q} echo ' */' >> have_memmv.h
2927 ${Q} echo '' >> have_memmv.h
2928 ${Q} echo '' >> have_memmv.h
2929 ${Q} echo '#if !defined(__HAVE_MEMMV_H__)' >> have_memmv.h
2930 ${Q} echo '#define __HAVE_MEMMV_H__' >> have_memmv.h
2931 ${Q} echo '' >> have_memmv.h
2932 ${Q} echo '' >> have_memmv.h
2933 ${Q} echo '/* do we have or want memmove()? */' >> have_memmv.h
2934 ${Q} ${RM} -f have_memmv.o have_memmv
2935 -${Q} ${LCC} ${ICFLAGS} ${HAVE_MEMMOVE} have_memmv.c -c \
2936 >/dev/null 2>&1; ${TRUE}
2937 -${Q} ${LCC} ${ILDFLAGS} have_memmv.o -o have_memmv \
2938 >/dev/null 2>&1; ${TRUE}
2939 -${Q} ${SHELL} -c "./have_memmv > memmv_tmp 2>/dev/null" \
2940 >/dev/null 2>&1; ${TRUE}
2941 -${Q} if [ -s memmv_tmp ]; then \
2942 ${CAT} memmv_tmp >> have_memmv.h; \
2943 else \
2944 echo '#undef HAVE_MEMMOVE /* no */' >> have_memmv.h; \
2946 ${Q} echo '' >> have_memmv.h
2947 ${Q} echo '' >> have_memmv.h
2948 ${Q} echo '#endif /* !__HAVE_MEMMV_H__ */' >> have_memmv.h
2949 ${Q} ${RM} -f have_memmv have_memmv.o memmv_tmp
2950 ${Q} echo 'have_memmv.h formed'
2951 -@if [ -z "${Q}" ]; then \
2952 echo ''; \
2953 echo '=-=-= start of $@ =-=-='; \
2954 ${CAT} $@; \
2955 echo '=-=-= end of $@ =-=-='; \
2956 echo ''; \
2957 else \
2958 ${TRUE}; \
2961 have_ustat.h: have_ustat.c ${MAKE_FILE}
2962 ${Q} ${RM} -f ustat_tmp have_ustat.h
2963 ${Q} echo 'forming have_ustat.h'
2964 ${Q} echo '/*' > have_ustat.h
2965 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_ustat.h
2966 ${Q} echo ' */' >> have_ustat.h
2967 ${Q} echo '' >> have_ustat.h
2968 ${Q} echo '' >> have_ustat.h
2969 ${Q} echo '#if !defined(__HAVE_USTAT_H__)' >> have_ustat.h
2970 ${Q} echo '#define __HAVE_USTAT_H__' >> have_ustat.h
2971 ${Q} echo '' >> have_ustat.h
2972 ${Q} echo '' >> have_ustat.h
2973 ${Q} echo '/* do we have or want ustat()? */' >> have_ustat.h
2974 ${Q} ${RM} -f have_ustat.o have_ustat${EXT}
2975 -${Q} ${LCC} ${ICFLAGS} ${HAVE_USTAT} have_ustat.c -c \
2976 >/dev/null 2>&1; ${TRUE}
2977 -${Q} ${LCC} ${ILDFLAGS} have_ustat.o -o have_ustat${EXT} \
2978 >/dev/null 2>&1; ${TRUE}
2979 -${Q} ${SHELL} -c "./have_ustat${EXT} > ustat_tmp 2>/dev/null" \
2980 >/dev/null 2>&1; ${TRUE}
2981 -${Q} if [ -s ustat_tmp ]; then \
2982 ${CAT} ustat_tmp >> have_ustat.h; \
2983 else \
2984 echo '#undef HAVE_USTAT /* no */' >> have_ustat.h; \
2986 ${Q} echo '' >> have_ustat.h
2987 ${Q} echo '' >> have_ustat.h
2988 ${Q} echo '#endif /* !__HAVE_USTAT_H__ */' >> have_ustat.h
2989 ${Q} ${RM} -f have_ustat${EXT} have_ustat.o ustat_tmp
2990 ${Q} echo 'have_ustat.h formed'
2991 -@if [ -z "${Q}" ]; then \
2992 echo ''; \
2993 echo '=-=-= start of $@ =-=-='; \
2994 ${CAT} $@; \
2995 echo '=-=-= end of $@ =-=-='; \
2996 echo ''; \
2997 else \
2998 ${TRUE}; \
3001 have_getsid.h: have_getsid.c ${MAKE_FILE}
3002 ${Q} ${RM} -f getsid_tmp have_getsid.h
3003 ${Q} echo 'forming have_getsid.h'
3004 ${Q} echo '/*' > have_getsid.h
3005 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_getsid.h
3006 ${Q} echo ' */' >> have_getsid.h
3007 ${Q} echo '' >> have_getsid.h
3008 ${Q} echo '' >> have_getsid.h
3009 ${Q} echo '#if !defined(__HAVE_GETSID_H__)' >> have_getsid.h
3010 ${Q} echo '#define __HAVE_GETSID_H__' >> have_getsid.h
3011 ${Q} echo '' >> have_getsid.h
3012 ${Q} echo '' >> have_getsid.h
3013 ${Q} echo '/* do we have or want getsid()? */' >> have_getsid.h
3014 ${Q} ${RM} -f have_getsid.o have_getsid${EXT}
3015 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETSID} have_getsid.c -c \
3016 >/dev/null 2>&1; ${TRUE}
3017 -${Q} ${LCC} ${ILDFLAGS} have_getsid.o -o have_getsid \
3018 >/dev/null 2>&1; ${TRUE}
3019 -${Q} ${SHELL} -c "./have_getsid${EXT} > getsid_tmp 2>/dev/null" \
3020 >/dev/null 2>&1; ${TRUE}
3021 -${Q} if [ -s getsid_tmp ]; then \
3022 ${CAT} getsid_tmp >> have_getsid.h; \
3023 else \
3024 echo '#undef HAVE_GETSID /* no */' >> have_getsid.h; \
3026 ${Q} echo '' >> have_getsid.h
3027 ${Q} echo '' >> have_getsid.h
3028 ${Q} echo '#endif /* !__HAVE_GETSID_H__ */' >> have_getsid.h
3029 ${Q} ${RM} -f have_getsid${EXT} have_getsid.o getsid_tmp
3030 ${Q} echo 'have_getsid.h formed'
3031 -@if [ -z "${Q}" ]; then \
3032 echo ''; \
3033 echo '=-=-= start of $@ =-=-='; \
3034 ${CAT} $@; \
3035 echo '=-=-= end of $@ =-=-='; \
3036 echo ''; \
3037 else \
3038 ${TRUE}; \
3041 have_getpgid.h: have_getpgid.c ${MAKE_FILE}
3042 ${Q} ${RM} -f getpgid_tmp have_getpgid.h
3043 ${Q} echo 'forming have_getpgid.h'
3044 ${Q} echo '/*' > have_getpgid.h
3045 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> \
3046 have_getpgid.h
3047 ${Q} echo ' */' >> have_getpgid.h
3048 ${Q} echo '' >> have_getpgid.h
3049 ${Q} echo '' >> have_getpgid.h
3050 ${Q} echo '#if !defined(__HAVE_GETPGID_H__)' >> have_getpgid.h
3051 ${Q} echo '#define __HAVE_GETPGID_H__' >> have_getpgid.h
3052 ${Q} echo '' >> have_getpgid.h
3053 ${Q} echo '' >> have_getpgid.h
3054 ${Q} echo '/* do we have or want getpgid()? */' >> have_getpgid.h
3055 ${Q} ${RM} -f have_getpgid.o have_getpgid${EXT}
3056 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETPGID} have_getpgid.c -c \
3057 >/dev/null 2>&1; ${TRUE}
3058 -${Q} ${LCC} ${ILDFLAGS} have_getpgid.o -o have_getpgid${EXT} \
3059 >/dev/null 2>&1; ${TRUE}
3060 -${Q} ${SHELL} -c "./have_getpgid${EXT} > getpgid_tmp 2>/dev/null" \
3061 >/dev/null 2>&1; ${TRUE}
3062 -${Q} if [ -s getpgid_tmp ]; then \
3063 ${CAT} getpgid_tmp >> have_getpgid.h; \
3064 else \
3065 echo '#undef HAVE_GETPGID /* no */' >> have_getpgid.h; \
3067 ${Q} echo '' >> have_getpgid.h
3068 ${Q} echo '' >> have_getpgid.h
3069 ${Q} echo '#endif /* !__HAVE_GETPGID_H__ */' >> have_getpgid.h
3070 ${Q} ${RM} -f have_getpgid${EXT} have_getpgid.o getpgid_tmp
3071 ${Q} echo 'have_getpgid.h formed'
3072 -@if [ -z "${Q}" ]; then \
3073 echo ''; \
3074 echo '=-=-= start of $@ =-=-='; \
3075 ${CAT} $@; \
3076 echo '=-=-= end of $@ =-=-='; \
3077 echo ''; \
3078 else \
3079 ${TRUE}; \
3082 have_gettime.h: have_gettime.c ${MAKE_FILE}
3083 ${Q} ${RM} -f gettime_tmp have_gettime.h
3084 ${Q} echo 'forming have_gettime.h'
3085 ${Q} echo '/*' > have_gettime.h
3086 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> \
3087 have_gettime.h
3088 ${Q} echo ' */' >> have_gettime.h
3089 ${Q} echo '' >> have_gettime.h
3090 ${Q} echo '' >> have_gettime.h
3091 ${Q} echo '#if !defined(__HAVE_GETTIME_H__)' >> have_gettime.h
3092 ${Q} echo '#define __HAVE_GETTIME_H__' >> have_gettime.h
3093 ${Q} echo '' >> have_gettime.h
3094 ${Q} echo '' >> have_gettime.h
3095 ${Q} echo '/* do we have or want clock_gettime()? */' >> have_gettime.h
3096 ${Q} ${RM} -f have_gettime.o have_gettime${EXT}
3097 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETTIME} have_gettime.c -c \
3098 >/dev/null 2>&1; ${TRUE}
3099 -${Q} ${LCC} ${ILDFLAGS} have_gettime.o -o have_gettime \
3100 >/dev/null 2>&1; ${TRUE}
3101 -${Q} ${SHELL} -c "./have_gettime${EXT} > gettime_tmp 2>/dev/null" \
3102 >/dev/null 2>&1; ${TRUE}
3103 -${Q} if [ -s gettime_tmp ]; then \
3104 ${CAT} gettime_tmp >> have_gettime.h; \
3105 else \
3106 echo '#undef HAVE_GETTIME /* no */' >> have_gettime.h; \
3108 ${Q} echo '' >> have_gettime.h
3109 ${Q} echo '' >> have_gettime.h
3110 ${Q} echo '#endif /* !__HAVE_GETTIME_H__ */' >> have_gettime.h
3111 ${Q} ${RM} -f have_gettime${EXT} have_gettime.o gettime_tmp
3112 ${Q} echo 'have_gettime.h formed'
3113 -@if [ -z "${Q}" ]; then \
3114 echo ''; \
3115 echo '=-=-= start of $@ =-=-='; \
3116 ${CAT} $@; \
3117 echo '=-=-= end of $@ =-=-='; \
3118 echo ''; \
3119 else \
3120 ${TRUE}; \
3123 have_getprid.h: have_getprid.c ${MAKE_FILE}
3124 ${Q} ${RM} -f getprid_tmp have_getprid.h
3125 ${Q} echo 'forming have_getprid.h'
3126 ${Q} echo '/*' > have_getprid.h
3127 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> \
3128 have_getprid.h
3129 ${Q} echo ' */' >> have_getprid.h
3130 ${Q} echo '' >> have_getprid.h
3131 ${Q} echo '' >> have_getprid.h
3132 ${Q} echo '#if !defined(__HAVE_GETPRID_H__)' >> have_getprid.h
3133 ${Q} echo '#define __HAVE_GETPRID_H__' >> have_getprid.h
3134 ${Q} echo '' >> have_getprid.h
3135 ${Q} echo '' >> have_getprid.h
3136 ${Q} echo '/* do we have or want getprid()? */' >> have_getprid.h
3137 ${Q} ${RM} -f have_getprid.o have_getprid${EXT}
3138 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETPRID} have_getprid.c -c \
3139 >/dev/null 2>&1; ${TRUE}
3140 -${Q} ${LCC} ${ILDFLAGS} have_getprid.o -o have_getprid${EXT} \
3141 >/dev/null 2>&1; ${TRUE}
3142 -${Q} ${SHELL} -c "./have_getprid${EXT} > getprid_tmp 2>/dev/null" \
3143 >/dev/null 2>&1; ${TRUE}
3144 -${Q} if [ -s getprid_tmp ]; then \
3145 ${CAT} getprid_tmp >> have_getprid.h; \
3146 else \
3147 echo '#undef HAVE_GETPRID /* no */' >> have_getprid.h; \
3149 ${Q} echo '' >> have_getprid.h
3150 ${Q} echo '' >> have_getprid.h
3151 ${Q} echo '#endif /* !__HAVE_GETPRID_H__ */' >> have_getprid.h
3152 ${Q} ${RM} -f have_getprid${EXT} have_getprid.o getprid_tmp
3153 ${Q} echo 'have_getprid.h formed'
3154 -@if [ -z "${Q}" ]; then \
3155 echo ''; \
3156 echo '=-=-= start of $@ =-=-='; \
3157 ${CAT} $@; \
3158 echo '=-=-= end of $@ =-=-='; \
3159 echo ''; \
3160 else \
3161 ${TRUE}; \
3164 have_urandom.h: ${MAKE_FILE}
3165 ${Q} ${RM} -f have_urandom.h
3166 ${Q} echo 'forming have_urandom.h'
3167 ${Q} echo '/*' > have_urandom.h
3168 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> \
3169 have_urandom.h
3170 ${Q} echo ' */' >> have_urandom.h
3171 ${Q} echo '' >> have_urandom.h
3172 ${Q} echo '' >> have_urandom.h
3173 ${Q} echo '#if !defined(__HAVE_URANDOM_H__)' >> have_urandom.h
3174 ${Q} echo '#define __HAVE_URANDOM_H__' >> have_urandom.h
3175 ${Q} echo '' >> have_urandom.h
3176 ${Q} echo '' >> have_urandom.h
3177 ${Q} echo '/* do we have /dev/urandom? */' >> have_urandom.h
3178 -${Q} if [ X"${HAVE_URANDOM_H}" = X"YES" ]; then \
3179 echo '#define HAVE_URANDOM_H /* yes */' >> have_urandom.h; \
3180 elif [ X"${HAVE_URANDOM_H}" = X"NO" ]; then \
3181 echo '#undef HAVE_URANDOM_H /* no */' >> have_urandom.h; \
3182 elif [ -r /dev/urandom ] 2>/dev/null; then \
3183 echo '#define HAVE_URANDOM_H /* yes */' >> have_urandom.h; \
3184 else \
3185 echo '#undef HAVE_URANDOM_H /* no */' >> have_urandom.h; \
3187 ${Q} echo '' >> have_urandom.h
3188 ${Q} echo '' >> have_urandom.h
3189 ${Q} echo '#endif /* !__HAVE_URANDOM_H__ */' >> have_urandom.h
3190 ${Q} echo 'have_urandom.h formed'
3191 -@if [ -z "${Q}" ]; then \
3192 echo ''; \
3193 echo '=-=-= start of $@ =-=-='; \
3194 ${CAT} $@; \
3195 echo '=-=-= end of $@ =-=-='; \
3196 echo ''; \
3197 else \
3198 ${TRUE}; \
3201 have_rusage.h: have_rusage.c ${MAKE_FILE}
3202 ${Q} ${RM} -f rusage_tmp have_rusage.h
3203 ${Q} echo 'forming have_rusage.h'
3204 ${Q} echo '/*' > have_rusage.h
3205 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> \
3206 have_rusage.h
3207 ${Q} echo ' */' >> have_rusage.h
3208 ${Q} echo '' >> have_rusage.h
3209 ${Q} echo '' >> have_rusage.h
3210 ${Q} echo '#if !defined(__HAVE_RUSAGE_H__)' >> have_rusage.h
3211 ${Q} echo '#define __HAVE_RUSAGE_H__' >> have_rusage.h
3212 ${Q} echo '' >> have_rusage.h
3213 ${Q} echo '' >> have_rusage.h
3214 ${Q} echo '/* do we have or want getrusage()? */' >> have_rusage.h
3215 ${Q} ${RM} -f have_rusage.o have_rusage${EXT}
3216 -${Q} ${LCC} ${ICFLAGS} ${HAVE_GETRUSAGE} have_rusage.c -c \
3217 >/dev/null 2>&1; ${TRUE}
3218 -${Q} ${LCC} ${ILDFLAGS} have_rusage.o -o have_rusage${EXT} \
3219 >/dev/null 2>&1; ${TRUE}
3220 -${Q} ${SHELL} -c "./have_rusage${EXT} > rusage_tmp 2>/dev/null" \
3221 >/dev/null 2>&1; ${TRUE}
3222 -${Q} if [ -s rusage_tmp ]; then \
3223 ${CAT} rusage_tmp >> have_rusage.h; \
3224 else \
3225 echo '#undef HAVE_GETRUSAGE /* no */' >> have_rusage.h; \
3227 ${Q} echo '' >> have_rusage.h
3228 ${Q} echo '' >> have_rusage.h
3229 ${Q} echo '#endif /* !__HAVE_RUSAGE_H__ */' >> have_rusage.h
3230 ${Q} ${RM} -f have_rusage${EXT} have_rusage.o rusage_tmp
3231 ${Q} echo 'have_rusage.h formed'
3232 -@if [ -z "${Q}" ]; then \
3233 echo ''; \
3234 echo '=-=-= start of $@ =-=-='; \
3235 ${CAT} $@; \
3236 echo '=-=-= end of $@ =-=-='; \
3237 echo ''; \
3238 else \
3239 ${TRUE}; \
3242 have_strdup.h: have_strdup.c ${MAKE_FILE}
3243 ${Q} ${RM} -f strdup_tmp have_strdup.h
3244 ${Q} echo 'forming have_strdup.h'
3245 ${Q} echo '/*' > have_strdup.h
3246 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_strdup.h
3247 ${Q} echo ' */' >> have_strdup.h
3248 ${Q} echo '' >> have_strdup.h
3249 ${Q} echo '' >> have_strdup.h
3250 ${Q} echo '#if !defined(__HAVE_STRDUP_H__)' >> have_strdup.h
3251 ${Q} echo '#define __HAVE_STRDUP_H__' >> have_strdup.h
3252 ${Q} echo '' >> have_strdup.h
3253 ${Q} echo '' >> have_strdup.h
3254 ${Q} echo '/* do we have or want getstrdup()? */' >> have_strdup.h
3255 ${Q} ${RM} -f have_strdup.o have_strdup${EXT}
3256 -${Q} ${LCC} ${ICFLAGS} ${HAVE_STRDUP} have_strdup.c -c \
3257 >/dev/null 2>&1; ${TRUE}
3258 -${Q} ${LCC} ${ILDFLAGS} have_strdup.o -o have_strdup \
3259 >/dev/null 2>&1; ${TRUE}
3260 -${Q} ${SHELL} -c "./have_strdup${EXT} > strdup_tmp 2>/dev/null" \
3261 >/dev/null 2>&1; ${TRUE}
3262 -${Q} if [ -s strdup_tmp ]; then \
3263 ${CAT} strdup_tmp >> have_strdup.h; \
3264 else \
3265 echo '#undef HAVE_STRDUP /* no */' >> have_strdup.h; \
3267 ${Q} echo '' >> have_strdup.h
3268 ${Q} echo '' >> have_strdup.h
3269 ${Q} echo '#endif /* !__HAVE_STRDUP_H__ */' >> have_strdup.h
3270 ${Q} ${RM} -f have_strdup${EXT} have_strdup.o strdup_tmp
3271 ${Q} echo 'have_strdup.h formed'
3272 -@if [ -z "${Q}" ]; then \
3273 echo ''; \
3274 echo '=-=-= start of $@ =-=-='; \
3275 ${CAT} $@; \
3276 echo '=-=-= end of $@ =-=-='; \
3277 echo ''; \
3278 else \
3279 ${TRUE}; \
3282 args.h: have_stdvs.c have_varvs.c have_string.h have_unistd.h have_string.h
3283 ${Q} ${RM} -f args.h
3284 ${Q} echo 'forming args.h'
3285 ${Q} echo '/*' > args.h
3286 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> args.h
3287 ${Q} echo ' */' >> args.h
3288 ${Q} echo '' >> args.h
3289 ${Q} echo '' >> args.h
3290 ${Q} echo '#if !defined(__ARGS_H__)' >> args.h
3291 ${Q} echo '#define __ARGS_H__' >> args.h
3292 ${Q} echo '' >> args.h
3293 ${Q} echo '' >> args.h
3294 ${Q} ${RM} -f have_stdvs.o have_stdvs${EXT}
3295 -${Q} ${LCC} ${ICFLAGS} ${HAVE_VSPRINTF} have_stdvs.c -c \
3296 >/dev/null 2>&1; ${TRUE}
3297 -${Q} ${LCC} ${ILDFLAGS} have_stdvs.o -o have_stdvs${EXT} \
3298 >/dev/null 2>&1; ${TRUE}
3299 -${Q} if ./have_stdvs${EXT} >>args.h 2>/dev/null; then \
3300 ${TOUCH} have_args.sh; \
3301 else \
3302 ${TRUE}; \
3304 -${Q} if [ ! -f have_args.sh ] && [ X"${HAVE_VSPRINTF}" = X ]; then \
3305 ${RM} -f have_stdvs.o have_stdvs${EXT} have_varvs.o; \
3306 ${RM} -f have_varvs${EXT}; \
3307 ${LCC} ${ICFLAGS} ${HAVE_VSPRINTF} have_varvs.c -c \
3308 2>/dev/null; \
3309 ${LCC} ${ILDFLAGS} have_varvs.o -o have_varvs${EXT} 2>/dev/null; \
3310 if ./have_varvs${EXT} >>args.h 2>/dev/null; then \
3311 ${TOUCH} have_args.sh; \
3312 else \
3313 ${TRUE}; \
3314 fi; \
3315 else \
3316 ${TRUE}; \
3318 -${Q} if [ -f have_args.sh ]; then \
3319 echo 'exit 0' > have_args.sh; \
3320 else \
3321 echo 'exit 1' > have_args.sh; \
3322 echo "Unable to determine what type of variable args and"; \
3323 echo "what type of vsprintf() should be used. Set or change"; \
3324 echo "the Makefile variable HAVE_VSPRINTF."; \
3326 ${Q} sh ./have_args.sh
3327 ${Q} echo '' >> args.h
3328 ${Q} echo '' >> args.h
3329 ${Q} echo '#endif /* !__ARGS_H__ */' >> args.h
3330 ${Q} ${RM} -f have_stdvs.o have_varvs.o have_varvs${EXT} have_args.sh
3331 ${Q} ${RM} -f core
3332 ${Q} echo 'args.h formed'
3333 -@if [ -z "${Q}" ]; then \
3334 echo ''; \
3335 echo '=-=-= start of $@ =-=-='; \
3336 ${CAT} $@; \
3337 echo '=-=-= end of $@ =-=-='; \
3338 echo ''; \
3339 else \
3340 ${TRUE}; \
3343 calcerr.h: calcerr.tbl calcerr_h.sed calcerr_h.awk ${MAKE_FILE}
3344 ${Q} ${RM} -f calerr.h
3345 ${Q} echo 'forming calcerr.h'
3346 ${Q} echo '/*' > calcerr.h
3347 ${Q} echo ' * DO NOT EDIT' >> calcerr.h
3348 ${Q} echo ' *' >> calcerr.h
3349 ${Q} echo ' * generated by calcerr.tbl via Makefile' >> calcerr.h
3350 ${Q} echo ' */' >> calcerr.h
3351 ${Q} echo '' >> calcerr.h
3352 ${Q} echo '' >> calcerr.h
3353 ${Q} echo '#if !defined(__CALCERR_H__)' >> calcerr.h
3354 ${Q} echo '#define __CALCERR_H__' >> calcerr.h
3355 ${Q} echo '' >> calcerr.h
3356 ${Q} echo '' >> calcerr.h
3357 ${Q} ${SED} -f calcerr_h.sed < calcerr.tbl | \
3358 ${AWK} -f calcerr_h.awk >> calcerr.h
3359 ${Q} echo '' >> calcerr.h
3360 ${Q} echo '' >> calcerr.h
3361 ${Q} echo '#endif /* !__CALCERR_H__ */' >> calcerr.h
3362 ${Q} echo 'calcerr.h formed'
3363 -@if [ -z "${Q}" ]; then \
3364 echo ''; \
3365 echo '=-=-= start of $@ =-=-='; \
3366 ${CAT} $@; \
3367 echo '=-=-= end of $@ =-=-='; \
3368 echo ''; \
3369 else \
3370 ${TRUE}; \
3373 calcerr.c: calcerr.tbl calcerr_c.sed calcerr_c.awk ${MAKE_FILE}
3374 ${Q} ${RM} -f calerr.c
3375 ${Q} echo 'forming calcerr.c'
3376 ${Q} echo '/*' > calcerr.c
3377 ${Q} echo ' * DO NOT EDIT' >> calcerr.c
3378 ${Q} echo ' *' >> calcerr.c
3379 ${Q} echo ' * generated by calcerr.tbl via Makefile' >> calcerr.c
3380 ${Q} echo ' */' >> calcerr.c
3381 ${Q} echo '' >> calcerr.c
3382 ${Q} ${SED} -f calcerr_c.sed < calcerr.tbl | \
3383 ${AWK} -f calcerr_c.awk >> calcerr.c
3384 ${Q} echo 'calcerr.c formed'
3385 -@if [ -z "${Q}" ]; then \
3386 echo ''; \
3387 echo '=-=-= start of $@ =-=-='; \
3388 ${CAT} $@; \
3389 echo '=-=-= end of $@ =-=-='; \
3390 echo ''; \
3391 else \
3392 ${TRUE}; \
3395 no_implicit.arg: no_implicit.c ${MAKE_FILE}
3396 ${Q} ${RM} -f no_implicit${EXT} no_implicit.o no_implicit.arg
3397 ${Q} echo 'forming no_implicit.arg'
3398 -${Q} if [ X"${HAVE_NO_IMPLICIT}" = X"YES" ]; then \
3399 echo ""'-Wno-implicit' > no_implicit.arg; \
3400 elif [ X"${HAVE_NO_IMPLICIT}" = X"NO" ]; then \
3401 ${TOUCH} no_implicit.arg; \
3402 else \
3403 ${LCC} -Wno-implicit ${ICFLAGS} -DHAVE_NO_IMPLICIT \
3404 no_implicit.c -c >/dev/null 2>&1; \
3405 ${LCC} ${ILDFLAGS} no_implicit.o -o no_implicit${EXT} \
3406 >/dev/null 2>&1; \
3407 ${SHELL} -c "./no_implicit${EXT} > no_implicit.arg 2>/dev/null" \
3408 >/dev/null 2>&1; ${TRUE}; \
3410 ${Q} echo 'no_implicit.arg formed'
3411 -@if [ -z "${Q}" ]; then \
3412 echo ''; \
3413 echo '=-=-= start of $@ =-=-='; \
3414 ${CAT} $@; \
3415 echo '=-=-= end of $@ =-=-='; \
3416 echo ''; \
3417 else \
3418 ${TRUE}; \
3421 have_unused.h: have_unused.c ${MAKE_FILE}
3422 ${Q} ${RM} -f unused_tmp have_unused.h
3423 ${Q} echo 'forming have_unused.h'
3424 ${Q} echo '/*' > have_unused.h
3425 ${Q} echo ' * DO NOT EDIT -- generated by the Makefile' >> have_unused.h
3426 ${Q} echo ' */' >> have_unused.h
3427 ${Q} echo '' >> have_unused.h
3428 ${Q} echo '' >> have_unused.h
3429 ${Q} echo '#if !defined(__HAVE_UNUSED_H__)' >> have_unused.h
3430 ${Q} echo '#define __HAVE_UNUSED_H__' >> have_unused.h
3431 ${Q} echo '' >> have_unused.h
3432 ${Q} echo '' >> have_unused.h
3433 ${Q} echo '/* do we have/want the unused attribute? */' >> have_unused.h
3434 ${Q} ${RM} -f have_unused.o have_unused${EXT}
3435 -${Q} ${LCC} ${ICFLAGS} ${HAVE_UNUSED} have_unused.c -c \
3436 >/dev/null 2>&1; ${TRUE}
3437 -${Q} ${LCC} ${ILDFLAGS} have_unused.o -o have_unused \
3438 >/dev/null 2>&1; ${TRUE}
3439 -${Q} ${SHELL} -c "./have_unused${EXT} > unused_tmp 2>/dev/null" \
3440 >/dev/null 2>&1; ${TRUE}
3441 -${Q} if [ -s unused_tmp ]; then \
3442 ${CAT} unused_tmp >> have_unused.h; \
3443 else \
3444 echo '#undef HAVE_UNUSED /* no */' >> have_unused.h; \
3445 echo '#undef UNUSED' >> have_unused.h; \
3446 echo '#define UNUSED /* no */' >> have_unused.h; \
3448 ${Q} echo '' >> have_unused.h
3449 ${Q} echo '' >> have_unused.h
3450 ${Q} echo '#endif /* !__HAVE_UNUSED_H__ */' >> have_unused.h
3451 ${Q} ${RM} -f have_unused${EXT} have_unused.o unused_tmp
3452 ${Q} echo 'have_unused.h formed'
3453 -@if [ -z "${Q}" ]; then \
3454 echo ''; \
3455 echo '=-=-= start of $@ =-=-='; \
3456 ${CAT} $@; \
3457 echo '=-=-= end of $@ =-=-='; \
3458 echo ''; \
3459 else \
3460 ${TRUE}; \
3465 # Build .h files for windoz based systems
3467 # This is really a internal utility rule that is used to create the
3468 # win32 sub-directory for distribution.
3472 win32_hsrc: win32.mkdef ${MAKE_FILE}
3473 ${Q} echo 'forming win32 directory'
3474 ${Q} ${RM} -rf win32
3475 ${Q} ${MKDIR} win32
3476 ${Q} ${CP} ${UTIL_C_SRC} win32
3477 ${Q} ${CP} ${UTIL_MISC_SRC} win32
3478 ${Q} ${CP} ${MAKE_FILE} win32/${MAKE_FILE}
3479 ${Q} (cd win32; \
3480 echo "${MAKE} -f ${MAKE_FILE} hsrc `${CAT} win32.mkdef` EXT="; \
3481 ${MAKE} -f ${MAKE_FILE} hsrc `${CAT} win32.mkdef` EXT=; \
3482 ${RM} -f ${UTIL_C_SRC}; \
3483 ${RM} -f ${UTIL_MISC_SRC}; \
3484 ${RM} -f ${UTIL_OBJS}; \
3485 ${RM} -f ${UTIL_PROGS}; \
3486 ${RM} -f ${UTIL_FILES}; \
3487 ${RM} -f ${MAKE_FILE})
3488 ${Q} echo 'win32 directory formed'
3492 # These rules are used in the process of building the BUILD_H_SRC.
3496 endian.o: endian.c have_unistd.h
3497 ${LCC} ${ICFLAGS} ${CALC_BYTE_ORDER} endian.c -c
3499 endian${EXT}: endian.o
3500 ${RM} -f $@
3501 ${LCC} ${ICFLAGS} endian.o -o $@
3503 longbits.o: longbits.c have_unistd.h
3504 ${LCC} ${ICFLAGS} longbits.c -c
3506 longbits${EXT}: longbits.o
3507 ${RM} -f $@
3508 ${LCC} ${ICFLAGS} longbits.o -o $@
3512 # These two .all rules are used to determine of the lower level
3513 # directory has had its all rule performed.
3517 cal/.all: cal/Makefile
3518 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3519 ${V} echo '=-=-=-=-= Invoking all rule for cal =-=-=-=-='
3520 ${RM} -f $@
3521 cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} all
3522 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3523 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3525 help/.all: help/Makefile
3526 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3527 ${V} echo '=-=-=-=-= Invoking all rule for help =-=-=-=-='
3528 ${RM} -f $@
3529 cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} all
3530 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3531 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3533 help/builtin: help/Makefile \
3534 func.c help/builtin.top help/builtin.end help/funclist.sed
3535 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3536 ${V} echo '=-=-=-=-= Invoking builtin rule for help =-=-=-=-='
3537 ${RM} -f $@
3538 cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} builtin
3539 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3540 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3542 cscript/.all: ${CSCRIPT_TARGETS}
3544 ${CSCRIPT_TARGETS}: cscript/Makefile
3545 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3546 ${V} echo '=-=-=-=-= Invoking all rule for cscript =-=-=-=-='
3547 ${RM} -f cscript/.all
3548 cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} all
3549 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3550 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3552 #if 0 /* start of skip for non-Gnu makefiles */
3553 ifdef ALLOW_CUSTOM
3554 #endif /* end of skip for non-Gnu makefiles */
3555 custom/.all: custom/Makefile
3556 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3557 ${V} echo '=-=-=-=-= Invoking all rule for custom =-=-=-=-='
3558 ${RM} -f $@
3559 cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} all
3560 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3561 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3563 custom/libcustcalc${LIB_EXT_VERSION}: custom/Makefile
3564 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3565 ${V} echo '=-=-=-=-= Invoking all rule for custom =-=-=-=-='
3566 cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@
3567 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3568 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3570 libcustcalc${LIB_EXT_VERSION}: custom/libcustcalc${LIB_EXT_VERSION}
3571 ${Q} ${RM} -f $@
3572 ${CP} -p $? $@
3574 libcustcalc${LIB_EXT_VERS}: custom/libcustcalc${LIB_EXT_VERSION}
3575 ${Q} ${RM} -f $@
3576 ${LN} -s $? $@
3578 libcustcalc${LIB_EXT_VER}: libcustcalc${LIB_EXT_VERSION}
3579 ${Q} ${RM} -f $@
3580 ${LN} -s $? $@
3582 libcustcalc${LIB_EXT_VE}: libcustcalc${LIB_EXT_VERSION}
3583 ${Q} ${RM} -f $@
3584 ${LN} -s $? $@
3586 libcustcalc${LIB_EXT}: libcustcalc${LIB_EXT_VERSION}
3587 ${Q} ${RM} -f $@
3588 ${LN} -s $? $@
3589 #if 0 /* start of skip for non-Gnu makefiles */
3590 endif
3591 #endif /* end of skip for non-Gnu makefiles */
3595 # building calc-static and static lib*.a libraires
3599 calc-static${EXT}: .hsrc ${CALCOBJS} \
3600 ${CALC_STATIC_LIBS} ${MAKE_FILE}
3601 ${RM} -f $@
3602 ${CC} ${LDFLAGS} ${CALCOBJS} ${LD_STATIC} ${CALC_STATIC_LIBS} \
3603 ${READLINE_LIB} ${READLINE_EXTRAS} -o $@
3605 libcustcalc.a: custom/libcustcalc.a
3606 ${Q} ${RM} -f $@
3607 ${CP} -f $? $@
3609 libcalc.a: ${LIBOBJS} ${MAKE_FILE}
3610 ${RM} -f libcalc.a
3611 ${AR} qc libcalc.a ${LIBOBJS}
3612 ${RANLIB} libcalc.a
3613 ${CHMOD} 0644 libcalc.a
3615 #if 0 /* start of skip for non-Gnu makefiles */
3616 ifdef ALLOW_CUSTOM
3617 #endif /* end of skip for non-Gnu makefiles */
3618 custom/libcustcalc.a: custom/Makefile
3619 cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} libcustcalc.a
3620 #if 0 /* start of skip for non-Gnu makefiles */
3621 endif
3622 #endif /* end of skip for non-Gnu makefiles */
3624 sample_rand-static${EXT}: sample_rand.o ${CALC_STATIC_LIBS} ${MAKE_FILE}
3625 ${CC} ${LDFLAGS} sample_rand.o ${LD_STATIC} \
3626 ${CALC_STATIC_LIBS} ${READLINE_LIB} ${READLINE_EXTRAS} -o $@
3628 sample_many-static${EXT}: sample_many.o ${CALC_STATIC_LIBS} ${MAKE_FILE}
3629 ${CC} ${LDFLAGS} sample_many.o ${LD_STATIC} \
3630 ${CALC_STATIC_LIBS} ${READLINE_LIB} ${READLINE_EXTRAS} -o $@
3634 # Home grown make dependency rules. Your system make not support
3635 # or have the needed tools. You can ignore this section.
3637 # We will form a skelaton tree of *.c files containing only #include "foo.h"
3638 # lines and .h files containing the same lines surrounded by multiple include
3639 # prevention lines. This allows us to build a static depend list that will
3640 # satisfy all possible cpp symbol definition combinations.
3644 depend: custom/Makefile hsrc
3645 ${Q} if [ -f ${MAKE_FILE}.bak ]; then \
3646 echo "${MAKE_FILE}.bak exists, remove or move it"; \
3647 exit 1; \
3648 else \
3649 ${TRUE}; \
3651 ${V} echo '=-=-=-=-= Invoking depend rule for cscript =-=-=-=-='
3652 ${Q} cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} depend
3653 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3654 ${V} echo '=-=-=-=-= Invoking depend rule for custom =-=-=-=-='
3655 ${Q} cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} depend
3656 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
3657 ${Q} echo forming skel
3658 ${Q} ${RM} -rf skel
3659 ${Q} ${MKDIR} skel
3660 -${Q} for i in ${C_SRC} ${BUILD_C_SRC}; do \
3661 ${SED} -n '/^#[ ]*include[ ]*"/p' "$$i" | \
3662 ${GREP} -v '\.\./getopt/getopt\.h' > "skel/$$i"; \
3663 done
3664 ${Q} ${MKDIR} skel/custom
3665 -${Q} for i in ${H_SRC} ${BUILD_H_SRC} custom.h /dev/null; do \
3666 if [ X"$$i" != X"/dev/null" ]; then \
3667 tag="`echo $$i | ${SED} 's/[\.+,:]/_/g'`"; \
3668 echo "#if !defined($$tag)" > "skel/$$i"; \
3669 echo "#define $$tag" >> "skel/$$i"; \
3670 ${SED} -n '/^#[ ]*include[ ]*"/p' "$$i" | \
3671 LANG=C ${SORT} -u >> "skel/$$i"; \
3672 echo '#endif /* '"$$tag"' */' >> "skel/$$i"; \
3673 fi; \
3674 done
3675 ${Q} ${RM} -f skel/makedep.out
3676 ${Q} echo skel formed
3677 ${Q} echo forming dependency list
3678 ${Q} :> skel/makedep.out
3679 ${Q} cd skel; \
3680 ${MAKEDEPEND} -w 1 -f makedep.out ${C_SRC} ${BUILD_C_SRC}
3681 -${Q} for i in ${C_SRC} ${BUILD_C_SRC} /dev/null; do \
3682 if [ X"$$i" != X"/dev/null" ]; then \
3683 echo "$$i" | ${SED} 's/^\(.*\)\.c/\1.o: \1.c/'; \
3684 fi; \
3685 done >> skel/makedep.out
3686 ${Q} LANG=C ${SORT} -u skel/makedep.out -o skel/makedep.out
3687 ${Q} echo dependency list formed
3688 ${Q} echo forming new ${MAKE_FILE}
3689 ${Q} ${RM} -f ${MAKE_FILE}.bak
3690 ${Q} ${MV} ${MAKE_FILE} ${MAKE_FILE}.bak
3691 ${Q} ${SED} -n '1,/^# DO NOT DELETE THIS LINE/p' \
3692 ${MAKE_FILE}.bak > ${MAKE_FILE}
3693 ${Q} ${GREP} -v '^#' skel/makedep.out >> ${MAKE_FILE}
3694 ${Q} ${RM} -rf skel
3695 -${Q} if ${CMP} -s ${MAKE_FILE}.bak ${MAKE_FILE}; then \
3696 echo 'top level ${MAKE_FILE} was already up to date'; \
3697 ${MV} -f ${MAKE_FILE}.bak ${MAKE_FILE}; \
3698 else \
3699 ${RM} -f ${MAKE_FILE}.tmp; \
3700 ${MV} ${MAKE_FILE} ${MAKE_FILE}.tmp; \
3701 if [ -d RCS -a ! -w "${MAKE_FILE}" ]; then \
3702 ${CO} -l ${MAKE_FILE}; \
3703 fi ;\
3704 ${MV} ${MAKE_FILE}.tmp ${MAKE_FILE}; \
3705 if [ -d RCS ]; then \
3706 echo '********************************************************'; \
3707 echo 'new top level ${MAKE_FILE} formed -- need to check it in'; \
3708 echo '********************************************************'; \
3709 fi; \
3712 # generate the list of h files for lower level depend use
3714 h_list:
3715 -${Q} for i in ${H_SRC} ${BUILD_H_SRC} /dev/null; do \
3716 if [ X"$$i" != X"/dev/null" ]; then \
3717 echo $$i; \
3718 fi; \
3719 done
3723 # calc version
3725 # calc_version:
3726 # This rule is the most accurate as it uses calc source to
3727 # produce the version value. This rule produces a full
3728 # version string. Note that the full version could be 4
3729 # or 3 levels long depending on the minor patch number.
3731 # calc_vers:
3732 # This rule is the most accurate as it uses calc source to
3733 # produce the version value. This rule produces only a
3734 # 3 level version string.
3736 # calc_ver:
3737 # This rule is the most accurate as it uses calc source to
3738 # produce the version value. This rule produces only a
3739 # 2 level version string.
3741 # calc_ve:
3742 # This rule is the most accurate as it uses calc source to
3743 # produce the version value. This rule produces only a
3744 # 1 level version string.
3746 # version:
3747 # This rule simply echos the value found in this makefile.
3748 # This rule produces the full version string. Note that the
3749 # full version could be 4 or 3 levels long depending on the
3750 # minor patch number.
3752 # vers:
3753 # This rule simply echos the value found in this makefile.
3754 # This rule produces only a 3 level version string.
3756 # ver:
3757 # This rule simply echos the value found in this makefile.
3758 # This rule produces only a 2 level version string.
3760 # ve:
3761 # This rule simply echos the value found in this makefile.
3762 # This rule produces only a 1 level version string.
3766 calc_version: ver_calc${EXT}
3767 @./ver_calc${EXT}
3769 calc_vers: ver_calc${EXT}
3770 @./ver_calc${EXT} -V
3772 calc_ver: ver_calc${EXT}
3773 @./ver_calc${EXT} -V | ${SED} -e 's/\.[^.]*$$//'
3775 calc_ve: ver_calc${EXT}
3776 @./ver_calc${EXT} -V | ${SED} -e 's/\.[^.]*\.[^.]*$$//'
3778 version:
3779 @echo ${VERSION}
3781 vers:
3782 @echo ${VERS}
3784 ver:
3785 @echo ${VER}
3788 @echo ${VE}
3790 ver_calc${EXT}: version.c have_unused.h
3791 ${RM} -f $@
3792 ${LCC} ${ICFLAGS} -DCALC_VER ${ILDFLAGS} version.c -o $@
3796 # File distribution list generation. You can ignore this section.
3798 # We will form the names of source files as if they were in a
3799 # sub-directory called calc.
3803 distlist: custom/Makefile ${DISTLIST}
3804 ${Q} (for i in ${DISTLIST} /dev/null; do \
3805 if [ X"$$i" != X"/dev/null" ]; then \
3806 echo $$i; \
3807 fi; \
3808 done; \
3809 for i in ${BUILD_H_SRC} ${BUILD_C_SRC} /dev/null; do \
3810 if [ X"$$i" != X"/dev/null" ]; then \
3811 echo win32/$$i; \
3812 fi; \
3813 done; \
3814 (cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} $@); \
3815 (cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} $@); \
3816 (cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@); \
3817 (cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} $@) \
3818 ) | LANG=C ${SORT}
3820 distdir: custom/Makefile
3821 ${Q} (echo .; \
3822 echo win32; \
3823 (cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} $@); \
3824 (cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} $@); \
3825 (cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@); \
3826 (cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} $@) \
3827 ) | LANG=C ${SORT}
3829 calcliblist: custom/Makefile
3830 ${Q} (for i in ${CALCLIBLIST} /dev/null; do \
3831 if [ X"$$i" != X"/dev/null" ]; then \
3832 echo $$i; \
3833 fi; \
3834 done; \
3835 (cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} $@); \
3836 (cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} $@); \
3837 (cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@); \
3838 (cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} $@) \
3839 ) | LANG=C ${SORT}
3841 calcliblistfmt:
3842 ${Q} ${MAKE} -f Makefile calcliblist | \
3843 ${FMT} -64 | ${SED} -e 's/^/ /'
3845 #if 0 /* start of skip for non-Gnu makefiles */
3846 custom/Makefile: ${MAKE_FILE} custom/Makefile.head custom/Makefile.tail
3847 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3848 ${Q} ${RM} -f $@
3849 ${Q} ${CAT} custom/Makefile.head > $@
3850 ${Q} ${SED} -n -e \
3851 "/^# start of host target cut/,/^# end of host target cut/p" \
3852 ${MAKE_FILE} >> $@
3853 ${Q} ${CAT} custom/Makefile.tail >> $@
3854 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3856 Makefile.simple: ${MAKE_FILE} custom/Makefile.simple
3857 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3858 ${Q} ${RM} -f $@
3859 ${Q} ${AWK} '/^#if 0/{skp=1} {if(!skp){print $$0}} /^#endif/{skp=0}' \
3860 ${MAKE_FILE} | \
3861 ${SED} -e 's/cd custom; $${MAKE} -f Makefile/&.simple/g' > $@
3862 ${Q} echo >> $@
3863 ${Q} echo 'Makefile.simple:' >> $@
3864 ${Q} echo ' $${Q} if [ ! -f Makefile.simple ]; then '"\\" >> $@
3865 ${Q} echo ' $${CP} -f $${MAKE_FILE} $$@; fi' >> $@
3866 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3868 custom/Makefile.simple: custom/Makefile
3869 ${Q} cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} Makefile.simple
3870 #endif /* end of skip for non-Gnu makefiles */
3874 # Doing a 'make check' will cause the regression test suite to be executed.
3875 # This rule will try to build anything that needs to be built as well.
3877 # Doing a 'make chk' will cause only the context around interesting
3878 # (and error) messages to be printed. Unlike 'make check', this
3879 # rule does not cause things to be built. I.e., the all rule is
3880 # not invoked.
3884 check: all ./cal/regress.cal
3885 ${CALC_ENV} ./calc${EXT} -d -q read regress
3887 chk: ./cal/regress.cal
3888 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
3889 ${CALC_ENV} ./calc${EXT} -d -q read regress 2>&1 | ${AWK} -f check.awk
3890 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
3894 # debug
3896 # make env:
3897 # * print major Makefile variables
3899 # make mkdebug:
3900 # * print major Makefile variables
3901 # * build anything not yet built
3903 # make debug:
3904 # * remove everything that was previously built
3905 # * print major Makefile variables
3906 # * make everything
3907 # * run the regression tests
3910 env:
3911 @echo '=-=-=-=-= dumping major make variables =-=-=-=-='
3912 @echo 'ALIGN32=${ALIGN32}'; echo ''
3913 @echo 'ALLOW_CUSTOM=${ALLOW_CUSTOM}'; echo ''
3914 @echo 'AR=${AR}'; echo ''
3915 @echo 'AWK=${AWK}'; echo ''
3916 @echo 'BINDIR=${BINDIR}'; echo ''
3917 @echo 'BLD_TYPE=${BLD_TYPE}'; echo ''
3918 @echo 'BUILD_C_SRC=${BUILD_C_SRC}'; echo ''
3919 @echo 'BUILD_H_SRC=${BUILD_H_SRC}'; echo ''
3920 @echo 'BYTE_ORDER=${BYTE_ORDER}'; echo ''
3921 @echo 'CALCLIBLIST=${CALCLIBLIST}'; echo ''
3922 @echo 'CALCOBJS=${CALCOBJS}'; echo ''
3923 @echo 'CALCPAGER=${CALCPAGER}'; echo ''
3924 @echo 'CALCPATH=${CALCPATH}'; echo ''
3925 @echo 'CALCRC=${CALCRC}'; echo ''
3926 @echo 'CALCSRC=${CALCSRC}'; echo ''
3927 @echo 'CALC_DYNAMIC_LIBS=${CALC_DYNAMIC_LIBS}'; echo ''
3928 @echo 'CALC_ENV=${CALC_ENV}'; echo ''
3929 @echo 'CALC_INCDIR=${CALC_INCDIR}'; echo ''
3930 @echo 'CALC_SHAREDIR=${CALC_SHAREDIR}'; echo ''
3931 @echo 'CALC_STATIC_LIBS=${CALC_STATIC_LIBS}'; echo ''
3932 @echo 'CAL_PASSDOWN=${CAL_PASSDOWN}'; echo ''
3933 @echo 'CAT=${CAT}'; echo ''
3934 @echo 'CATDIR=${CATDIR}'; echo ''
3935 @echo 'CATEXT=${CATEXT}'; echo ''
3936 @echo 'CATMODE=${CATMODE}'; echo ''
3937 @echo 'CC=${CC}'; echo ''
3938 @echo 'CCMISC=${CCMISC}'; echo ''
3939 @echo 'CCOPT=${CCOPT}'; echo ''
3940 @echo 'CCWARN=${CCWARN}'; echo ''
3941 @echo 'CCWERR=${CCWERR}'; echo ''
3942 @echo 'CFLAGS=${CFLAGS}'; echo ''
3943 @echo 'CHMOD=${CHMOD}'; echo ''
3944 @echo 'CMP=${CMP}'; echo ''
3945 @echo 'CO=${CO}'; echo ''
3946 @echo 'COL=${COL}'; echo ''
3947 @echo 'COMMON_CFLAGS=${COMMON_CFLAGS}'; echo ''
3948 @echo 'COMMON_LDFLAGS=${COMMON_LDFLAGS}'; echo ''
3949 @echo 'CP=${CP}'; echo ''
3950 @echo 'CSCRIPT_PASSDOWN=${CSCRIPT_PASSDOWN}'; echo ''
3951 @echo 'CSCRIPT_TARGETS=${CSCRIPT_TARGETS}'; echo ''
3952 @echo 'CTAGS=${CTAGS}'; echo ''
3953 @echo 'CUSTOMCALDIR=${CUSTOMCALDIR}'; echo ''
3954 @echo 'CUSTOMHELPDIR=${CUSTOMHELPDIR}'; echo ''
3955 @echo 'CUSTOMINCDIR=${CUSTOMINCDIR}'; echo ''
3956 @echo 'CUSTOM_PASSDOWN=${CUSTOM_PASSDOWN}'; echo ''
3957 @echo 'C_SRC=${C_SRC}'; echo ''
3958 @echo 'DEBUG=${DEBUG}'; echo ''
3959 @echo 'DEFAULT_LIB_INSTALL_PATH=${DEFAULT_LIB_INSTALL_PATH}'; echo ''
3960 @echo 'DEV_BITS=${DEV_BITS}'; echo ''
3961 @echo 'DIFF=${DIFF}'; echo ''
3962 @echo 'DISTLIST=${DISTLIST}'; echo ''
3963 @echo 'EXT=${EXT}'; echo ''
3964 @echo 'FMT=${FMT}'; echo ''
3965 @echo 'FPOS_BITS=${FPOS_BITS}'; echo ''
3966 @echo 'FPOS_POS_BITS=${FPOS_POS_BITS}'; echo ''
3967 @echo 'GREP=${GREP}'; echo ''
3968 @echo 'HAVE_CONST=${HAVE_CONST}'; echo ''
3969 @echo 'HAVE_FPOS=${HAVE_FPOS}'; echo ''
3970 @echo 'HAVE_FPOS_POS=${HAVE_FPOS_POS}'; echo ''
3971 @echo 'HAVE_GETPGID=${HAVE_GETPGID}'; echo ''
3972 @echo 'HAVE_GETPRID=${HAVE_GETPRID}'; echo ''
3973 @echo 'HAVE_GETRUSAGE=${HAVE_GETRUSAGE}'; echo ''
3974 @echo 'HAVE_GETSID=${HAVE_GETSID}'; echo ''
3975 @echo 'HAVE_GETTIME=${HAVE_GETTIME}'; echo ''
3976 @echo 'HAVE_MEMMOVE=${HAVE_MEMMOVE}'; echo ''
3977 @echo 'HAVE_NEWSTR=${HAVE_NEWSTR}'; echo ''
3978 @echo 'HAVE_NO_IMPLICIT=${HAVE_NO_IMPLICIT}'; echo ''
3979 @echo 'HAVE_OFFSCL=${HAVE_OFFSCL}'; echo ''
3980 @echo 'HAVE_POSSCL=${HAVE_POSSCL}'; echo ''
3981 @echo 'HAVE_STDLIB_H=${HAVE_STDLIB_H}'; echo ''
3982 @echo 'HAVE_STRDUP=${HAVE_STRDUP}'; echo ''
3983 @echo 'HAVE_STRING_H=${HAVE_STRING_H}'; echo ''
3984 @echo 'HAVE_SYS_TIMES_H=${HAVE_SYS_TIMES_H}'; echo ''
3985 @echo 'HAVE_SYS_TIME_H=${HAVE_SYS_TIME_H}'; echo ''
3986 @echo 'HAVE_TIMES_H=${HAVE_TIMES_H}'; echo ''
3987 @echo 'HAVE_TIME_H=${HAVE_TIME_H}'; echo ''
3988 @echo 'HAVE_UID_T=${HAVE_UID_T}'; echo ''
3989 @echo 'HAVE_UNISTD_H=${HAVE_UNISTD_H}'; echo ''
3990 @echo 'HAVE_UNUSED=${HAVE_UNUSED}'; echo ''
3991 @echo 'HAVE_URANDOM_H=${HAVE_URANDOM_H}'; echo ''
3992 @echo 'HAVE_USTAT=${HAVE_USTAT}'; echo ''
3993 @echo 'HAVE_VSPRINTF=${HAVE_VSPRINTF}'; echo ''
3994 @echo 'HELPDIR=${HELPDIR}'; echo ''
3995 @echo 'HELP_PASSDOWN=${HELP_PASSDOWN}'; echo ''
3996 @echo 'H_SRC=${H_SRC}'; echo ''
3997 @echo 'ICFLAGS=${ICFLAGS}'; echo ''
3998 @echo 'ILDFLAGS=${ILDFLAGS}'; echo ''
3999 @echo 'INCDIR=${INCDIR}'; echo ''
4000 @echo 'INODE_BITS=${INODE_BITS}'; echo ''
4001 @echo 'LANG=${LANG}'; echo ''
4002 @echo 'LCC=${LCC}'; echo ''
4003 @echo 'LDCONFIG=${LDCONFIG}'; echo ''
4004 @echo 'LDFLAGS=${LDFLAGS}'; echo ''
4005 @echo 'LDFLAGS=${LDFLAGS}'; echo ''
4006 @echo 'LD_DEBUG=${LD_DEBUG}'; echo ''
4007 @echo 'LD_SHARE=${LD_SHARE}'; echo ''
4008 @echo 'LIBCALC_SHLIB=${LIBCALC_SHLIB}'; echo ''
4009 @echo 'LIBCUSTCALC_SHLIB=${LIBCUSTCALC_SHLIB}'; echo ''
4010 @echo 'LIBDIR=${LIBDIR}'; echo ''
4011 @echo 'LIBOBJS=${LIBOBJS}'; echo ''
4012 @echo 'LIBSRC=${LIBSRC}'; echo ''
4013 @echo 'LIB_H_SRC=${LIB_H_SRC}'; echo ''
4014 @echo 'LICENSE=${LICENSE}'; echo ''
4015 @echo 'LN=${LN}'; echo ''
4016 @echo 'LONG_BITS=${LONG_BITS}'; echo ''
4017 @echo 'MAKE=${MAKE}'; echo ''
4018 @echo 'MAKEDEPEND=${MAKEDEPEND}'; echo ''
4019 @echo 'MAKEFILE_REV=${MAKEFILE_REV}'; echo ''
4020 @echo 'MAKE_FILE=${MAKE_FILE}'; echo ''
4021 @echo 'MANDIR=${MANDIR}'; echo ''
4022 @echo 'MANEXT=${MANEXT}'; echo ''
4023 @echo 'MANMAKE=${MANMAKE}'; echo ''
4024 @echo 'MANMODE=${MANMODE}'; echo ''
4025 @echo 'MKDIR=${MKDIR}'; echo ''
4026 @echo 'MKDIR_ARG=${MKDIR_ARG}'; echo ''
4027 @echo 'MV=${MV}'; echo ''
4028 @echo 'NROFF=${NROFF}'; echo ''
4029 @echo 'NROFF_ARG=${NROFF_ARG}'; echo ''
4030 @echo 'OBJS=${OBJS}'; echo ''
4031 @echo 'OFF_T_BITS=${OFF_T_BITS}'; echo ''
4032 @echo 'PURIFY=${PURIFY}'; echo ''
4033 @echo 'Q=${Q}'; echo ''
4034 @echo 'RANLIB=${RANLIB}'; echo ''
4035 @echo 'READLINE_EXTRAS=${READLINE_EXTRAS}'; echo ''
4036 @echo 'READLINE_INCLUDE=${READLINE_INCLUDE}'; echo ''
4037 @echo 'READLINE_LIB=${READLINE_LIB}'; echo ''
4038 @echo 'RM=${RM}'; echo ''
4039 @echo 'RMDIR=${RMDIR}'; echo ''
4040 @echo 'SAMPLE_C_SRC=${SAMPLE_C_SRC}'; echo ''
4041 @echo 'SAMPLE_H_SRC=${SAMPLE_H_SRC}'; echo ''
4042 @echo 'SAMPLE_OBJ=${SAMPLE_OBJ}'; echo ''
4043 @echo 'SAMPLE_STATIC_TARGETS=${SAMPLE_STATIC_TARGETS}'; echo ''
4044 @echo 'SAMPLE_TARGETS=${SAMPLE_TARGETS}'; echo ''
4045 @echo 'SCRIPTDIR=${SCRIPTDIR}'; echo ''
4046 @echo 'SED=${SED}'; echo ''
4047 @echo 'SHELL=${SHELL}'; echo ''
4048 @echo 'SORT=${SORT}'; echo ''
4049 @echo 'SPLINT=${SPLINT}'; echo ''
4050 @echo 'SPLINT_OPTS=${SPLINT_OPTS}'; echo ''
4051 @echo 'SYM_DYNAMIC_LIBS=${SYM_DYNAMIC_LIBS}'; echo ''
4052 @echo 'T=${T}'; echo ''
4053 @echo 'TARGETS=${TARGETS}'; echo ''
4054 @echo 'TEE=${TEE}'; echo ''
4055 @echo 'TERMCONTROL=${TERMCONTROL}'; echo ''
4056 @echo 'TOP_MAKE_FILE=${TOP_MAKE_FILE}'; echo ''
4057 @echo 'TOUCH=${TOUCH}'; echo ''
4058 @echo 'TRUE=${TRUE}'; echo ''
4059 @echo 'USE_READLINE=${USE_READLINE}'; echo ''
4060 @echo 'UTIL_C_SRC=${UTIL_C_SRC}'; echo ''
4061 @echo 'UTIL_MISC_SRC=${UTIL_MISC_SRC}'; echo ''
4062 @echo 'UTIL_OBJS=${UTIL_OBJS}'; echo ''
4063 @echo 'UTIL_FILES=${UTIL_FILES}'; echo ''
4064 @echo 'UTIL_PROGS=${UTIL_PROGS}'; echo ''
4065 @echo 'UTIL_TMP=${UTIL_TMP}'; echo ''
4066 @echo 'V=${V}'; echo ''
4067 @echo 'VERS=${VERS}'; echo ''
4068 @echo 'VERSION=${VERSION}'; echo ''
4069 @echo 'XARGS=${XARGS}'; echo ''
4070 @echo 'target=${target}'; echo ''
4071 @echo '=-=-=-=-= ${MAKE_FILE} end of major make variable dump =-=-=-=-='
4073 mkdebug: env version.c
4074 @echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4075 @echo '=-=-=-=-= Determining the source version =-=-=-=-='
4076 @${MAKE} -f Makefile Q= V=@ ver_calc${EXT}
4077 -@./ver_calc${EXT}
4078 @echo '=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-=-='
4079 @${MAKE} -f Makefile Q= V=@ all
4080 @echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4081 @echo '=-=-=-=-= Determining the binary version =-=-=-=-='
4082 -@./calc${EXT} -e -q -v
4083 @echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4084 @echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4086 debug: env
4087 @echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4088 @echo '=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ clobber =-=-=-=-='
4089 @${MAKE} -f Makefile Q= V=@ clobber
4090 @echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4091 @echo '=-=-=-=-= Determining the source version =-=-=-=-='
4092 @${MAKE} -f Makefile Q= V=@ ver_calc${EXT}
4093 -@./ver_calc${EXT}
4094 @echo '=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ all =-=-=-=-='
4095 @${MAKE} -f Makefile Q= V=@ all
4096 @echo '=-=-=-=-= Determining the binary version =-=-=-=-='
4097 -@./calc${EXT} -e -q -v
4098 @echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4099 @echo '=-=-=-=-= Invoking ${MAKE} -f Makefile Q= V=@ chk =-=-=-=-='
4100 @echo '=-=-=-=-= this may take a while =-=-=-=-='
4101 @${MAKE} -f Makefile Q= V=@ chk
4102 @echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4103 @echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4107 # testing rules
4109 # make run
4110 # * only run calc interactively with the ${CALC_ENV} environment
4112 # make dbx
4113 # * run the dbx debugger on calc with the ${CALC_ENV} environment
4115 # make gdb
4116 # * run the gdb debugger on calc with the ${CALC_ENV} environment
4120 run:
4121 ${CALC_ENV} ./calc${EXT}
4123 dbx:
4124 ${CALC_ENV} dbx ./calc${EXT}
4126 gdb:
4127 ${CALC_ENV} gdb ./calc${EXT}
4131 # rpm rules
4135 rpm: clobber rpm-preclean rpm.mk calc.spec.in
4136 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4137 ${MAKE} -f rpm.mk all V=${V} RPM_TOP="${RPM_TOP}"
4138 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4140 rpm-preclean:
4141 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4142 ${MAKE} -f rpm.mk $@ V=${V} RPM_TOP="${RPM_TOP}"
4143 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4145 # rpm static rules
4147 rpm-hide-static:
4148 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4149 ${RM} -rf static
4150 ${MKDIR} -p static
4151 ${CP} -f -p calc-static${EXT} ${SAMPLE_STATIC_TARGETS} static
4152 ${CP} -f -p libcalc.a custom/libcustcalc.a static
4153 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4155 rpm-unhide-static:
4156 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4157 ${RM} -f calc-static${EXT} ${SAMPLE_STATIC_TARGETS}
4158 cd static; ${CP} -f -p calc-static${EXT} ${SAMPLE_STATIC_TARGETS} ..
4159 ${RM} -f libcalc.a
4160 cd static; ${CP} -f -p libcalc.a ..
4161 ${RM} -f custom/libcustcalc.a
4162 cd static; ${CP} -f -p libcustcalc.a ../custom
4163 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4165 rpm-chk-static:
4166 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4167 ${CALC_ENV} ./calc-static${EXT} -d -q read regress 2>&1 | \
4168 ${AWK} -f check.awk
4169 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4171 rpm-clean-static:
4172 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4173 ${RM} -rf static
4174 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4178 # Utility rules
4182 # Form the installed file list
4184 inst_files: ${MAKE_FILE} help/Makefile cal/Makefile custom/Makefile \
4185 cscript/Makefile ver_calc${EXT}
4186 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4187 ${Q} ${RM} -f inst_files
4188 ${Q} echo ${BINDIR}/calc${EXT} > inst_files
4189 ${Q} cd help; LANG=C \
4190 ${MAKE} -f Makefile ${HELP_PASSDOWN} echo_inst_files | \
4191 ${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
4192 ${Q} cd cal; LANG=C \
4193 ${MAKE} -f Makefile ${CAL_PASSDOWN} echo_inst_files | \
4194 ${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
4195 ${Q} cd custom; LANG=C \
4196 ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} echo_inst_files | \
4197 ${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
4198 ${Q} cd cscript; LANG=C \
4199 ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} echo_inst_files | \
4200 ${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' >> ../inst_files
4201 ${Q} echo ${LIBDIR}/libcalc.a >> inst_files
4202 ${Q} for i in ${LIB_H_SRC} ${BUILD_H_SRC} /dev/null; do \
4203 if [ X"$$i" != X"/dev/null" ]; then \
4204 echo ${CALC_INCDIR}/$$i; \
4205 fi; \
4206 done >> inst_files
4207 ${Q} if [ ! -z "${MANDIR}" ]; then \
4208 echo ${MANDIR}/calc.${MANEXT}; \
4209 fi >> inst_files
4210 ${Q} LANG=C ${SORT} -u inst_files -o inst_files
4211 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4213 # The olduninstall rule will remove calc files from the older, histroic
4214 # locations under the /usr/local directory. If you are using the
4215 # new default values for ${BINDIR}, ${CALC_SHAREDIR}, ${INCDIR} and ${LIBDIR}
4216 # then you can use this rule to clean out the older calc stuff under
4217 # the /usr/local directory.
4219 olduninstall:
4220 ${RM} -f inst_files
4221 ${MAKE} -f Makefile \
4222 BINDIR=/usr/local/bin \
4223 INCDIR=/usr/local/include \
4224 LIBDIR=/usr/local/lib/calc \
4225 CALC_SHAREDIR=/usr/local/lib/calc \
4226 HELPDIR=/usr/local/lib/calc/help \
4227 CALC_INCDIR=/usr/local/include/calc \
4228 CUSTOMCALDIR=/usr/local/lib/calc/custom \
4229 CUSTOMHELPDIR=/usr/local/lib/calc/help/custhelp \
4230 CUSTOMINCDIR=/usr/local/lib/calc/custom \
4231 SCRIPTDIR=/usr/local/bin/cscript \
4232 MANDIR=/usr/local/man/man1 \
4233 inst_files
4234 ${XARGS} ${RM} -f < inst_files
4235 -${RMDIR} /usr/local/lib/calc/help/custhelp
4236 -${RMDIR} /usr/local/lib/calc/help
4237 -${RMDIR} /usr/local/lib/calc/custom
4238 -${RMDIR} /usr/local/lib/calc
4239 -${RMDIR} /usr/local/include/calc
4240 -${RMDIR} /usr/local/bin/cscript
4241 ${RM} -f inst_files
4243 tags: ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} ${MAKE_FILE}
4244 -${CTAGS} ${CALCSRC} ${LIBSRC} ${H_SRC} ${BUILD_H_SRC} 2>&1 | \
4245 ${GREP} -v 'Duplicate entry|Second entry ignored'
4247 clean: custom/Makefile
4248 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4249 ${RM} -f ${LIBOBJS}
4250 ${RM} -f ${CALCOBJS}
4251 ${RM} -f ${UTIL_OBJS}
4252 ${RM} -f ${UTIL_TMP}
4253 ${RM} -f ${UTIL_PROGS}
4254 ${RM} -f ${UTIL_FILES}
4255 ${RM} -f ${SAMPLE_OBJ}
4256 ${RM} -f .libcustcalc_error
4257 ${RM} -f calc.spec.sed
4258 ${Q} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4259 cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} clean
4260 ${Q} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4261 ${Q} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4262 cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} clean
4263 ${Q} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4264 ${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4265 cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} clean
4266 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4267 ${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4268 cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} clean
4269 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4270 ${Q} echo remove files that are obsolete
4271 ${RM} -rf lib
4272 ${RM} -f endian.h stdarg.h libcalcerr.a cal/obj help/obj
4273 ${RM} -f have_vs.c std_arg.h try_stdarg.c fnvhash.c
4274 ${RM} -f win32dll.h have_malloc.h math_error.h string.h string.c
4275 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4277 clobber: custom/Makefile clean
4278 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4279 ${RM} -f ${SAMPLE_TARGETS}
4280 ${RM} -f ${SAMPLE_STATIC_TARGETS}
4281 ${RM} -f tags .hsrc hsrc
4282 ${RM} -f ${BUILD_H_SRC}
4283 ${RM} -f ${BUILD_C_SRC}
4284 ${RM} -f calc${EXT}
4285 ${RM} -f *_pure_*.[oa]
4286 ${RM} -f *.pure_linkinfo
4287 ${RM} -f *.pure_hardlin
4288 ${RM} -f *.u
4289 ${RM} -f libcalc.a
4290 ${RM} -f calc.1 calc.usage
4291 ${RM} -f calc.pixie calc.rf calc.Counts calc.cord
4292 ${RM} -rf gen_h skel Makefile.bak tmp.patch
4293 ${RM} -f calc.spec inst_files rpm.mk.patch tmp
4294 ${RM} -f libcalc${LIB_EXT_VERSION}
4295 ${RM} -f libcalc${LIB_EXT_VERS}
4296 ${RM} -f libcalc${LIB_EXT_VER}
4297 ${RM} -f libcalc${LIB_EXT_VE}
4298 ${RM} -f libcalc*${LIB_EXT}
4299 ${RM} -f libcustcalc${LIB_EXT_VERSION}
4300 ${RM} -f libcustcalc${LIB_EXT_VERS}
4301 ${RM} -f libcustcalc${LIB_EXT_VER}
4302 ${RM} -f libcustcalc${LIB_EXT_VE}
4303 ${RM} -f libcustcalc*${LIB_EXT}
4304 ${RM} -f libcustcalc.a
4305 ${RM} -f calc-static${EXT}
4306 ${RM} -f ${CALC_STATIC_LIBS}
4307 ${RM} -f all
4308 ${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4309 -cd help; ${RM} -f all; ${MAKE} -f Makefile ${HELP_PASSDOWN} $@
4310 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4311 ${V} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4312 -cd cal; ${RM} -f all; ${MAKE} -f Makefile ${CAL_PASSDOWN} $@
4313 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4314 ${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4315 cd custom; ${RM} -f all; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} $@
4316 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4317 ${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4318 cd cscript; ${RM} -f all; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} $@
4319 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4320 ${V} echo remove files that are obsolete
4321 ${RM} -rf win32 build
4322 #if 0 /* start of skip for non-Gnu makefiles */
4323 ${RM} -f Makefile.simple
4324 ${RM} -f custom/Makefile
4325 -${MAKE} -f ${MAKE_FILE} custom/Makefile
4326 #endif /* end of skip for non-Gnu makefiles */
4327 ${RM} -f .static .dynamic calc-dynamic-only calc-static-only
4328 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4330 # install everything
4332 # NOTE: Keep the uninstall rule in reverse order to the install rule
4334 install: custom/Makefile ${LIB_H_SRC} ${BUILD_H_SRC} calc.1 all
4335 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4336 -${Q} if [ ! -z "${T}" ]; then \
4337 if [ ! -d ${T} ]; then \
4338 echo ${MKDIR} ${MKDIR_ARG} ${T}; \
4339 ${MKDIR} ${MKDIR_ARG} ${T}; \
4340 echo ${CHMOD} 0755 ${T}; \
4341 ${CHMOD} 0755 ${T}; \
4342 fi; \
4344 -${Q} if [ ! -d ${T}${BINDIR} ]; then \
4345 echo ${MKDIR} ${MKDIR_ARG} ${T}${BINDIR}; \
4346 ${MKDIR} ${MKDIR_ARG} ${T}${BINDIR}; \
4347 echo ${CHMOD} 0755 ${T}${BINDIR}; \
4348 ${CHMOD} 0755 ${T}${BINDIR}; \
4349 else \
4350 ${TRUE}; \
4352 -${Q} if [ ! -d ${T}${INCDIR} ]; then \
4353 echo ${MKDIR} ${MKDIR_ARG} ${T}${INCDIR}; \
4354 ${MKDIR} ${MKDIR_ARG} ${T}${INCDIR}; \
4355 echo ${CHMOD} 0755 ${T}${INCDIR}; \
4356 ${CHMOD} 0755 ${T}${INCDIR}; \
4357 else \
4358 ${TRUE}; \
4360 -${Q} if [ ! -d ${T}${LIBDIR} ]; then \
4361 echo ${MKDIR} ${MKDIR_ARG} ${T}${LIBDIR}; \
4362 ${MKDIR} ${MKDIR_ARG} ${T}${LIBDIR}; \
4363 echo ${CHMOD} 0755 ${T}${LIBDIR}; \
4364 ${CHMOD} 0755 ${T}${LIBDIR}; \
4365 else \
4366 ${TRUE}; \
4368 -${Q} if [ ! -d ${T}${CALC_SHAREDIR} ]; then \
4369 ${MKDIR} ${MKDIR_ARG} ${T}${CALC_SHAREDIR}; \
4370 echo ${MKDIR} ${MKDIR_ARG} ${T}${CALC_SHAREDIR}; \
4371 echo ${CHMOD} 0755 ${T}${CALC_SHAREDIR}; \
4372 ${CHMOD} 0755 ${T}${CALC_SHAREDIR}; \
4373 else \
4374 ${TRUE}; \
4376 -${Q} if [ ! -d ${T}${HELPDIR} ]; then \
4377 echo ${MKDIR} ${MKDIR_ARG} ${T}${HELPDIR}; \
4378 ${MKDIR} ${MKDIR_ARG} ${T}${HELPDIR}; \
4379 echo ${CHMOD} 0755 ${T}${HELPDIR}; \
4380 ${CHMOD} 0755 ${T}${HELPDIR}; \
4381 else \
4382 ${TRUE}; \
4384 -${Q} if [ ! -d ${T}${CALC_INCDIR} ]; then \
4385 echo ${MKDIR} ${MKDIR_ARG} ${T}${CALC_INCDIR}; \
4386 ${MKDIR} ${MKDIR_ARG} ${T}${CALC_INCDIR}; \
4387 echo ${CHMOD} 0755 ${T}${CALC_INCDIR}; \
4388 ${CHMOD} 0755 ${T}${CALC_INCDIR}; \
4389 else \
4390 ${TRUE}; \
4392 #if 0 /* start of skip for non-Gnu makefiles */
4393 ifdef ALLOW_CUSTOM
4394 #endif /* end of skip for non-Gnu makefiles */
4395 -${Q} if [ ! -d ${T}${CUSTOMCALDIR} ]; then \
4396 echo ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMCALDIR}; \
4397 ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMCALDIR}; \
4398 echo ${CHMOD} 0755 ${T}${CUSTOMCALDIR}; \
4399 ${CHMOD} 0755 ${T}${CUSTOMCALDIR}; \
4400 else \
4401 ${TRUE}; \
4403 -${Q} if [ ! -d ${T}${CUSTOMHELPDIR} ]; then \
4404 echo ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMHELPDIR}; \
4405 ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMHELPDIR}; \
4406 echo ${CHMOD} 0755 ${T}${CUSTOMHELPDIR}; \
4407 ${CHMOD} 0755 ${T}${CUSTOMHELPDIR}; \
4408 else \
4409 ${TRUE}; \
4411 -${Q} if [ ! -d ${T}${CUSTOMINCDIR} ]; then \
4412 echo ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMINCDIR}; \
4413 ${MKDIR} ${MKDIR_ARG} ${T}${CUSTOMINCDIR}; \
4414 echo ${CHMOD} 0755 ${T}${CUSTOMINCDIR}; \
4415 ${CHMOD} 0755 ${T}${CUSTOMINCDIR}; \
4416 else \
4417 ${TRUE}; \
4419 #if 0 /* start of skip for non-Gnu makefiles */
4420 endif
4421 #endif /* end of skip for non-Gnu makefiles */
4422 -${Q} if [ ! -d ${T}${SCRIPTDIR} ]; then \
4423 echo ${MKDIR} ${MKDIR_ARG} ${T}${SCRIPTDIR}; \
4424 ${MKDIR} ${MKDIR_ARG} ${T}${SCRIPTDIR}; \
4425 echo ${CHMOD} 0755 ${T}${SCRIPTDIR}; \
4426 ${CHMOD} 0755 ${T}${SCRIPTDIR}; \
4427 else \
4428 ${TRUE}; \
4430 -${Q} if [ ! -z "${MANDIR}" ]; then \
4431 if [ ! -d ${T}${MANDIR} ]; then \
4432 echo ${MKDIR} ${MKDIR_ARG} ${T}${MANDIR}; \
4433 ${MKDIR} ${MKDIR_ARG} ${T}${MANDIR}; \
4434 echo ${CHMOD} 0755 ${T}${MANDIR}; \
4435 ${CHMOD} 0755 ${T}${MANDIR}; \
4436 else \
4437 ${TRUE}; \
4438 fi; \
4439 else \
4440 ${TRUE}; \
4442 -${Q} if [ ! -z "${CATDIR}" ]; then \
4443 if [ ! -d ${T}${CATDIR} ]; then \
4444 echo ${MKDIR} ${MKDIR_ARG} ${T}${CATDIR}; \
4445 ${MKDIR} ${MKDIR_ARG} ${T}${CATDIR}; \
4446 echo ${CHMOD} 0755 ${T}${CATDIR}; \
4447 ${CHMOD} 0755 ${T}${CATDIR}; \
4448 else \
4449 ${TRUE}; \
4450 fi; \
4451 else \
4452 ${TRUE}; \
4454 -${Q} if ${CMP} -s calc${EXT} ${T}${BINDIR}/calc${EXT}; then \
4455 ${TRUE}; \
4456 else \
4457 ${RM} -f ${T}${BINDIR}/calc.new${EXT}; \
4458 ${CP} -f calc${EXT} ${T}${BINDIR}/calc.new${EXT}; \
4459 ${CHMOD} 0755 ${T}${BINDIR}/calc.new${EXT}; \
4460 ${MV} -f ${T}${BINDIR}/calc.new${EXT} ${T}${BINDIR}/calc${EXT}; \
4461 echo "installed ${T}${BINDIR}/calc${EXT}"; \
4463 -${Q} if [ -f calc-static${EXT} ]; then \
4464 if ${CMP} -s calc-static${EXT} \
4465 ${T}${BINDIR}/calc-static${EXT}; then \
4466 ${TRUE}; \
4467 else \
4468 ${RM} -f ${T}${BINDIR}/calc-static.new${EXT}; \
4469 ${CP} -f calc-static${EXT} \
4470 ${T}${BINDIR}/calc-static.new${EXT}; \
4471 ${CHMOD} 0755 ${T}${BINDIR}/calc-static.new${EXT}; \
4472 ${MV} -f ${T}${BINDIR}/calc-static.new${EXT} \
4473 ${T}${BINDIR}/calc-static${EXT}; \
4474 echo "installed ${T}${BINDIR}/calc-static${EXT}"; \
4475 fi; \
4477 ${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4478 ${Q} cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} install
4479 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4480 ${V} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4481 ${Q} cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} install
4482 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4483 #if 0 /* start of skip for non-Gnu makefiles */
4484 ifdef ALLOW_CUSTOM
4485 #endif /* end of skip for non-Gnu makefiles */
4486 ${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4487 ${Q} cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} install
4488 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4489 #if 0 /* start of skip for non-Gnu makefiles */
4490 endif
4491 #endif /* end of skip for non-Gnu makefiles */
4492 ${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4493 ${Q} cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} install
4494 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4495 -${Q} if [ -f libcalc.a ]; then \
4496 if ${CMP} -s libcalc.a ${T}${LIBDIR}/libcalc.a; then \
4497 ${TRUE}; \
4498 else \
4499 ${RM} -f ${T}${LIBDIR}/libcalc.a.new; \
4500 ${CP} -f libcalc.a ${T}${LIBDIR}/libcalc.a.new; \
4501 ${CHMOD} 0644 ${T}${LIBDIR}/libcalc.a.new; \
4502 ${MV} -f ${T}${LIBDIR}/libcalc.a.new ${T}${LIBDIR}/libcalc.a; \
4503 ${RANLIB} ${T}${LIBDIR}/libcalc.a; \
4504 echo "installed ${T}${LIBDIR}/libcalc.a"; \
4505 fi; \
4507 ${Q}# NOTE: The this makefile installs libcustcalc${LIB_EXT_VERSION}
4508 ${Q}# because we only want to perform one ${LDCONFIG} for both
4509 ${Q}# libcalc${LIB_EXT_VERSION} and libcustcalc${LIB_EXT_VERSION}.
4510 -${Q} if ${CMP} -s libcalc${LIB_EXT_VERSION} \
4511 ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION} && \
4512 ${CMP} -s custom/libcustcalc${LIB_EXT_VERSION} \
4513 ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}; then \
4514 ${TRUE}; \
4515 else \
4516 ${RM} -f ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}.new; \
4517 ${CP} -f libcalc${LIB_EXT_VERSION} \
4518 ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}.new; \
4519 ${CHMOD} 0644 ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}.new; \
4520 ${MV} -f ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}.new \
4521 ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}; \
4522 echo "installed ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4523 ${LN} -f -s libcalc${LIB_EXT_VERSION} \
4524 ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}; \
4525 echo "installed ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4526 ${LN} -f -s libcalc${LIB_EXT_VERSION} \
4527 ${T}${LIBDIR}/libcalc${LIB_EXT_VER}; \
4528 echo "installed ${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4529 ${LN} -f -s libcalc${LIB_EXT_VERSION} \
4530 ${T}${LIBDIR}/libcalc${LIB_EXT_VE}; \
4531 echo "installed ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4532 ${LN} -f -s libcalc${LIB_EXT_VERSION} \
4533 ${T}${LIBDIR}/libcalc${LIB_EXT}; \
4534 echo "installed ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4535 ${RM} -f ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}.new; \
4536 ${CP} -f custom/libcustcalc${LIB_EXT_VERSION} \
4537 ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}.new; \
4538 ${CHMOD} 0644 ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}.new; \
4539 ${MV} -f ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}.new \
4540 ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}; \
4541 echo "installed ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}"; \
4542 ${LN} -f -s libcustcalc${LIB_EXT_VERSION} \
4543 ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}; \
4544 echo "installed ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4545 ${LN} -f -s libcustcalc${LIB_EXT_VERSION} \
4546 ${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}; \
4547 echo "installed ${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4548 ${LN} -f -s libcustcalc${LIB_EXT_VERSION} \
4549 ${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}; \
4550 echo "installed ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4551 ${LN} -f -s libcustcalc${LIB_EXT_VERSION} \
4552 ${T}${LIBDIR}/libcustcalc${LIB_EXT}; \
4553 echo "installed ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4554 if [ -z "${T}" -o "/" = "${T}" ]; then \
4555 if [ ! -z "${LDCONFIG}" ]; then \
4556 echo "running ${LDCONFIG}"; \
4557 ${LDCONFIG} -v; \
4558 echo "finished ${LDCONFIG}"; \
4559 fi; \
4560 fi; \
4562 -${Q} for i in ${LIB_H_SRC} ${BUILD_H_SRC} /dev/null; do \
4563 if [ "$$i" = "/dev/null" ]; then \
4564 continue; \
4565 fi; \
4566 ${RM} -f tmp; \
4567 ${SED} -e 's/^\(#[ ]*include[ ][ ]*\)"/\1"calc\//' \
4568 $$i > tmp; \
4569 if ${CMP} -s tmp ${T}${CALC_INCDIR}/$$i; then \
4570 ${TRUE}; \
4571 else \
4572 ${RM} -f ${T}${CALC_INCDIR}/$$i.new; \
4573 ${CP} -f tmp ${T}${CALC_INCDIR}/$$i.new; \
4574 ${CHMOD} 0444 ${T}${CALC_INCDIR}/$$i.new; \
4575 ${MV} -f ${T}${CALC_INCDIR}/$$i.new ${T}${CALC_INCDIR}/$$i; \
4576 echo "installed ${T}${CALC_INCDIR}/$$i"; \
4577 fi; \
4578 if [ -f "${T}${CALC_INCDIR}/std_arg.h" ]; then \
4579 ${RM} -f ${T}${CALC_INCDIR}/std_arg.h; \
4580 echo "removed old ${T}${CALC_INCDIR}/std_arg.h"; \
4581 fi; \
4582 if [ -f "${T}${CALC_INCDIR}/win32dll.h" ]; then \
4583 ${RM} -f ${T}${CALC_INCDIR}/win32dll.h; \
4584 echo "removed old ${T}${CALC_INCDIR}/win32dll.h"; \
4585 fi; \
4586 if [ -f "${T}${CALC_INCDIR}/have_malloc.h" ]; then \
4587 ${RM} -f ${T}${CALC_INCDIR}/have_malloc.h; \
4588 echo "removed old ${T}${CALC_INCDIR}/have_malloc.h"; \
4589 fi; \
4590 if [ -f "${T}${CALC_INCDIR}/math_error.h" ]; then \
4591 ${RM} -f ${T}${CALC_INCDIR}/math_error.h; \
4592 echo "removed old ${T}${CALC_INCDIR}/math_error.h"; \
4593 fi; \
4594 if [ -f "${T}${CALC_INCDIR}/string.h" ]; then \
4595 ${RM} -f ${T}${CALC_INCDIR}/string.h; \
4596 echo "removed old ${T}${CALC_INCDIR}/string.h"; \
4597 fi; \
4598 done
4599 -${Q} if [ -z "${MANDIR}" ]; then \
4600 ${TRUE}; \
4601 else \
4602 if ${CMP} -s calc.1 ${T}${MANDIR}/calc.${MANEXT}; then \
4603 ${TRUE}; \
4604 else \
4605 ${RM} -f ${T}${MANDIR}/calc.${MANEXT}.new; \
4606 ${CP} -f calc.1 ${T}${MANDIR}/calc.${MANEXT}.new; \
4607 ${CHMOD} 0444 ${T}${MANDIR}/calc.${MANEXT}.new; \
4608 ${MV} -f ${T}${MANDIR}/calc.${MANEXT}.new \
4609 ${T}${MANDIR}/calc.${MANEXT}; \
4610 echo "installed ${T}${MANDIR}/calc.${MANEXT}"; \
4611 fi; \
4613 -${Q} if [ -z "${CATDIR}" ]; then \
4614 ${TRUE}; \
4615 else \
4616 if ${CMP} -s calc.1 ${T}${MANDIR}/calc.${MANEXT}; then \
4617 ${TRUE}; \
4618 else \
4619 if [ -z "${NROFF}" ]; then \
4620 echo "${MANMAKE} calc.1 ${T}${CATDIR}"; \
4621 ${MANMAKE} calc.1 ${T}${CATDIR}; \
4622 else \
4623 ${RM} -f ${T}${CATDIR}/calc.${CATEXT}.new; \
4624 ${NROFF} ${NROFF_ARG} calc.1 > \
4625 ${T}${CATDIR}/calc.${CATEXT}.new; \
4626 ${CHMOD} ${MANMODE} ${T}${MANDIR}/calc.${CATEXT}.new; \
4627 ${MV} -f ${T}${CATDIR}/calc.${CATEXT}.new \
4628 ${T}${CATDIR}/calc.${CATEXT}; \
4629 echo "installed ${T}${CATDIR}/calc.${CATEXT}"; \
4630 fi; \
4631 fi; \
4633 ${V} # NOTE: misc install cleanup
4634 ${Q} ${RM} -f tmp
4635 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4637 # Try to remove everything that was installed
4639 # NOTE: Keep the uninstall rule in reverse order to the install rule
4641 uninstall: custom/Makefile
4642 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4643 -${Q} if [ -z "${CATDIR}" ]; then \
4644 ${TRUE}; \
4645 else \
4646 if [ -f "${T}${CATDIR}/calc.${CATEXT}" ]; then \
4647 ${RM} -f "${T}${CATDIR}/calc.${CATEXT}"; \
4648 if [ -f "${T}${CATDIR}/calc.${CATEXT}" ]; then \
4649 echo "cannot uninstall ${T}${CATDIR}/calc.${CATEXT}"; \
4650 else \
4651 echo "uninstalled ${T}${CATDIR}/calc.${CATEXT}"; \
4652 fi; \
4653 fi; \
4655 -${Q} if [ -z "${MANDIR}" ]; then \
4656 ${TRUE}; \
4657 else \
4658 if [ -f "${T}${MANDIR}/calc.${MANEXT}" ]; then \
4659 ${RM} -f "${T}${MANDIR}/calc.${MANEXT}"; \
4660 if [ -f "${T}${MANDIR}/calc.${MANEXT}" ]; then \
4661 echo "cannot uninstall ${T}${MANDIR}/calc.${MANEXT}"; \
4662 else \
4663 echo "uninstalled ${T}${MANDIR}/calc.${MANEXT}"; \
4664 fi; \
4665 fi; \
4667 -${Q} for i in ${BUILD_H_SRC} ${LIB_H_SRC} /dev/null; do \
4668 if [ "$$i" = "/dev/null" ]; then \
4669 continue; \
4670 fi; \
4671 if [ -f "${T}${CALC_INCDIR}/$$i" ]; then \
4672 ${RM} -f "${T}${CALC_INCDIR}/$$i"; \
4673 if [ -f "${T}${CALC_INCDIR}/$$i" ]; then \
4674 echo "cannot uninstall ${T}${CALC_INCDIR}/$$i"; \
4675 else \
4676 echo "uninstalled ${T}${CALC_INCDIR}/$$i"; \
4677 fi; \
4678 fi; \
4679 done
4680 -${Q} if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT}" ]; then \
4681 ${RM} -f "${T}${LIBDIR}/libcustcalc${LIB_EXT}"; \
4682 if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT}" ]; then \
4683 echo "cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT}"; \
4684 else \
4685 echo "uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT}"; \
4686 fi; \
4688 -${Q} if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}" ]; then \
4689 ${RM} -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}"; \
4690 if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}" ]; then \
4691 echo "cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}";\
4692 else \
4693 echo "uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VE}"; \
4694 fi; \
4696 -${Q} if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}" ]; then \
4697 ${RM} -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4698 if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}" ]; then \
4699 echo -n "cannot uninstall "; \
4700 echo "${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4701 else \
4702 echo "uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VER}"; \
4703 fi; \
4705 -${Q} if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}" ]; then \
4706 ${RM} -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4707 if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}" ]; then \
4708 echo \
4709 "cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4710 else \
4711 echo "uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERS}"; \
4712 fi; \
4714 -${Q} if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}" ]; then \
4715 ${RM} -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}"; \
4716 if [ -f "${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}" ]; then \
4717 echo \
4718 "cannot uninstall ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}";\
4719 else \
4720 echo "uninstalled ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}";\
4721 fi; \
4723 -${Q} if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT}" ]; then \
4724 ${RM} -f "${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4725 if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT}" ]; then \
4726 echo "cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4727 else \
4728 echo "uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT}"; \
4729 fi; \
4731 -${Q} if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT_VE}" ]; then \
4732 ${RM} -f "${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4733 if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT_VE}" ]; then \
4734 echo "cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4735 else \
4736 echo "uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VE}"; \
4737 fi; \
4739 -${Q} if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT_VER}" ]; then \
4740 ${RM} -f "${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4741 if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT_VER}" ]; then \
4742 echo "cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4743 else \
4744 echo "uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VER}"; \
4745 fi; \
4747 -${Q} if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT_VERS}" ]; then \
4748 ${RM} -f "${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4749 if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT_VERS}" ]; then \
4750 echo "cannot uninstall ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4751 else \
4752 echo "uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VERS}"; \
4753 fi; \
4755 -${Q} if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}" ]; then \
4756 ${RM} -f "${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4757 if [ -f "${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}" ]; then \
4758 echo -n "cannot uninstall " \
4759 echo "${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4760 else \
4761 echo "uninstalled ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION}"; \
4762 fi; \
4764 -${Q} if [ -z "${T}" -o "/" = "${T}" ]; then \
4765 if [ ! -z "${LDCONFIG}" ]; then \
4766 echo "running ${LDCONFIG}"; \
4767 ${LDCONFIG} -v; \
4768 echo "finished ${LDCONFIG}"; \
4769 fi; \
4771 -${Q} if [ -f "${T}${LIBDIR}/libcalc.a" ]; then \
4772 ${RM} -f "${T}${LIBDIR}/libcalc.a"; \
4773 if [ -f "${T}${LIBDIR}/libcalc.a" ]; then \
4774 echo "cannot uninstall ${T}${LIBDIR}/libcalc.a"; \
4775 else \
4776 echo "uninstalled ${T}${LIBDIR}/libcalc.a"; \
4777 fi; \
4779 ${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
4780 ${Q} cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} uninstall
4781 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4782 ${V} echo '=-=-=-=-= Invoking $@ rule for custom =-=-=-=-='
4783 ${Q} cd custom; ${MAKE} -f Makefile ${CUSTOM_PASSDOWN} uninstall
4784 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4785 ${V} echo '=-=-=-=-= Invoking $@ rule for cal =-=-=-=-='
4786 ${Q} cd cal; ${MAKE} -f Makefile ${CAL_PASSDOWN} uninstall
4787 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4788 ${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
4789 ${Q} cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} uninstall
4790 ${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
4791 -${Q} if [ -f "${T}${BINDIR}/calc-static${EXT}" ]; then \
4792 ${RM} -f "${T}${BINDIR}/calc-static${EXT}"; \
4793 if [ -f "${T}${BINDIR}/calc-static${EXT}" ]; then \
4794 echo "cannot uninstall ${T}${BINDIR}/calc-static${EXT}"; \
4795 else \
4796 echo "uninstalled ${T}${BINDIR}/calc-static${EXT}"; \
4797 fi; \
4799 -${Q} if [ -f "${T}${BINDIR}/calc${EXT}" ]; then \
4800 ${RM} -f "${T}${BINDIR}/calc${EXT}"; \
4801 if [ -f "${T}${BINDIR}/calc${EXT}" ]; then \
4802 echo "cannot uninstall ${T}${BINDIR}/calc${EXT}"; \
4803 else \
4804 echo "uninstalled ${T}${BINDIR}/calc${EXT}"; \
4805 fi; \
4807 -${Q} for i in ${CATDIR} ${MANDIR} ${SCRIPTDIR} \
4808 ${CUSTOMINCDIR} ${CUSTOMHELPDIR} ${CUSTOMCALDIR} \
4809 ${CALC_INCDIR} ${LIBDIR} ${INCDIR} ${BINDIR}; do \
4810 if [ -d "${T}$$i" ]; then \
4811 ${RMDIR} "${T}$$i" 2>/dev/null; \
4812 echo "cleaned up ${T}$$i"; \
4813 fi; \
4814 done
4815 -${Q} if [ ! -z "${T}" ]; then \
4816 if [ -d "${T}" ]; then \
4817 ${RMDIR} "${T}" 2>/dev/null; \
4818 echo "cleaned up ${T}"; \
4819 fi; \
4821 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4823 # splint - A tool for statically checking C programs
4825 splint: #hsrc
4826 ${SPLINT} ${SPLINT_OPTS} -DCALC_SRC -I. \
4827 ${CALCSRC} ${LIBSRC} ${BUILD_C_SRC} ${UTIL_C_SRC}
4829 # strip - for reducing the size of the binary files
4831 strip:
4832 ${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
4833 ${Q} for i in ${UTIL_PROGS} ${SAMPLE_TARGETS} ${SAMPLE_STATIC_TARGETS} \
4834 calc${EXT} calc-static${EXT} ${CALC_DYNAMIC_LIBS} \
4835 ${CALC_STATIC_LIBS}; do \
4836 if [ -s "$$i" -a -w "$$i" ]; then \
4837 ${STRIP} "$$i"; \
4838 echo "stripped $$i"; \
4839 fi; \
4840 done
4841 ${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
4843 # calc-symlink - setup symlinks from stardard locations into the ${T} tree
4845 calc-symlink:
4846 ${Q}if [ -z "${T}" ]; then \
4847 echo "cannot use $@ make rule when T make var is empty" 1>&2; \
4848 echo "aborting" 1>&2; \
4849 exit 1; \
4851 -${Q} for i in ${BINDIR}/calc${EXT} \
4852 ${BINDIR}/calc-static${EXT} \
4853 ${SCRIPTDIR} \
4854 ${LIBDIR}/libcalc${LIB_EXT_VERSION} \
4855 ${LIBDIR}/libcustcalc${LIB_EXT_VERSION} \
4856 ${MANDIR}/calc.${MANEXT} \
4857 ${CALC_SHAREDIR} \
4858 ${CALC_INCDIR} \
4859 ; do \
4860 if [ -e "${T}$$i" ]; then \
4861 if [ ! -L "$$i" -a "${T}$$i" -ef "$$i" ]; then \
4862 echo "ERROR: ${T}$$i is the same as $$i" 1>&2; \
4863 else \
4864 if [ -e "$$i" ]; then \
4865 echo ${RM} -f "$$i"; \
4866 ${RM} -f "$$i"; \
4867 fi; \
4868 echo ${LN} -s "${T}$$i" "$$i"; \
4869 ${LN} -s "${T}$$i" "$$i"; \
4870 fi; \
4871 else \
4872 echo "Warning: not found: ${T}$$i" 1>&2; \
4873 fi; \
4874 done
4875 -${Q} if [ -n "${CATDIR}" ]; then \
4876 if [ -e "${T}${CATDIR}/calc.${CATEXT}" ]; then \
4877 if [ ! -L "${CATDIR}/calc.${CATEXT}" -a \
4878 "${T}${CATDIR}/calc.${CATEXT}" -ef \
4879 "${CATDIR}/calc.${CATEXT}" ]; then \
4880 echo -n "ERROR: ${T}${CATDIR}/calc.${CATEXT}" 2>&1; \
4881 echo "is the same as ${CATDIR}/calc.${CATEXT}" 1>&2; \
4882 else \
4883 if [ -e "${CATDIR}/calc.${CATEXT}" ]; then \
4884 echo ${RM} -f "${CATDIR}/calc.${CATEXT}"; \
4885 ${RM} -f "${CATDIR}/calc.${CATEXT}"; \
4886 fi; \
4887 echo ${LN} -s "${T}${CATDIR}/calc.${CATEXT}" \
4888 "${CATDIR}/calc.${CATEXT}"; \
4889 ${LN} -s "${T}${CATDIR}/calc.${CATEXT}" \
4890 "${CATDIR}/calc.${CATEXT}"; \
4891 fi; \
4892 fi; \
4895 # remove any symlinks that may have been created by calc-symlink
4897 calc-unsymlink:
4898 -${Q} for i in ${BINDIR}/calc${EXT} \
4899 ${BINDIR}/calc-static${EXT} \
4900 ${SCRIPTDIR} \
4901 ${LIBDIR}/libcalc${LIB_EXT_VERSION} \
4902 ${LIBDIR}/libcustcalc${LIB_EXT_VERSION} \
4903 ${MANDIR}/calc.${MANEXT} \
4904 ${CALC_SHAREDIR} \
4905 ${CALC_INCDIR} \
4906 ; do \
4907 if [ -L "$$i" ]; then \
4908 echo ${RM} -f "$$i"; \
4909 ${RM} -f "$$i"; \
4910 else \
4911 echo "Warning: ignoring non-symlink: $$i" 1>&2; \
4912 fi; \
4913 done
4914 -${Q} if [ -n "${CATDIR}" ]; then \
4915 if [ -L "${CATDIR}/calc.${CATEXT}" ]; then \
4916 echo ${RM} -f "${CATDIR}/calc.${CATEXT}"; \
4917 ${RM} -f "${CATDIR}/calc.${CATEXT}"; \
4918 else \
4919 echo "Warning: ignoring non-symlink: ${CATDIR}/calc.${CATEXT}" \
4920 1>&2; \
4921 fi; \
4926 # make depend stuff
4930 # DO NOT DELETE THIS LINE -- make depend depends on it.
4932 addop.o: addop.c
4933 addop.o: alloc.h
4934 addop.o: block.h
4935 addop.o: byteswap.h
4936 addop.o: calc.h
4937 addop.o: calcerr.h
4938 addop.o: cmath.h
4939 addop.o: config.h
4940 addop.o: decl.h
4941 addop.o: endian_calc.h
4942 addop.o: func.h
4943 addop.o: hash.h
4944 addop.o: have_const.h
4945 addop.o: have_memmv.h
4946 addop.o: have_newstr.h
4947 addop.o: have_stdlib.h
4948 addop.o: have_string.h
4949 addop.o: label.h
4950 addop.o: longbits.h
4951 addop.o: nametype.h
4952 addop.o: opcodes.h
4953 addop.o: qmath.h
4954 addop.o: sha1.h
4955 addop.o: str.h
4956 addop.o: symbol.h
4957 addop.o: token.h
4958 addop.o: value.h
4959 addop.o: zmath.h
4960 align32.o: align32.c
4961 align32.o: have_unistd.h
4962 align32.o: longbits.h
4963 assocfunc.o: alloc.h
4964 assocfunc.o: assocfunc.c
4965 assocfunc.o: block.h
4966 assocfunc.o: byteswap.h
4967 assocfunc.o: calcerr.h
4968 assocfunc.o: cmath.h
4969 assocfunc.o: config.h
4970 assocfunc.o: decl.h
4971 assocfunc.o: endian_calc.h
4972 assocfunc.o: hash.h
4973 assocfunc.o: have_const.h
4974 assocfunc.o: have_memmv.h
4975 assocfunc.o: have_newstr.h
4976 assocfunc.o: have_stdlib.h
4977 assocfunc.o: have_string.h
4978 assocfunc.o: longbits.h
4979 assocfunc.o: nametype.h
4980 assocfunc.o: qmath.h
4981 assocfunc.o: sha1.h
4982 assocfunc.o: str.h
4983 assocfunc.o: value.h
4984 assocfunc.o: zmath.h
4985 blkcpy.o: alloc.h
4986 blkcpy.o: blkcpy.c
4987 blkcpy.o: blkcpy.h
4988 blkcpy.o: block.h
4989 blkcpy.o: byteswap.h
4990 blkcpy.o: calc.h
4991 blkcpy.o: calcerr.h
4992 blkcpy.o: cmath.h
4993 blkcpy.o: config.h
4994 blkcpy.o: decl.h
4995 blkcpy.o: endian_calc.h
4996 blkcpy.o: file.h
4997 blkcpy.o: hash.h
4998 blkcpy.o: have_const.h
4999 blkcpy.o: have_fpos.h
5000 blkcpy.o: have_memmv.h
5001 blkcpy.o: have_newstr.h
5002 blkcpy.o: have_stdlib.h
5003 blkcpy.o: have_string.h
5004 blkcpy.o: longbits.h
5005 blkcpy.o: nametype.h
5006 blkcpy.o: qmath.h
5007 blkcpy.o: sha1.h
5008 blkcpy.o: str.h
5009 blkcpy.o: value.h
5010 blkcpy.o: zmath.h
5011 block.o: alloc.h
5012 block.o: block.c
5013 block.o: block.h
5014 block.o: byteswap.h
5015 block.o: calcerr.h
5016 block.o: cmath.h
5017 block.o: config.h
5018 block.o: decl.h
5019 block.o: endian_calc.h
5020 block.o: hash.h
5021 block.o: have_const.h
5022 block.o: have_memmv.h
5023 block.o: have_newstr.h
5024 block.o: have_stdlib.h
5025 block.o: have_string.h
5026 block.o: longbits.h
5027 block.o: nametype.h
5028 block.o: qmath.h
5029 block.o: sha1.h
5030 block.o: str.h
5031 block.o: value.h
5032 block.o: zmath.h
5033 byteswap.o: alloc.h
5034 byteswap.o: byteswap.c
5035 byteswap.o: byteswap.h
5036 byteswap.o: cmath.h
5037 byteswap.o: decl.h
5038 byteswap.o: endian_calc.h
5039 byteswap.o: have_const.h
5040 byteswap.o: have_memmv.h
5041 byteswap.o: have_newstr.h
5042 byteswap.o: have_stdlib.h
5043 byteswap.o: have_string.h
5044 byteswap.o: longbits.h
5045 byteswap.o: qmath.h
5046 byteswap.o: zmath.h
5047 calc.o: alloc.h
5048 calc.o: args.h
5049 calc.o: block.h
5050 calc.o: byteswap.h
5051 calc.o: calc.c
5052 calc.o: calc.h
5053 calc.o: calcerr.h
5054 calc.o: cmath.h
5055 calc.o: conf.h
5056 calc.o: config.h
5057 calc.o: custom.h
5058 calc.o: decl.h
5059 calc.o: endian_calc.h
5060 calc.o: func.h
5061 calc.o: hash.h
5062 calc.o: have_const.h
5063 calc.o: have_memmv.h
5064 calc.o: have_newstr.h
5065 calc.o: have_stdlib.h
5066 calc.o: have_strdup.h
5067 calc.o: have_string.h
5068 calc.o: have_uid_t.h
5069 calc.o: have_unistd.h
5070 calc.o: have_unused.h
5071 calc.o: hist.h
5072 calc.o: label.h
5073 calc.o: lib_calc.h
5074 calc.o: longbits.h
5075 calc.o: nametype.h
5076 calc.o: opcodes.h
5077 calc.o: qmath.h
5078 calc.o: sha1.h
5079 calc.o: str.h
5080 calc.o: symbol.h
5081 calc.o: token.h
5082 calc.o: value.h
5083 calc.o: zmath.h
5084 calcerr.o: calcerr.c
5085 calcerr.o: calcerr.h
5086 calcerr.o: have_const.h
5087 codegen.o: alloc.h
5088 codegen.o: block.h
5089 codegen.o: byteswap.h
5090 codegen.o: calc.h
5091 codegen.o: calcerr.h
5092 codegen.o: cmath.h
5093 codegen.o: codegen.c
5094 codegen.o: conf.h
5095 codegen.o: config.h
5096 codegen.o: decl.h
5097 codegen.o: endian_calc.h
5098 codegen.o: func.h
5099 codegen.o: hash.h
5100 codegen.o: have_const.h
5101 codegen.o: have_memmv.h
5102 codegen.o: have_newstr.h
5103 codegen.o: have_stdlib.h
5104 codegen.o: have_string.h
5105 codegen.o: have_unistd.h
5106 codegen.o: label.h
5107 codegen.o: lib_calc.h
5108 codegen.o: longbits.h
5109 codegen.o: nametype.h
5110 codegen.o: opcodes.h
5111 codegen.o: qmath.h
5112 codegen.o: sha1.h
5113 codegen.o: str.h
5114 codegen.o: symbol.h
5115 codegen.o: token.h
5116 codegen.o: value.h
5117 codegen.o: zmath.h
5118 comfunc.o: alloc.h
5119 comfunc.o: byteswap.h
5120 comfunc.o: cmath.h
5121 comfunc.o: comfunc.c
5122 comfunc.o: config.h
5123 comfunc.o: decl.h
5124 comfunc.o: endian_calc.h
5125 comfunc.o: have_const.h
5126 comfunc.o: have_memmv.h
5127 comfunc.o: have_newstr.h
5128 comfunc.o: have_stdlib.h
5129 comfunc.o: have_string.h
5130 comfunc.o: longbits.h
5131 comfunc.o: nametype.h
5132 comfunc.o: qmath.h
5133 comfunc.o: zmath.h
5134 commath.o: alloc.h
5135 commath.o: byteswap.h
5136 commath.o: cmath.h
5137 commath.o: commath.c
5138 commath.o: decl.h
5139 commath.o: endian_calc.h
5140 commath.o: have_const.h
5141 commath.o: have_memmv.h
5142 commath.o: have_newstr.h
5143 commath.o: have_stdlib.h
5144 commath.o: have_string.h
5145 commath.o: longbits.h
5146 commath.o: qmath.h
5147 commath.o: zmath.h
5148 config.o: alloc.h
5149 config.o: block.h
5150 config.o: byteswap.h
5151 config.o: calc.h
5152 config.o: calcerr.h
5153 config.o: cmath.h
5154 config.o: config.c
5155 config.o: config.h
5156 config.o: custom.h
5157 config.o: decl.h
5158 config.o: endian_calc.h
5159 config.o: hash.h
5160 config.o: have_const.h
5161 config.o: have_memmv.h
5162 config.o: have_newstr.h
5163 config.o: have_stdlib.h
5164 config.o: have_strdup.h
5165 config.o: have_string.h
5166 config.o: have_times.h
5167 config.o: longbits.h
5168 config.o: nametype.h
5169 config.o: qmath.h
5170 config.o: sha1.h
5171 config.o: str.h
5172 config.o: token.h
5173 config.o: value.h
5174 config.o: zmath.h
5175 config.o: zrand.h
5176 const.o: alloc.h
5177 const.o: block.h
5178 const.o: byteswap.h
5179 const.o: calc.h
5180 const.o: calcerr.h
5181 const.o: cmath.h
5182 const.o: config.h
5183 const.o: const.c
5184 const.o: decl.h
5185 const.o: endian_calc.h
5186 const.o: hash.h
5187 const.o: have_const.h
5188 const.o: have_memmv.h
5189 const.o: have_newstr.h
5190 const.o: have_stdlib.h
5191 const.o: have_string.h
5192 const.o: longbits.h
5193 const.o: nametype.h
5194 const.o: qmath.h
5195 const.o: sha1.h
5196 const.o: str.h
5197 const.o: value.h
5198 const.o: zmath.h
5199 custom.o: alloc.h
5200 custom.o: block.h
5201 custom.o: byteswap.h
5202 custom.o: calc.h
5203 custom.o: calcerr.h
5204 custom.o: cmath.h
5205 custom.o: config.h
5206 custom.o: custom.c
5207 custom.o: custom.h
5208 custom.o: decl.h
5209 custom.o: endian_calc.h
5210 custom.o: hash.h
5211 custom.o: have_const.h
5212 custom.o: have_memmv.h
5213 custom.o: have_newstr.h
5214 custom.o: have_stdlib.h
5215 custom.o: have_string.h
5216 custom.o: longbits.h
5217 custom.o: nametype.h
5218 custom.o: qmath.h
5219 custom.o: sha1.h
5220 custom.o: str.h
5221 custom.o: value.h
5222 custom.o: zmath.h
5223 endian.o: endian.c
5224 endian.o: have_stdlib.h
5225 endian.o: have_unistd.h
5226 file.o: alloc.h
5227 file.o: block.h
5228 file.o: byteswap.h
5229 file.o: calc.h
5230 file.o: calcerr.h
5231 file.o: cmath.h
5232 file.o: config.h
5233 file.o: decl.h
5234 file.o: endian_calc.h
5235 file.o: file.c
5236 file.o: file.h
5237 file.o: fposval.h
5238 file.o: hash.h
5239 file.o: have_const.h
5240 file.o: have_fpos.h
5241 file.o: have_fpos_pos.h
5242 file.o: have_memmv.h
5243 file.o: have_newstr.h
5244 file.o: have_stdlib.h
5245 file.o: have_string.h
5246 file.o: have_unistd.h
5247 file.o: longbits.h
5248 file.o: nametype.h
5249 file.o: qmath.h
5250 file.o: sha1.h
5251 file.o: str.h
5252 file.o: value.h
5253 file.o: zmath.h
5254 fposval.o: endian_calc.h
5255 fposval.o: fposval.c
5256 fposval.o: have_fpos.h
5257 fposval.o: have_fpos_pos.h
5258 fposval.o: have_offscl.h
5259 fposval.o: have_posscl.h
5260 func.o: alloc.h
5261 func.o: block.h
5262 func.o: byteswap.h
5263 func.o: calc.h
5264 func.o: calcerr.h
5265 func.o: cmath.h
5266 func.o: config.h
5267 func.o: custom.h
5268 func.o: decl.h
5269 func.o: endian_calc.h
5270 func.o: file.h
5271 func.o: func.c
5272 func.o: func.h
5273 func.o: hash.h
5274 func.o: have_const.h
5275 func.o: have_fpos.h
5276 func.o: have_memmv.h
5277 func.o: have_newstr.h
5278 func.o: have_rusage.h
5279 func.o: have_stdlib.h
5280 func.o: have_strdup.h
5281 func.o: have_string.h
5282 func.o: have_times.h
5283 func.o: have_unistd.h
5284 func.o: have_unused.h
5285 func.o: label.h
5286 func.o: longbits.h
5287 func.o: nametype.h
5288 func.o: opcodes.h
5289 func.o: prime.h
5290 func.o: qmath.h
5291 func.o: sha1.h
5292 func.o: str.h
5293 func.o: symbol.h
5294 func.o: token.h
5295 func.o: value.h
5296 func.o: zmath.h
5297 func.o: zrand.h
5298 func.o: zrandom.h
5299 hash.o: alloc.h
5300 hash.o: block.h
5301 hash.o: byteswap.h
5302 hash.o: calc.h
5303 hash.o: calcerr.h
5304 hash.o: cmath.h
5305 hash.o: config.h
5306 hash.o: decl.h
5307 hash.o: endian_calc.h
5308 hash.o: hash.c
5309 hash.o: hash.h
5310 hash.o: have_const.h
5311 hash.o: have_memmv.h
5312 hash.o: have_newstr.h
5313 hash.o: have_stdlib.h
5314 hash.o: have_string.h
5315 hash.o: longbits.h
5316 hash.o: nametype.h
5317 hash.o: qmath.h
5318 hash.o: sha1.h
5319 hash.o: str.h
5320 hash.o: value.h
5321 hash.o: zmath.h
5322 hash.o: zrand.h
5323 hash.o: zrandom.h
5324 have_const.o: have_const.c
5325 have_fpos.o: have_fpos.c
5326 have_fpos_pos.o: have_fpos.h
5327 have_fpos_pos.o: have_fpos_pos.c
5328 have_fpos_pos.o: have_posscl.h
5329 have_getpgid.o: have_getpgid.c
5330 have_getprid.o: have_getprid.c
5331 have_getsid.o: have_getsid.c
5332 have_gettime.o: have_gettime.c
5333 have_memmv.o: have_memmv.c
5334 have_newstr.o: have_newstr.c
5335 have_offscl.o: have_offscl.c
5336 have_posscl.o: have_fpos.h
5337 have_posscl.o: have_posscl.c
5338 have_rusage.o: have_rusage.c
5339 have_stdvs.o: have_stdvs.c
5340 have_stdvs.o: have_string.h
5341 have_stdvs.o: have_unistd.h
5342 have_strdup.o: have_strdup.c
5343 have_uid_t.o: have_uid_t.c
5344 have_uid_t.o: have_unistd.h
5345 have_unused.o: have_unused.c
5346 have_ustat.o: have_ustat.c
5347 have_varvs.o: have_string.h
5348 have_varvs.o: have_unistd.h
5349 have_varvs.o: have_varvs.c
5350 help.o: alloc.h
5351 help.o: block.h
5352 help.o: byteswap.h
5353 help.o: calc.h
5354 help.o: calcerr.h
5355 help.o: cmath.h
5356 help.o: conf.h
5357 help.o: config.h
5358 help.o: decl.h
5359 help.o: endian_calc.h
5360 help.o: hash.h
5361 help.o: have_const.h
5362 help.o: have_memmv.h
5363 help.o: have_newstr.h
5364 help.o: have_stdlib.h
5365 help.o: have_string.h
5366 help.o: have_unistd.h
5367 help.o: help.c
5368 help.o: longbits.h
5369 help.o: nametype.h
5370 help.o: qmath.h
5371 help.o: sha1.h
5372 help.o: str.h
5373 help.o: value.h
5374 help.o: zmath.h
5375 hist.o: alloc.h
5376 hist.o: block.h
5377 hist.o: byteswap.h
5378 hist.o: calc.h
5379 hist.o: calcerr.h
5380 hist.o: cmath.h
5381 hist.o: config.h
5382 hist.o: decl.h
5383 hist.o: endian_calc.h
5384 hist.o: hash.h
5385 hist.o: have_const.h
5386 hist.o: have_memmv.h
5387 hist.o: have_newstr.h
5388 hist.o: have_stdlib.h
5389 hist.o: have_strdup.h
5390 hist.o: have_string.h
5391 hist.o: have_unistd.h
5392 hist.o: have_unused.h
5393 hist.o: hist.c
5394 hist.o: hist.h
5395 hist.o: longbits.h
5396 hist.o: nametype.h
5397 hist.o: qmath.h
5398 hist.o: sha1.h
5399 hist.o: str.h
5400 hist.o: value.h
5401 hist.o: zmath.h
5402 input.o: alloc.h
5403 input.o: block.h
5404 input.o: byteswap.h
5405 input.o: calc.h
5406 input.o: calcerr.h
5407 input.o: cmath.h
5408 input.o: conf.h
5409 input.o: config.h
5410 input.o: decl.h
5411 input.o: endian_calc.h
5412 input.o: hash.h
5413 input.o: have_const.h
5414 input.o: have_memmv.h
5415 input.o: have_newstr.h
5416 input.o: have_stdlib.h
5417 input.o: have_string.h
5418 input.o: have_unistd.h
5419 input.o: hist.h
5420 input.o: input.c
5421 input.o: longbits.h
5422 input.o: nametype.h
5423 input.o: qmath.h
5424 input.o: sha1.h
5425 input.o: str.h
5426 input.o: value.h
5427 input.o: zmath.h
5428 jump.o: decl.h
5429 jump.o: have_const.h
5430 jump.o: jump.c
5431 jump.o: jump.h
5432 label.o: alloc.h
5433 label.o: block.h
5434 label.o: byteswap.h
5435 label.o: calc.h
5436 label.o: calcerr.h
5437 label.o: cmath.h
5438 label.o: config.h
5439 label.o: decl.h
5440 label.o: endian_calc.h
5441 label.o: func.h
5442 label.o: hash.h
5443 label.o: have_const.h
5444 label.o: have_memmv.h
5445 label.o: have_newstr.h
5446 label.o: have_stdlib.h
5447 label.o: have_string.h
5448 label.o: label.c
5449 label.o: label.h
5450 label.o: longbits.h
5451 label.o: nametype.h
5452 label.o: opcodes.h
5453 label.o: qmath.h
5454 label.o: sha1.h
5455 label.o: str.h
5456 label.o: token.h
5457 label.o: value.h
5458 label.o: zmath.h
5459 lib_calc.o: alloc.h
5460 lib_calc.o: block.h
5461 lib_calc.o: byteswap.h
5462 lib_calc.o: calc.h
5463 lib_calc.o: calcerr.h
5464 lib_calc.o: cmath.h
5465 lib_calc.o: conf.h
5466 lib_calc.o: config.h
5467 lib_calc.o: custom.h
5468 lib_calc.o: decl.h
5469 lib_calc.o: endian_calc.h
5470 lib_calc.o: func.h
5471 lib_calc.o: hash.h
5472 lib_calc.o: have_const.h
5473 lib_calc.o: have_memmv.h
5474 lib_calc.o: have_newstr.h
5475 lib_calc.o: have_stdlib.h
5476 lib_calc.o: have_strdup.h
5477 lib_calc.o: have_string.h
5478 lib_calc.o: have_unistd.h
5479 lib_calc.o: label.h
5480 lib_calc.o: lib_calc.c
5481 lib_calc.o: lib_calc.h
5482 lib_calc.o: longbits.h
5483 lib_calc.o: nametype.h
5484 lib_calc.o: qmath.h
5485 lib_calc.o: sha1.h
5486 lib_calc.o: str.h
5487 lib_calc.o: symbol.h
5488 lib_calc.o: terminal.h
5489 lib_calc.o: token.h
5490 lib_calc.o: value.h
5491 lib_calc.o: zmath.h
5492 lib_calc.o: zrandom.h
5493 lib_util.o: alloc.h
5494 lib_util.o: byteswap.h
5495 lib_util.o: decl.h
5496 lib_util.o: endian_calc.h
5497 lib_util.o: have_const.h
5498 lib_util.o: have_memmv.h
5499 lib_util.o: have_newstr.h
5500 lib_util.o: have_stdlib.h
5501 lib_util.o: have_string.h
5502 lib_util.o: lib_util.c
5503 lib_util.o: lib_util.h
5504 lib_util.o: longbits.h
5505 lib_util.o: zmath.h
5506 listfunc.o: alloc.h
5507 listfunc.o: block.h
5508 listfunc.o: byteswap.h
5509 listfunc.o: calcerr.h
5510 listfunc.o: cmath.h
5511 listfunc.o: config.h
5512 listfunc.o: decl.h
5513 listfunc.o: endian_calc.h
5514 listfunc.o: hash.h
5515 listfunc.o: have_const.h
5516 listfunc.o: have_memmv.h
5517 listfunc.o: have_newstr.h
5518 listfunc.o: have_stdlib.h
5519 listfunc.o: have_string.h
5520 listfunc.o: listfunc.c
5521 listfunc.o: longbits.h
5522 listfunc.o: nametype.h
5523 listfunc.o: qmath.h
5524 listfunc.o: sha1.h
5525 listfunc.o: str.h
5526 listfunc.o: value.h
5527 listfunc.o: zmath.h
5528 listfunc.o: zrand.h
5529 longbits.o: have_stdlib.h
5530 longbits.o: have_unistd.h
5531 longbits.o: longbits.c
5532 matfunc.o: alloc.h
5533 matfunc.o: block.h
5534 matfunc.o: byteswap.h
5535 matfunc.o: calcerr.h
5536 matfunc.o: cmath.h
5537 matfunc.o: config.h
5538 matfunc.o: decl.h
5539 matfunc.o: endian_calc.h
5540 matfunc.o: hash.h
5541 matfunc.o: have_const.h
5542 matfunc.o: have_memmv.h
5543 matfunc.o: have_newstr.h
5544 matfunc.o: have_stdlib.h
5545 matfunc.o: have_string.h
5546 matfunc.o: have_unused.h
5547 matfunc.o: longbits.h
5548 matfunc.o: matfunc.c
5549 matfunc.o: nametype.h
5550 matfunc.o: qmath.h
5551 matfunc.o: sha1.h
5552 matfunc.o: str.h
5553 matfunc.o: value.h
5554 matfunc.o: zmath.h
5555 matfunc.o: zrand.h
5556 math_error.o: alloc.h
5557 math_error.o: args.h
5558 math_error.o: block.h
5559 math_error.o: byteswap.h
5560 math_error.o: calc.h
5561 math_error.o: calcerr.h
5562 math_error.o: cmath.h
5563 math_error.o: config.h
5564 math_error.o: decl.h
5565 math_error.o: endian_calc.h
5566 math_error.o: hash.h
5567 math_error.o: have_const.h
5568 math_error.o: have_memmv.h
5569 math_error.o: have_newstr.h
5570 math_error.o: have_stdlib.h
5571 math_error.o: have_string.h
5572 math_error.o: lib_calc.h
5573 math_error.o: longbits.h
5574 math_error.o: math_error.c
5575 math_error.o: nametype.h
5576 math_error.o: qmath.h
5577 math_error.o: sha1.h
5578 math_error.o: str.h
5579 math_error.o: value.h
5580 math_error.o: zmath.h
5581 no_implicit.o: no_implicit.c
5582 obj.o: alloc.h
5583 obj.o: block.h
5584 obj.o: byteswap.h
5585 obj.o: calc.h
5586 obj.o: calcerr.h
5587 obj.o: cmath.h
5588 obj.o: config.h
5589 obj.o: decl.h
5590 obj.o: endian_calc.h
5591 obj.o: func.h
5592 obj.o: hash.h
5593 obj.o: have_const.h
5594 obj.o: have_memmv.h
5595 obj.o: have_newstr.h
5596 obj.o: have_stdlib.h
5597 obj.o: have_string.h
5598 obj.o: label.h
5599 obj.o: longbits.h
5600 obj.o: nametype.h
5601 obj.o: obj.c
5602 obj.o: opcodes.h
5603 obj.o: qmath.h
5604 obj.o: sha1.h
5605 obj.o: str.h
5606 obj.o: symbol.h
5607 obj.o: value.h
5608 obj.o: zmath.h
5609 opcodes.o: alloc.h
5610 opcodes.o: block.h
5611 opcodes.o: byteswap.h
5612 opcodes.o: calc.h
5613 opcodes.o: calcerr.h
5614 opcodes.o: cmath.h
5615 opcodes.o: config.h
5616 opcodes.o: custom.h
5617 opcodes.o: decl.h
5618 opcodes.o: endian_calc.h
5619 opcodes.o: file.h
5620 opcodes.o: func.h
5621 opcodes.o: hash.h
5622 opcodes.o: have_const.h
5623 opcodes.o: have_fpos.h
5624 opcodes.o: have_memmv.h
5625 opcodes.o: have_newstr.h
5626 opcodes.o: have_stdlib.h
5627 opcodes.o: have_string.h
5628 opcodes.o: have_unused.h
5629 opcodes.o: hist.h
5630 opcodes.o: label.h
5631 opcodes.o: lib_calc.h
5632 opcodes.o: longbits.h
5633 opcodes.o: nametype.h
5634 opcodes.o: opcodes.c
5635 opcodes.o: opcodes.h
5636 opcodes.o: qmath.h
5637 opcodes.o: sha1.h
5638 opcodes.o: str.h
5639 opcodes.o: symbol.h
5640 opcodes.o: value.h
5641 opcodes.o: zmath.h
5642 opcodes.o: zrand.h
5643 opcodes.o: zrandom.h
5644 pix.o: alloc.h
5645 pix.o: byteswap.h
5646 pix.o: decl.h
5647 pix.o: endian_calc.h
5648 pix.o: have_const.h
5649 pix.o: have_memmv.h
5650 pix.o: have_newstr.h
5651 pix.o: have_stdlib.h
5652 pix.o: have_string.h
5653 pix.o: longbits.h
5654 pix.o: pix.c
5655 pix.o: prime.h
5656 pix.o: qmath.h
5657 pix.o: zmath.h
5658 poly.o: alloc.h
5659 poly.o: block.h
5660 poly.o: byteswap.h
5661 poly.o: calcerr.h
5662 poly.o: cmath.h
5663 poly.o: config.h
5664 poly.o: decl.h
5665 poly.o: endian_calc.h
5666 poly.o: hash.h
5667 poly.o: have_const.h
5668 poly.o: have_memmv.h
5669 poly.o: have_newstr.h
5670 poly.o: have_stdlib.h
5671 poly.o: have_string.h
5672 poly.o: longbits.h
5673 poly.o: nametype.h
5674 poly.o: poly.c
5675 poly.o: qmath.h
5676 poly.o: sha1.h
5677 poly.o: str.h
5678 poly.o: value.h
5679 poly.o: zmath.h
5680 prime.o: alloc.h
5681 prime.o: byteswap.h
5682 prime.o: decl.h
5683 prime.o: endian_calc.h
5684 prime.o: have_const.h
5685 prime.o: have_memmv.h
5686 prime.o: have_newstr.h
5687 prime.o: have_stdlib.h
5688 prime.o: have_string.h
5689 prime.o: jump.h
5690 prime.o: longbits.h
5691 prime.o: prime.c
5692 prime.o: prime.h
5693 prime.o: qmath.h
5694 prime.o: zmath.h
5695 qfunc.o: alloc.h
5696 qfunc.o: byteswap.h
5697 qfunc.o: config.h
5698 qfunc.o: decl.h
5699 qfunc.o: endian_calc.h
5700 qfunc.o: have_const.h
5701 qfunc.o: have_memmv.h
5702 qfunc.o: have_newstr.h
5703 qfunc.o: have_stdlib.h
5704 qfunc.o: have_string.h
5705 qfunc.o: longbits.h
5706 qfunc.o: nametype.h
5707 qfunc.o: prime.h
5708 qfunc.o: qfunc.c
5709 qfunc.o: qmath.h
5710 qfunc.o: zmath.h
5711 qio.o: alloc.h
5712 qio.o: args.h
5713 qio.o: byteswap.h
5714 qio.o: config.h
5715 qio.o: decl.h
5716 qio.o: endian_calc.h
5717 qio.o: have_const.h
5718 qio.o: have_memmv.h
5719 qio.o: have_newstr.h
5720 qio.o: have_stdlib.h
5721 qio.o: have_string.h
5722 qio.o: have_unused.h
5723 qio.o: longbits.h
5724 qio.o: nametype.h
5725 qio.o: qio.c
5726 qio.o: qmath.h
5727 qio.o: zmath.h
5728 qmath.o: alloc.h
5729 qmath.o: byteswap.h
5730 qmath.o: config.h
5731 qmath.o: decl.h
5732 qmath.o: endian_calc.h
5733 qmath.o: have_const.h
5734 qmath.o: have_memmv.h
5735 qmath.o: have_newstr.h
5736 qmath.o: have_stdlib.h
5737 qmath.o: have_string.h
5738 qmath.o: longbits.h
5739 qmath.o: nametype.h
5740 qmath.o: qmath.c
5741 qmath.o: qmath.h
5742 qmath.o: zmath.h
5743 qmod.o: alloc.h
5744 qmod.o: byteswap.h
5745 qmod.o: config.h
5746 qmod.o: decl.h
5747 qmod.o: endian_calc.h
5748 qmod.o: have_const.h
5749 qmod.o: have_memmv.h
5750 qmod.o: have_newstr.h
5751 qmod.o: have_stdlib.h
5752 qmod.o: have_string.h
5753 qmod.o: longbits.h
5754 qmod.o: nametype.h
5755 qmod.o: qmath.h
5756 qmod.o: qmod.c
5757 qmod.o: zmath.h
5758 qtrans.o: alloc.h
5759 qtrans.o: byteswap.h
5760 qtrans.o: decl.h
5761 qtrans.o: endian_calc.h
5762 qtrans.o: have_const.h
5763 qtrans.o: have_memmv.h
5764 qtrans.o: have_newstr.h
5765 qtrans.o: have_stdlib.h
5766 qtrans.o: have_string.h
5767 qtrans.o: longbits.h
5768 qtrans.o: qmath.h
5769 qtrans.o: qtrans.c
5770 qtrans.o: zmath.h
5771 quickhash.o: alloc.h
5772 quickhash.o: block.h
5773 quickhash.o: byteswap.h
5774 quickhash.o: calcerr.h
5775 quickhash.o: cmath.h
5776 quickhash.o: config.h
5777 quickhash.o: decl.h
5778 quickhash.o: endian_calc.h
5779 quickhash.o: hash.h
5780 quickhash.o: have_const.h
5781 quickhash.o: have_memmv.h
5782 quickhash.o: have_newstr.h
5783 quickhash.o: have_stdlib.h
5784 quickhash.o: have_string.h
5785 quickhash.o: longbits.h
5786 quickhash.o: nametype.h
5787 quickhash.o: qmath.h
5788 quickhash.o: quickhash.c
5789 quickhash.o: sha1.h
5790 quickhash.o: str.h
5791 quickhash.o: value.h
5792 quickhash.o: zmath.h
5793 quickhash.o: zrand.h
5794 quickhash.o: zrandom.h
5795 sample_many.o: alloc.h
5796 sample_many.o: block.h
5797 sample_many.o: byteswap.h
5798 sample_many.o: calc.h
5799 sample_many.o: calcerr.h
5800 sample_many.o: cmath.h
5801 sample_many.o: config.h
5802 sample_many.o: decl.h
5803 sample_many.o: endian_calc.h
5804 sample_many.o: hash.h
5805 sample_many.o: have_const.h
5806 sample_many.o: have_memmv.h
5807 sample_many.o: have_newstr.h
5808 sample_many.o: have_stdlib.h
5809 sample_many.o: have_string.h
5810 sample_many.o: lib_util.h
5811 sample_many.o: longbits.h
5812 sample_many.o: nametype.h
5813 sample_many.o: qmath.h
5814 sample_many.o: sample_many.c
5815 sample_many.o: sha1.h
5816 sample_many.o: str.h
5817 sample_many.o: value.h
5818 sample_many.o: zmath.h
5819 sample_many.o: zrandom.h
5820 sample_rand.o: alloc.h
5821 sample_rand.o: block.h
5822 sample_rand.o: byteswap.h
5823 sample_rand.o: calc.h
5824 sample_rand.o: calcerr.h
5825 sample_rand.o: cmath.h
5826 sample_rand.o: config.h
5827 sample_rand.o: decl.h
5828 sample_rand.o: endian_calc.h
5829 sample_rand.o: hash.h
5830 sample_rand.o: have_const.h
5831 sample_rand.o: have_memmv.h
5832 sample_rand.o: have_newstr.h
5833 sample_rand.o: have_stdlib.h
5834 sample_rand.o: have_string.h
5835 sample_rand.o: lib_util.h
5836 sample_rand.o: longbits.h
5837 sample_rand.o: nametype.h
5838 sample_rand.o: qmath.h
5839 sample_rand.o: sample_rand.c
5840 sample_rand.o: sha1.h
5841 sample_rand.o: str.h
5842 sample_rand.o: value.h
5843 sample_rand.o: zmath.h
5844 sample_rand.o: zrandom.h
5845 seed.o: alloc.h
5846 seed.o: byteswap.h
5847 seed.o: decl.h
5848 seed.o: endian_calc.h
5849 seed.o: have_const.h
5850 seed.o: have_getpgid.h
5851 seed.o: have_getprid.h
5852 seed.o: have_getsid.h
5853 seed.o: have_gettime.h
5854 seed.o: have_memmv.h
5855 seed.o: have_newstr.h
5856 seed.o: have_rusage.h
5857 seed.o: have_stdlib.h
5858 seed.o: have_string.h
5859 seed.o: have_times.h
5860 seed.o: have_uid_t.h
5861 seed.o: have_unistd.h
5862 seed.o: have_urandom.h
5863 seed.o: have_ustat.h
5864 seed.o: longbits.h
5865 seed.o: qmath.h
5866 seed.o: seed.c
5867 seed.o: zmath.h
5868 sha1.o: align32.h
5869 sha1.o: alloc.h
5870 sha1.o: block.h
5871 sha1.o: byteswap.h
5872 sha1.o: calcerr.h
5873 sha1.o: cmath.h
5874 sha1.o: config.h
5875 sha1.o: decl.h
5876 sha1.o: endian_calc.h
5877 sha1.o: hash.h
5878 sha1.o: have_const.h
5879 sha1.o: have_memmv.h
5880 sha1.o: have_newstr.h
5881 sha1.o: have_stdlib.h
5882 sha1.o: have_string.h
5883 sha1.o: longbits.h
5884 sha1.o: nametype.h
5885 sha1.o: qmath.h
5886 sha1.o: sha1.c
5887 sha1.o: sha1.h
5888 sha1.o: str.h
5889 sha1.o: value.h
5890 sha1.o: zmath.h
5891 size.o: alloc.h
5892 size.o: block.h
5893 size.o: byteswap.h
5894 size.o: calcerr.h
5895 size.o: cmath.h
5896 size.o: config.h
5897 size.o: decl.h
5898 size.o: endian_calc.h
5899 size.o: hash.h
5900 size.o: have_const.h
5901 size.o: have_memmv.h
5902 size.o: have_newstr.h
5903 size.o: have_stdlib.h
5904 size.o: have_string.h
5905 size.o: longbits.h
5906 size.o: nametype.h
5907 size.o: qmath.h
5908 size.o: sha1.h
5909 size.o: size.c
5910 size.o: str.h
5911 size.o: value.h
5912 size.o: zmath.h
5913 size.o: zrand.h
5914 size.o: zrandom.h
5915 str.o: alloc.h
5916 str.o: block.h
5917 str.o: byteswap.h
5918 str.o: calc.h
5919 str.o: calcerr.h
5920 str.o: cmath.h
5921 str.o: config.h
5922 str.o: decl.h
5923 str.o: endian_calc.h
5924 str.o: hash.h
5925 str.o: have_const.h
5926 str.o: have_memmv.h
5927 str.o: have_newstr.h
5928 str.o: have_stdlib.h
5929 str.o: have_string.h
5930 str.o: longbits.h
5931 str.o: nametype.h
5932 str.o: qmath.h
5933 str.o: sha1.h
5934 str.o: str.c
5935 str.o: str.h
5936 str.o: value.h
5937 str.o: zmath.h
5938 symbol.o: alloc.h
5939 symbol.o: block.h
5940 symbol.o: byteswap.h
5941 symbol.o: calc.h
5942 symbol.o: calcerr.h
5943 symbol.o: cmath.h
5944 symbol.o: config.h
5945 symbol.o: decl.h
5946 symbol.o: endian_calc.h
5947 symbol.o: func.h
5948 symbol.o: hash.h
5949 symbol.o: have_const.h
5950 symbol.o: have_memmv.h
5951 symbol.o: have_newstr.h
5952 symbol.o: have_stdlib.h
5953 symbol.o: have_string.h
5954 symbol.o: label.h
5955 symbol.o: longbits.h
5956 symbol.o: nametype.h
5957 symbol.o: opcodes.h
5958 symbol.o: qmath.h
5959 symbol.o: sha1.h
5960 symbol.o: str.h
5961 symbol.o: symbol.c
5962 symbol.o: symbol.h
5963 symbol.o: token.h
5964 symbol.o: value.h
5965 symbol.o: zmath.h
5966 token.o: alloc.h
5967 token.o: args.h
5968 token.o: block.h
5969 token.o: byteswap.h
5970 token.o: calc.h
5971 token.o: calcerr.h
5972 token.o: cmath.h
5973 token.o: config.h
5974 token.o: decl.h
5975 token.o: endian_calc.h
5976 token.o: hash.h
5977 token.o: have_const.h
5978 token.o: have_memmv.h
5979 token.o: have_newstr.h
5980 token.o: have_stdlib.h
5981 token.o: have_string.h
5982 token.o: lib_calc.h
5983 token.o: longbits.h
5984 token.o: nametype.h
5985 token.o: qmath.h
5986 token.o: sha1.h
5987 token.o: str.h
5988 token.o: token.c
5989 token.o: token.h
5990 token.o: value.h
5991 token.o: zmath.h
5992 value.o: alloc.h
5993 value.o: block.h
5994 value.o: byteswap.h
5995 value.o: calc.h
5996 value.o: calcerr.h
5997 value.o: cmath.h
5998 value.o: config.h
5999 value.o: decl.h
6000 value.o: endian_calc.h
6001 value.o: file.h
6002 value.o: func.h
6003 value.o: hash.h
6004 value.o: have_const.h
6005 value.o: have_fpos.h
6006 value.o: have_memmv.h
6007 value.o: have_newstr.h
6008 value.o: have_stdlib.h
6009 value.o: have_string.h
6010 value.o: label.h
6011 value.o: longbits.h
6012 value.o: nametype.h
6013 value.o: opcodes.h
6014 value.o: qmath.h
6015 value.o: sha1.h
6016 value.o: str.h
6017 value.o: symbol.h
6018 value.o: value.c
6019 value.o: value.h
6020 value.o: zmath.h
6021 value.o: zrand.h
6022 value.o: zrandom.h
6023 version.o: alloc.h
6024 version.o: block.h
6025 version.o: byteswap.h
6026 version.o: calc.h
6027 version.o: calcerr.h
6028 version.o: cmath.h
6029 version.o: config.h
6030 version.o: decl.h
6031 version.o: endian_calc.h
6032 version.o: hash.h
6033 version.o: have_const.h
6034 version.o: have_memmv.h
6035 version.o: have_newstr.h
6036 version.o: have_stdlib.h
6037 version.o: have_string.h
6038 version.o: have_unused.h
6039 version.o: longbits.h
6040 version.o: nametype.h
6041 version.o: qmath.h
6042 version.o: sha1.h
6043 version.o: str.h
6044 version.o: value.h
6045 version.o: version.c
6046 version.o: zmath.h
6047 zfunc.o: alloc.h
6048 zfunc.o: byteswap.h
6049 zfunc.o: decl.h
6050 zfunc.o: endian_calc.h
6051 zfunc.o: have_const.h
6052 zfunc.o: have_memmv.h
6053 zfunc.o: have_newstr.h
6054 zfunc.o: have_stdlib.h
6055 zfunc.o: have_string.h
6056 zfunc.o: longbits.h
6057 zfunc.o: zfunc.c
6058 zfunc.o: zmath.h
6059 zio.o: alloc.h
6060 zio.o: args.h
6061 zio.o: byteswap.h
6062 zio.o: config.h
6063 zio.o: decl.h
6064 zio.o: endian_calc.h
6065 zio.o: have_const.h
6066 zio.o: have_memmv.h
6067 zio.o: have_newstr.h
6068 zio.o: have_stdlib.h
6069 zio.o: have_string.h
6070 zio.o: longbits.h
6071 zio.o: nametype.h
6072 zio.o: qmath.h
6073 zio.o: zio.c
6074 zio.o: zmath.h
6075 zmath.o: alloc.h
6076 zmath.o: byteswap.h
6077 zmath.o: decl.h
6078 zmath.o: endian_calc.h
6079 zmath.o: have_const.h
6080 zmath.o: have_memmv.h
6081 zmath.o: have_newstr.h
6082 zmath.o: have_stdlib.h
6083 zmath.o: have_string.h
6084 zmath.o: longbits.h
6085 zmath.o: zmath.c
6086 zmath.o: zmath.h
6087 zmod.o: alloc.h
6088 zmod.o: byteswap.h
6089 zmod.o: config.h
6090 zmod.o: decl.h
6091 zmod.o: endian_calc.h
6092 zmod.o: have_const.h
6093 zmod.o: have_memmv.h
6094 zmod.o: have_newstr.h
6095 zmod.o: have_stdlib.h
6096 zmod.o: have_string.h
6097 zmod.o: longbits.h
6098 zmod.o: nametype.h
6099 zmod.o: qmath.h
6100 zmod.o: zmath.h
6101 zmod.o: zmod.c
6102 zmul.o: alloc.h
6103 zmul.o: byteswap.h
6104 zmul.o: config.h
6105 zmul.o: decl.h
6106 zmul.o: endian_calc.h
6107 zmul.o: have_const.h
6108 zmul.o: have_memmv.h
6109 zmul.o: have_newstr.h
6110 zmul.o: have_stdlib.h
6111 zmul.o: have_string.h
6112 zmul.o: longbits.h
6113 zmul.o: nametype.h
6114 zmul.o: qmath.h
6115 zmul.o: zmath.h
6116 zmul.o: zmul.c
6117 zprime.o: alloc.h
6118 zprime.o: block.h
6119 zprime.o: byteswap.h
6120 zprime.o: calcerr.h
6121 zprime.o: cmath.h
6122 zprime.o: config.h
6123 zprime.o: decl.h
6124 zprime.o: endian_calc.h
6125 zprime.o: hash.h
6126 zprime.o: have_const.h
6127 zprime.o: have_memmv.h
6128 zprime.o: have_newstr.h
6129 zprime.o: have_stdlib.h
6130 zprime.o: have_string.h
6131 zprime.o: jump.h
6132 zprime.o: longbits.h
6133 zprime.o: nametype.h
6134 zprime.o: prime.h
6135 zprime.o: qmath.h
6136 zprime.o: sha1.h
6137 zprime.o: str.h
6138 zprime.o: value.h
6139 zprime.o: zmath.h
6140 zprime.o: zprime.c
6141 zprime.o: zrand.h
6142 zrand.o: alloc.h
6143 zrand.o: block.h
6144 zrand.o: byteswap.h
6145 zrand.o: calcerr.h
6146 zrand.o: cmath.h
6147 zrand.o: config.h
6148 zrand.o: decl.h
6149 zrand.o: endian_calc.h
6150 zrand.o: hash.h
6151 zrand.o: have_const.h
6152 zrand.o: have_memmv.h
6153 zrand.o: have_newstr.h
6154 zrand.o: have_stdlib.h
6155 zrand.o: have_string.h
6156 zrand.o: have_unused.h
6157 zrand.o: longbits.h
6158 zrand.o: nametype.h
6159 zrand.o: qmath.h
6160 zrand.o: sha1.h
6161 zrand.o: str.h
6162 zrand.o: value.h
6163 zrand.o: zmath.h
6164 zrand.o: zrand.c
6165 zrand.o: zrand.h
6166 zrandom.o: alloc.h
6167 zrandom.o: block.h
6168 zrandom.o: byteswap.h
6169 zrandom.o: calcerr.h
6170 zrandom.o: cmath.h
6171 zrandom.o: config.h
6172 zrandom.o: decl.h
6173 zrandom.o: endian_calc.h
6174 zrandom.o: hash.h
6175 zrandom.o: have_const.h
6176 zrandom.o: have_memmv.h
6177 zrandom.o: have_newstr.h
6178 zrandom.o: have_stdlib.h
6179 zrandom.o: have_string.h
6180 zrandom.o: have_unused.h
6181 zrandom.o: longbits.h
6182 zrandom.o: nametype.h
6183 zrandom.o: qmath.h
6184 zrandom.o: sha1.h
6185 zrandom.o: str.h
6186 zrandom.o: value.h
6187 zrandom.o: zmath.h
6188 zrandom.o: zrandom.c
6189 zrandom.o: zrandom.h