home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / utils / hwgrcs / hwgdiff / rcs.rcsfiles / smakefile,v < prev    next >
Encoding:
Text File  |  1993-02-20  |  4.8 KB  |  195 lines

  1. head    1.3;
  2. access;
  3. symbols
  4.     HWGDIFF_Fish:1.3
  5.     HWGDIFF:1.2;
  6. locks; strict;
  7. comment    @# @;
  8.  
  9.  
  10. 1.3
  11. date    93.02.07.16.23.28;    author heinz;    state Exp;
  12. branches;
  13. next    1.2;
  14.  
  15. 1.2
  16. date    93.01.19.14.36.25;    author heinz;    state Exp;
  17. branches;
  18. next    1.1;
  19.  
  20. 1.1
  21. date    93.01.19.14.07.30;    author heinz;    state Exp;
  22. branches;
  23. next    ;
  24.  
  25.  
  26. desc
  27. @This is the actual makefile for SAS/C 6.1
  28. The original makefile is still there though it is unused.
  29. @
  30.  
  31.  
  32. 1.3
  33. log
  34. @Added more dependencies for brain damaged smake.
  35. @
  36. text
  37. @# Makefile for GNU DIFF
  38. # Copyright (C) 1988, 1989 Free Software Foundation, Inc.
  39.  
  40. # This file is part of GNU DIFF.
  41.  
  42. # GNU DIFF is free software; you can redistribute it and/or modify
  43. # it under the terms of the GNU General Public License as published by
  44. # the Free Software Foundation; either version 1, or (at your option)
  45. # any later version.
  46. #
  47. # GNU DIFF is distributed in the hope that it will be useful,
  48. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  49. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
  50. # GNU General Public License for more details.
  51. #
  52. # You should have received a copy of the GNU General Public License
  53. # along with GNU DIFF; see the file COPYING.  If not, write to
  54. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  55.  
  56. # You can compile this with ordinary cc as well,
  57. # but gcc makes it faster.
  58. # Also, gcc supports -O and -g together.
  59. CC=SC
  60. # The global and peehole optimizers don't like regex.c
  61. CFLAGS = RESOPT DEFINE=AMIGA=1 IGNORE=62,85,93,100,120,149,154,161,178\
  62.      ANSI STRICT ERROR=ALL\
  63.      DEFINE=C_ALLOCA DEFINE=STACK_DIRECTION=-1 OPTIMIZE
  64. LIBS = STRT=LIB:cres.o
  65. INSTALL = COPY CLONE
  66.  
  67. # On system V, enable these three lines:
  68. # CFLAGS = -g -DUSG
  69. # LIBS = -lPW
  70. # INSTALL = cp
  71. # (If you compile with GCC, you don't need to define LIBS.)
  72. # And, depending on the names and contents of your header files,
  73. # add either -DHAVE_NDIR or -DHAVE_DIRECT or both to CFLAGS.
  74. # Add -DHAVE_NDIR to CFLAGS if your system used ndir.h instead of dirent.h
  75. # Add -DHAVE_DIRECT to CFLAGS if your system uses 'struct direct' instead of
  76. # 'struct dirent' (this is the case at least with one add-on ndir library).
  77.  
  78. # Use these definitions for XENIX:
  79. # There are rumors of bugs in various Xenix's dirent.h and -ldir.  As
  80. # a result, we suggest using HAVE_NDIR and not using -ldir.
  81. # CFLAGS = -O -DUSG -DXENIX -DHAVE_NDIR -DHAVE_DIRECT -DNDIR_IN_SYS
  82. # LIBS = -lx -lPW
  83. # INSTALL = cp
  84.  
  85. # Some System V machines do not come with libPW.  If this is true, use
  86. # the GNU alloca by switching the comment on the following lines.
  87. # ALLOCA =
  88. ALLOCA = $(archpfx)alloca.o
  89.  
  90. bindir=
  91. prefix=RCS:
  92.  
  93. # All source files
  94. srcs=diff.c analyze.c io.c context.c ed.c normal.c ifdef.c util.c dir.c \
  95.     version.c diff.h regex.c regex.h limits.h diff3.c \
  96.     getopt.c getopt1.c getopt.h alloca.c
  97. # Object files for diff only.
  98. objs=$(archpfx)diff.o $(archpfx)analyze.o $(archpfx)io.o $(archpfx)context.o \
  99.      $(archpfx)ed.o $(archpfx)normal.o $(archpfx)util.o $(archpfx)dir.o \
  100.      $(archpfx)regex.o $(archpfx)ifdef.o $(archpfx)version.o \
  101.      $(archpfx)getopt.o $(archpfx)getopt1.o $(ALLOCA) $(archpfx)popen.o
  102. tapefiles = $(srcs) README diagmeet.note Makefile COPYING ChangeLog
  103.  
  104. .ONERROR:
  105.     say "Error!"
  106.  
  107. all: $(archpfx)diff $(archpfx)diff3
  108.     say "All Done!"
  109.  
  110. objs3=$(archpfx)diff3.o $(archpfx) $(archpfx)getopt.o $(archpfx)getopt1.o\
  111.       $(ALLOCA) $(archpfx)popen.o
  112. $(archpfx)diff3: $(objs3)
  113.     $(CC) $(CFLAGS) LINK PNAME $(archpfx)diff3 $(LDFLAGS) $(objs3) $(LIBS)
  114.  
  115. $(archpfx)diff: $(objs)
  116.     $(CC) $(CFLAGS) LINK PNAME $(archpfx)diff $(LDFLAGS) $(objs) $(LIBS)
  117.  
  118. $(archpfx)regex.o: regex.c diff.h
  119.     $(CC) $(CFLAGS) $*
  120.  
  121. $(objs): diff.h
  122.  
  123. $(archpfx)context.o $(archpfx)diff.o: regex.h
  124.  
  125. $(archpfx)diff3.o: diff3.c
  126.     $(CC) $(CFLAGS) "DEFINE=DIFF_PROGRAM=*"$(bindir)diff*"" diff3.c \
  127.  $(OUTPUT_OPTION)
  128.  
  129. clean:
  130.     -DELETE FORCE \#?.o \#?.lnk $(archpfx)diff $(archpfx)diff3 diff.tar diff.tar.Z
  131.  
  132. install: install-diff install-diff3
  133.  
  134. install-diff: $(prefix)$(bindir)diff
  135.  
  136. $(prefix)$(bindir)diff: $(archpfx)diff
  137.     $(INSTALL) $(archpfx)diff $(prefix)$(bindir)diff
  138.  
  139. install-diff3: $(prefix)$(bindir)diff3
  140.  
  141. $(prefix)$(bindir)diff3: $(archpfx)diff3
  142.     $(INSTALL) $(archpfx)diff3 $(prefix)$(bindir)diff3
  143.  
  144. diff.tar: $(tapefiles)
  145.     mkdir tmp
  146.     mkdir tmp/diff
  147.     -ln $(tapefiles) tmp/diff
  148.     for file in $(tapefiles); do \
  149.         if [ ! -r tmp/diff/$$file ]; then cp $$file tmp/diff; fi \
  150.     done
  151.     cd tmp; tar cf ../diff.tar diff
  152.     rm -rf tmp
  153.  
  154. diff.tar.Z: diff.tar
  155.     compress < diff.tar > diff.tar.Z
  156.  
  157. alloca.o: alloca.c
  158. analyze.o: analyze.c
  159. context.o: context.c
  160. diff3.o: diff3.c
  161. ed.o: ed.c
  162. getopt.o: getopt.c
  163. getopt1.o: getopt1.c
  164. ifdef.o: ifdef.c
  165. io.o: io.c
  166. normal.o: normal.c
  167. regex.o: regex.c
  168. util.o: util.c
  169. diff.o: diff.c
  170. dir.o: dir.c
  171. popen.o: popen.c
  172. version.o: version.c
  173.  
  174. @
  175.  
  176.  
  177. 1.2
  178. log
  179. @prefix is now RCS: to make installation easier.
  180. @
  181. text
  182. @d120 18
  183. @
  184.  
  185.  
  186. 1.1
  187. log
  188. @Initial revision
  189. @
  190. text
  191. @d55 1
  192. a55 1
  193. prefix=T:
  194. @
  195.