home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / src / file31s.zoo / file3.1 / makefile.cx < prev    next >
Encoding:
Makefile  |  1991-10-18  |  5.0 KB  |  140 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Master Makefile for the GNU file utilities.
  3. # Copyright (C) 1986, 1988-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 = .
  24.  
  25.  
  26. # If you use gcc, you should either run the fixincludes script that
  27. # comes with it or else use gcc with the -traditional option.  Otherwise
  28. # ioctl calls will be compiled incorrectly on some systems.
  29. CC = cc
  30. AR = ar
  31. # Set RANLIB = echo if your system doesn't have or need ranlib.
  32. RANLIB = ranlib
  33.  
  34. # Things you might add to DEFS:
  35. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  36. # -DPOSIX        If you have POSIX.1 headers and libraries.
  37. #            Also need to define -DDIRENT.
  38. # -DUSG            If you have System V/ANSI C string and
  39. #            memory functions and headers, ndir.h,
  40. #            sys/sysmacros.h, no sys/times.h, fcntl.h,
  41. #            getcwd.
  42. # -DSIGTYPE=int        If your signal handlers return int, not void.
  43. # -DDIRENT        If you have dirent.h.
  44. # -DSYSNDIR        Old Xenix systems (selects sys/ndir.h).
  45. # -DVOID_CLOSEDIR    If your closedir function returns void, not int.
  46. # -DMAJOR_IN_MKDEV    If major, minor, makedev are defined in sys/mkdev.h.
  47. # -DINT_16_BITS        If sizeof long > sizeof int.
  48. # -DVPRINTF_MISSING    If you lack vprintf function (but have _doprnt).
  49. # -DDOPRNT_MISSING    If you lack _doprnt function.  Also need to define
  50. #            -DVPRINTF_MISSING.
  51. # -DMKFIFO_MISSING    If you lack mkfifo system call, but have FIFOs.
  52. # -DFTRUNCATE_MISSING    If you lack ftruncate system call.
  53. # -DFCHMOD_MISSING    If you lack fchmod system call.
  54. # -DMVDIR=\"$(libdir)/mvdir\"
  55. #            If you lack rename system call.
  56. # -DST_BLOCKS_MISSING    If your `struct stat' lacks st_blocks and st_blksize.
  57. # -DUTIME_NULL_MISSING    If your utime system call does not use the
  58. #            current time when passed a null time pointer.
  59. # -DNEED_TZSET        If you lack ftime system call and
  60. #            need to call tzset to set the timezone.
  61. # Define zero or one of the following:
  62. # If no FS_* is defined, df will not link.
  63. # -DFS_MNTENT        If you use 4.3BSD getmntent to get filesystem info.
  64. # -DFS_GETMNT        If you use Ultrix getmnt to get filesystem info.
  65. # -DFS_STATFS        If you use 4.4BSD statfs to get filesystem info.
  66. # -DFS_USG_STATFS    If you use SVR3.2 statfs to get filesystem info.
  67. # -DFS_STATVFS        If you use SVR4 statvfs to get filesystem info.
  68.  
  69. DEFS =  -DDIRENT -DFS_MNTENT -DSTDC_HEADERS -DPOSIX -DFTIME_MISSING
  70. LIBS = 
  71. LIBPROGS = 
  72.  
  73. CDEBUG = -g
  74. CFLAGS = $(CDEBUG) -I. -I../lib -I$(srcdir)/lib $(DEFS)
  75. LDFLAGS = -g
  76.  
  77. prefix = /usr/local
  78.  
  79. # Where to install the executables.
  80. bindir = $(prefix)/gnubin
  81.  
  82. # Where to put mvdir, if your system lacks the rename system call.
  83. libdir = $(prefix)/lib
  84.  
  85. # Where to put the manual pages.
  86. mandir = $(prefix)/man/man1
  87. # Extension (not including `.') for the installed manual page filenames.
  88. manext = 1
  89.  
  90. #### End of system configuration section. ####
  91.  
  92. MDEFINES = bindir='$(bindir)' libdir='$(libdir)' mandir='$(mandir)' \
  93. manext='$(manext)' LIBS='$(LIBS)' LIBPROGS='$(LIBPROGS)' \
  94. AR='$(AR)' RANLIB='$(RANLIB)' \
  95. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
  96.  
  97. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README configure
  98.  
  99. # Subdirectories to run make in for the primary targets.
  100. SUBDIRS = lib src man
  101.  
  102. all:
  103.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  104. .PHONY: all
  105.  
  106. install:
  107.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  108. .PHONY: install
  109.  
  110. tags:
  111.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  112. .PHONY: tags
  113.  
  114. TAGS:
  115.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  116. .PHONY: TAGS
  117.  
  118. clean:
  119.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  120. .PHONY: clean
  121.  
  122. distclean:
  123.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  124.     rm -f Makefile config.status
  125. .PHONY: distclean
  126.  
  127. realclean:
  128.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  129.     rm -f Makefile config.status
  130. .PHONY: realclean
  131.  
  132. dist:
  133.     echo fileutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q src/version.c` > .fname
  134.     rm -rf `cat .fname`
  135.     mkdir `cat .fname`
  136.     ln $(DISTFILES) `cat .fname`
  137.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  138.     tar chZf `cat .fname`.tar.Z `cat .fname`
  139.     rm -rf `cat .fname` .fname
  140.