home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / useful / dist / gnu / diffutils / build / makefile.orig < prev    next >
Encoding:
Makefile  |  1993-09-26  |  4.3 KB  |  155 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for GNU DIFF
  3. # Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  4. #
  5. # This file is part of GNU DIFF.
  6. #
  7. # GNU DIFF is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. # GNU DIFF is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. # You should have received a copy of the GNU General Public License
  16. # along with GNU DIFF; see the file COPYING.  If not, write to
  17. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #### Start of system configuration section. ####
  20.  
  21. srcdir = .
  22. VPATH = .
  23.  
  24. CC = gcc
  25. INSTALL = cp
  26. INSTALL_PROGRAM = $(INSTALL)
  27. INSTALL_DATA = $(INSTALL)
  28. MAKEINFO = makeinfo
  29.  
  30. CFLAGS = -g
  31. LDFLAGS = -g
  32. LIBS = 
  33.  
  34. # Some System V machines do not come with libPW.
  35. # If this is true for you, use the GNU alloca.o here.
  36. ALLOCA = 
  37.  
  38. prefix = /usr/local
  39. exec_prefix = $(prefix)
  40.  
  41. # Prefix for each installed program, normally empty or `g'.
  42. binprefix = 
  43.  
  44. bindir = $(exec_prefix)/bin
  45.  
  46. infodir = $(prefix)/info
  47.  
  48. #### End of system configuration section. ####
  49.  
  50. SHELL = /bin/sh
  51.  
  52. # The source files for all of the programs.
  53. srcs=diff.c analyze.c cmpbuf.c cmpbuf.h io.c context.c ed.c normal.c ifdef.c \
  54.     util.c dir.c \
  55.     version.c diff.h regex.c regex.h side.c system.h \
  56.     diff3.c sdiff.c cmp.c error.c xmalloc.c getopt.c getopt1.c getopt.h \
  57.     fnmatch.c fnmatch.h alloca.c
  58. # Object files for diff only.
  59. objs=diff.o analyze.o cmpbuf.o io.o context.o \
  60.      ed.o normal.o util.o dir.o fnmatch.o \
  61.      regex.o side.o ifdef.o version.o \
  62.      getopt.o getopt1.o $(ALLOCA)
  63. distfiles = $(srcs) README INSTALL NEWS diagmeet.note Makefile.in \
  64.     config.h.in configure configure.in COPYING ChangeLog \
  65.     diff.texi diff.info* texinfo.tex \
  66.     mkinstalldirs
  67.  
  68. all: diff diff3 sdiff cmp diff.info
  69.  
  70. COMPILE = $(CC) -c -DHAVE_CONFIG_H $(CPPFLAGS) -I. -I$(srcdir) $(CFLAGS)
  71.  
  72. .c.o:
  73.     $(COMPILE) $<
  74.  
  75. diff: $(objs)
  76.     $(CC) -o $@ $(LDFLAGS) $(objs) $(LIBS)
  77.  
  78. diff3: diff3.o getopt.o getopt1.o version.o $(ALLOCA)
  79.     $(CC) -o $@ $(LDFLAGS) diff3.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
  80.  
  81. sdiff: sdiff.o getopt.o getopt1.o version.o $(ALLOCA)
  82.     $(CC) -o $@ $(LDFLAGS) sdiff.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
  83.  
  84. cmp: cmp.o cmpbuf.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA)
  85.     $(CC) -o $@ $(LDFLAGS) cmp.o cmpbuf.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA) $(LIBS)
  86.  
  87. diff.info: diff.texi
  88.     $(MAKEINFO) $(srcdir)/diff.texi
  89.  
  90. $(objs): diff.h system.h
  91. cmp.o diff3.o sdiff.o: system.h
  92. context.o diff.o regex.o: regex.h
  93. cmp.o diff.o diff3.o sdiff.o getopt.o getopt1.o: getopt.h
  94. diff.o fnmatch.o: fnmatch.h
  95. analyze.o cmpbuf.o cmp.o: cmpbuf.h
  96.  
  97. diff3.o: diff3.c
  98.     $(COMPILE) -DDIFF_PROGRAM=\"$(bindir)/$(binprefix)diff\" $(srcdir)/diff3.c
  99.  
  100. sdiff.o: sdiff.c
  101.     $(COMPILE) -DDIFF_PROGRAM=\"$(bindir)/$(binprefix)diff\" $(srcdir)/sdiff.c
  102.  
  103. TAGS: $(srcs)
  104.     etags $(srcs)
  105.  
  106. clean:
  107.     rm -f *.o diff diff3 sdiff cmp core
  108.  
  109. mostlyclean: clean
  110.  
  111. distclean: clean
  112.     rm -f Makefile config.status
  113.  
  114. realclean: distclean
  115.     rm -f TAGS *.info*
  116.  
  117. install: all installdirs
  118.     for p in diff diff3 sdiff cmp; \
  119.     do $(INSTALL_PROGRAM) $$p $(bindir)/$(binprefix)$$p; done
  120.     cd $(srcdir); for f in diff.info*; \
  121.     do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  122.  
  123. installdirs:
  124.     $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir)
  125.  
  126. uninstall:
  127.     for p in diff diff3 sdiff cmp; \
  128.     do rm -f $(bindir)/$(binprefix)$$p; done
  129.     rm -f $(infodir)/diff.info*
  130.  
  131. Makefile: Makefile.in config.status
  132.     $(SHELL) config.status
  133. config.status: configure
  134.     $(SHELL) $(srcdir)/configure --no-create
  135. configure: configure.in
  136.     cd $(srcdir); autoconf
  137. config.h.in: configure.in
  138.     cd $(srcdir); autoheader
  139.  
  140. dist: $(distfiles)
  141.     echo diffutils-`sed -e '/version_string/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q version.c` > .fname
  142.     rm -rf `cat .fname`
  143.     mkdir `cat .fname`
  144.     -ln $(distfiles) `cat .fname`
  145.     for file in $(distfiles); do \
  146.       [ -r `cat .fname`/$$file ] || cp -p $$file `cat .fname` || exit; \
  147.     done
  148.     tar -chf - `cat .fname` | gzip >`cat .fname`.tar.gz
  149.     rm -rf `cat .fname` .fname
  150.  
  151. # Prevent GNU make v3 from overflowing arg limit on SysV.
  152. .NOEXPORT:
  153.