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

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