home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / time14.zip / time-1.4 / Makefile.in < prev    next >
Makefile  |  1992-10-28  |  3KB  |  120 lines

  1. # Makefile for GNU `time' command.
  2. # Copyright (C) 1989, 1990 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. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH = @srcdir@
  22.  
  23. CC = @CC@
  24.  
  25. # If you don't have a BSD or GNU install program, use cp.
  26. INSTALL = @INSTALL@
  27. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  28. INSTALL_DATA = @INSTALL_DATA@
  29.  
  30. MAKEINFO = makeinfo
  31.  
  32. # Things you might add to DEFS:
  33. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  34. # -DUSG            If you have System V/ANSI C string and
  35. #            memory functions and headers.
  36. # -DHAVE_SYS_RESOURCE_H    If you have sys/resource.h (for `struct rusage').
  37. # -DHAVE_SYS_TIME_H    If you have sys/time.h (for `struct timeval').
  38. # -DRETSIGTYPE=int    If your signal handlers return int, not void.
  39. # -DHAVE_STRERROR    If you have strerror function.
  40. # -DHAVE_VPRINTF    If you have vprintf function.
  41. # -DHAVE_DOPRNT        If you have _doprnt function (but lack vprintf).
  42. # -DHAVE_GETPAGESIZE    If you have getpagesize system call.
  43. # -DHAVE_UNISTD_H    If you have unistd.h.
  44.  
  45. DEFS = @DEFS@
  46. LIBS = @LIBS@
  47.  
  48. CFLAGS = -g
  49. LDFLAGS = -g
  50.  
  51. prefix = /usr/local
  52. exec_prefix = $(prefix)
  53.  
  54. # Prefix for each installed program, normally empty or `g'.
  55. binprefix = 
  56.  
  57. # Where to install time.
  58. bindir = $(exec_prefix)/bin
  59.  
  60. # Where to install the info file.
  61. infodir = $(prefix)/info
  62.  
  63. #### End of system configuration section. ####
  64.  
  65. SHELL = /bin/sh
  66.  
  67. HDRS = getopt.h getpagesize.h rusage.h timeval.h
  68. SRCS = time.c getopt.c getopt1.c error.c wait3.c
  69. OBJS = time.o getopt.o getopt1.o error.o @LIBOBJS@
  70. DISTFILES = COPYING ChangeLog Makefile.in README INSTALL NEWS \
  71. configure configure.in \
  72. time.texinfo time.info* texinfo.tex $(HDRS) $(SRCS)
  73.  
  74. all: time time.info
  75.  
  76. .c.o:
  77.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir) $<
  78.  
  79. time: $(OBJS)
  80.     $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
  81.  
  82. time.o getopt1.o: getopt.h
  83. time.o: getpagesize.h
  84. time.o wait3.o: rusage.h timeval.h
  85.  
  86. time.info: time.texinfo
  87.     $(MAKEINFO) $(srcdir)/time.texinfo
  88.  
  89. install:    time
  90.     $(INSTALL_PROGRAM) time $(bindir)/$(binprefix)time
  91.     cd $(srcdir); $(INSTALL_DATA) time.info* $(infodir)
  92.  
  93. uninstall:
  94.     rm -f $(bindir)/$(binprefix)time $(infodir)/time.info*
  95.  
  96. TAGS:    $(SRCS)
  97.     etags $(SRCS)
  98.  
  99. clean:
  100.     rm -f *.o time core
  101.  
  102. mostlyclean: clean
  103.  
  104. distclean: clean
  105.     rm -f Makefile config.status
  106.  
  107. realclean: distclean
  108.     rm -f TAGS *.info*
  109.  
  110. dist: $(DISTFILES)
  111.     echo time-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q time.c` > .fname
  112.     rm -rf `cat .fname`
  113.     mkdir `cat .fname`
  114.     ln $(DISTFILES) `cat .fname`
  115.     tar czhf `cat .fname`.tar.Z `cat .fname`
  116.     rm -rf `cat .fname` .fname
  117.  
  118. # Prevent GNU make v3 from overflowing arg limit on SysV.
  119. .NOEXPORT:
  120.