home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / progmisc / dif115as.zip / MAKEFILE < prev    next >
Text File  |  1992-02-22  |  3KB  |  102 lines

  1. # Makefile for GNU DIFF, MS-DOS Version
  2. # Copyright (C) 1988, 1989 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 1, 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. # $Header: e:/gnu/diff/RCS/makefile 1.15.0.1 91/03/12 18:14:26 tho Exp $
  19.  
  20. GNUVER    = 1.15
  21.  
  22. MSC    = 600
  23. VPATH    = d:/usr/lib;d:/usr/include
  24. INSTALL    = cp -f
  25. BINDIR    = c:/bin
  26. DISK    = b
  27. ZIPFILE    = diff
  28.  
  29. OBJS    = analyze.obj context.obj ed.obj diff.obj ifdef.obj io.obj \
  30.       normal.obj util.obj dir.obj version.obj _cwild.obj
  31.  
  32. SRCS    = analyze.c context.c ed.c diff.c ifdef.c io.c normal.c util.c \
  33.       dir.c version.c diff3.c
  34. INCS    = diff.h limits.h
  35.  
  36. RCSFILES = $(SRCS) $(INCS) makefile
  37. MISC    = ChangeLog
  38.  
  39. MODEL    = L
  40. CONFIG    = -DUSG -DHAVE_NDIR -DHAVE_DIRECT -DSMART_SHELL
  41.  
  42. # Don't use -Oi, since the intrinsic functions loose for huge arrays.
  43.  
  44. ifeq ($(MSC),510)
  45. CFLAGS    = -A$(MODEL) -Oalt -Gs -Za -W4 $(CONFIG)
  46. CRIPPLED_CFLAGS= -A$(MODEL) -Olt -Gs -Za -W4 $(CONFIG)
  47. else  # not MSC 5.10
  48. CFLAGS    = -A$(MODEL) -Oceglt -Gs -Za -W4 $(CONFIG)
  49. endif # MSC 5.10
  50. LDFLAGS = /e/noe/st:0x4000 setargv
  51.  
  52. LOADLIBES = gnulib_$(MODEL)
  53.  
  54. # make'm
  55.  
  56. all: diff.exe diff3.exe
  57.  
  58. diff.exe: $(OBJS)
  59. diff3.exe: _cwild.obj
  60.  
  61. ifeq ($(MSC),510)
  62. # This kludge is necessary because the MSC 5.1 compiler bombs with relaxed
  63. # alias checking ...
  64. analyze.obj: analyze.c
  65.     $(CC) $(CRIPPLED_CFLAGS) $(CPPFLAGS) -c $<
  66. endif # MSC 5.10
  67.  
  68. ifeq ($(MSC),600)
  69. # This kludge is necessary because the MSC 6.0 compiler has a bug in the
  70. # argument parsing from the environment ...
  71. diff3.obj: diff3.c
  72.     CL $(CFLAGS) -DDIFF_PROGRAM=\\"diff\\" -c $<
  73. endif # MSC 6.00
  74.  
  75. $(OBJS): diff.h limits.h
  76.  
  77. # Utils
  78.  
  79. include make.inc
  80.  
  81. tags: $(SRCS) $(INCS)
  82.     etags -t *.c *.h
  83.  
  84. clean:
  85.     $(RM) *.obj
  86.  
  87. veryclean:
  88.     $(RM) *.exe errs tags
  89.     rcsclean -q *.[ch] makefile
  90.  
  91.  
  92. dist: README.DOS Makefile patches diff.exe diff3.exe
  93.     shar -BC -F -angnudiff -L60 -odiff $^
  94.  
  95. patches:
  96.     $(MAKE) -t
  97.     $(RM) *.exe *.obj
  98.     rcsdiff -r$(GNUVER) -c *.[ch] > $@
  99.  
  100.