home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / useful / dist / gnu / diffutils / diffutils-2.4-amiga / makefile.in < prev    next >
Encoding:
Makefile  |  1993-09-14  |  4.3 KB  |  154 lines

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