home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff281.lzh / Diff / Makefile < prev    next >
Makefile  |  1989-11-20  |  2KB  |  129 lines

  1. #$Header$
  2. #
  3. #
  4. #
  5. #
  6. #
  7. .SILENT:
  8.  
  9. CC1=lc1
  10. CC2=go
  11. CC3=lc2
  12. C1FLAGS    = -j85i -d3
  13. C2FLAGS    =
  14. C3FLAGS    =
  15.  
  16. #.c.o:
  17. #    $(CC1) -. $(C1FLAGS) $(CFLAGS) -oQUAD: $*
  18. #    $(CC2) -. $(C2FLAGS) QUAD:$*.q
  19. #    $(CC3) -. $(C3FLAGS) -o$*.o QUAD:$*.q
  20. #
  21. .c.o:
  22.     $(CC1) -. $(C1FLAGS) $(CFLAGS) -oQUAD: $*
  23.     $(CC3) -. $(C3FLAGS) -o$*.o QUAD:$*.q
  24. #
  25. #
  26.  
  27. RCSDIR    = RCS:
  28.  
  29. DIFF    = ${RCSDIR}diff
  30. DIFF3    = ${RCSDIR}diff3
  31. ED    = ${RCSDIR}ked
  32.  
  33. OS    = -dAMIGA
  34. ARGS    = -dSTDARGS
  35.  
  36. SIGNAL_TYPE = void
  37.  
  38. LOCKING    = 1
  39.  
  40. LDFLAGS    = quiet batch nodebug
  41. LDLIBS    = LIB:rsbx.lib LIB:lc.lib LIB:amiga.lib
  42.  
  43. DEFINES    = $(OS) $(ARGS) -dSIGNAL_TYPE=$(SIGNAL_TYPE) -dSTRICT_LOCKING=$(LOCKING) -dED="$(ED)" -dDIFF="$(DIFF)" -dDIFF3="$(DIFF3)" -dCO="${RCSDIR}co" -dMERGE="${RCSDIR}merge"
  44. CFLAGS    = $(DEFINES)
  45.  
  46. TARGETS = diff diff3
  47.  
  48.  
  49.  
  50.  
  51. all:    $(TARGETS)
  52.  
  53.  
  54. install:
  55.     copy diff  to RCS:
  56.     copy diff3 to RCS:
  57.  
  58.  
  59. clean:
  60.     -delete \#?.o
  61.     -delete $(TARGETS)
  62.     -delete \#?.tmp
  63.  
  64.  
  65. DIFFOBJ    = analyze.o context.o diff.o ed.o io.o normal.o regex.o util.o getopt.o dir.o ndir.o amiga1.o
  66. DIFFSRC = analyze.c context.c diff.c ed.c io.c normal.c regex.c util.c getopt.c dir.c ndir.c amiga1.c
  67. diff:    $(DIFFOBJ) $(LDLIBS)
  68.     -delete $@
  69.     ${LD} $(LDFLAGS) TO $@.tmp FROM LIB:xc.o $(DIFFOBJ) LIB $(LDLIBS)
  70.     rename $@.tmp $@
  71.  
  72.  
  73. DIFF3OBJ = diff3.o getopt.o
  74. DIFF3SRC = diff3.c getopt.c
  75. diff3:    $(DIFF3OBJ) $(LDLIBS)
  76.     -delete $@
  77.     ${LD} $(LDFLAGS) TO $@.tmp FROM LIB:xc.o $(DIFF3OBJ) LIB $(LDLIBS)
  78.     rename $@.tmp $@
  79.  
  80.  
  81. SOURCE=    analyze.c context.c diff.c diff3.c dir.c ed.c getopt.c io.c ndir.c normal.c regex.c util.c \
  82.     amiga1.c
  83.  
  84.  
  85. HFILES=    diff.h dir.h limits.h regex.h stat.h
  86.  
  87. depend:    ${SOURCE} ${HFILES}
  88.     (sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \
  89.      cc -Em ${CFLAGS} ${SOURCE} | sed 's/\.\///; /\//d' \
  90.     ) >Makefile.new
  91.     cp Makefile Makefile.bak
  92.     cp Makefile.new Makefile
  93.     rm -f Makefile.new
  94.  
  95.  
  96. # DO NOT DELETE THIS LINE - 
  97. analyze.o: analyze.c
  98. analyze.o: regex.h
  99. analyze.o: diff.h
  100. context.o: context.c
  101. context.o: diff.h
  102. context.o: regex.h
  103. diff.o: diff.c
  104. diff.o: regex.h
  105. diff.o: diff.h
  106. diff3.o: diff3.c
  107. dir.o: dir.c
  108. dir.o: diff.h
  109. dir.o: regex.h
  110. ed.o: ed.c
  111. ed.o: diff.h
  112. ed.o: regex.h
  113. getopt.o: getopt.c
  114. io.o: io.c
  115. io.o: diff.h
  116. io.o: regex.h
  117. ndir.o: ndir.c
  118. ndir.o: dir.h
  119. normal.o: normal.c
  120. normal.o: diff.h
  121. normal.o: regex.h
  122. regex.o: regex.c
  123. regex.o: regex.h
  124. util.o: util.c
  125. util.o: diff.h
  126. util.o: regex.h
  127. amiga1.o: amiga1.c
  128. amiga1.o: stat.h
  129.