home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / find-3.8-src.lha / src / amiga / find-3.8 / Makefile.in < prev    next >
Makefile  |  1994-02-23  |  5KB  |  137 lines

  1. # Master Makefile for GNU find, xargs, and locate.
  2. # Copyright (C) 1987, 1990, 1991 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir = @srcdir@
  23. VPATH = @srcdir@
  24.  
  25. CC = @CC@
  26. AR = ar
  27. # Set RANLIB = echo if your system doesn't have or need ranlib.
  28. RANLIB = @RANLIB@
  29. # Use cp if you don't have install.
  30. INSTALL = @INSTALL@
  31. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  32. INSTALL_DATA = @INSTALL_DATA@
  33.  
  34. # Things you might add to DEFS:
  35. # -DCACHE_IDS        If you want find -nouser and -nogroup to make
  36. #            tables of used UIDs and GIDs at startup
  37. #            instead of using getpwuid or getgrgid when
  38. #            needed.  Speeds up -nouser and -nogroup unless
  39. #            you are running NIS or Hesiod, which make
  40. #            password and group calls very expensive. 
  41. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  42. # -DHAVE_UNISTD_H    If you have unistd.h.
  43. # -DHAVE_STRING_H    If you don't have ANSI C headers but have string.h.
  44. # -DDIRENT        If you have dirent.h.
  45. # -DSYSNDIR        Old Xenix systems (sys/ndir.h).
  46. # -DSYSDIR        Old BSD systems (sys/dir.h).
  47. # -DNDIR        Old System V systems (ndir.h).
  48. # -DVOID_CLOSEDIR    If your closedir function returns void, not int.
  49. # -DMAJOR_IN_MKDEV    If major, minor, makedev defined in sys/mkdev.h.
  50. # -DMAJOR_IN_SYSMACROS    If major, minor, makedev defined in sys/sysmacros.h.
  51. # -DHAVE_LIMITS_H    If you have limits.h; otherwise uses sys/param.h.
  52. # -DHAVE_ST_BLOCKS    If your `struct stat' has st_blocks and st_blksize.
  53. # -DHAVE_ST_RDEV    If your `struct stat' has st_rdev.
  54. # -DHAVE_STRERROR    If you have strerror function.
  55. # -DHAVE_VPRINTF    If you have vprintf function.
  56. # -DHAVE_DOPRNT        If you have _doprnt function (but lack vprintf).
  57. # -DHAVE_TM_ZONE    If you have tm_zone in struct tm; otherwise
  58. #            uses tm_isdst and tzname.
  59. # -DHAVE_TZNAME        If you have tm_zone and tzname but not tm_zone;
  60. #            otherwise uses tm_isdst and timezone.
  61. # Define zero or one of the following:
  62. # If no FSTYPE_* is defined, -fstype treats every filesystem as type "unknown".
  63. # -DFSTYPE_MNTENT    Use 4.3BSD getmntent to get filesystem type.
  64. # -DFSTYPE_GETMNT    Use Ultrix getmnt to get filesystem type.
  65. # -DFSTYPE_STATFS    Use 4.4BSD and OSF1 statfs to get filesystem type.
  66. # -DFSTYPE_USG_STATFS    Use SVR3.2 statfs to get filesystem type.
  67. # -DFSTYPE_AIX_STATFS    Use AIX3 statfs to get filesystem type.
  68. # -DFSTYPE_STATVFS    Use SVR4 statvfs to get filesystem type.
  69.  
  70. DEFS = @DEFS@
  71.  
  72. CFLAGS = -O2
  73. LDFLAGS =
  74. LIBS = @LIBS@
  75.  
  76. prefix = /gnu
  77. exec_prefix = $(prefix)
  78.  
  79. # Prefix for each installed program, normally empty or `g'.
  80. binprefix = 
  81. # Prefix for each installed man page, normally empty or `g'.
  82. manprefix = 
  83.  
  84. # Where to install `find' and `locate'.
  85. bindir = $(exec_prefix)/bin
  86.  
  87. # Where to install programs to create the `locate' database.
  88. libdir = $(exec_prefix)/lib/locate
  89.  
  90. # Where to install the `locate' database.
  91. datadir = $(prefix)/lib/locate
  92.  
  93. # Name of the `locate' database file.
  94. LOCATE_DB = $(datadir)/find.codes
  95.  
  96. # Where to install manual pages.
  97. mandir = $(prefix)/man/man1
  98. # Extension (not including `.') for the installed manual page filenames.
  99. manext = 1
  100.  
  101. #### End of system configuration section. ####
  102.  
  103. # Arguments to pass to subdirectory makes.
  104. MDEFINES = bindir='$(bindir)' libdir='$(libdir)' datadir='$(datadir)' \
  105. binprefix='$(binprefix)' manprefix='$(manprefix)' \
  106. mandir='$(mandir)' manext='$(manext)' LOCATE_DB='$(LOCATE_DB)' \
  107. INSTALL_PROGRAM='$(INSTALL_PROGRAM)' INSTALL_DATA='$(INSTALL_DATA)' \
  108. AR='$(AR)' RANLIB='$(RANLIB)' DEFS='$(DEFS)' \
  109. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
  110.  
  111. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README INSTALL \
  112. NEWS configure configure.in
  113.  
  114. # Subdirectories to run make in for the primary targets.
  115. SUBDIRS = lib find xargs locate man
  116.  
  117. all:
  118.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  119.  
  120. install uninstall TAGS clean mostlyclean distclean realclean::
  121.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  122.  
  123. distclean realclean::
  124.     rm -f Makefile config.status
  125.  
  126. dist:
  127.     echo find-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q find/version.c` > .fname
  128.     rm -rf `cat .fname`
  129.     mkdir `cat .fname`
  130.     ln $(DISTFILES) `cat .fname`
  131.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  132.     tar chzf `cat .fname`.tar.z `cat .fname`
  133.     rm -rf `cat .fname` .fname
  134.  
  135. # Prevent GNU make v3 from overflowing arg limit on SysV.
  136. .NOEXPORT:
  137.