home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 400-499 / ff429.lzh / Dr / source / makefile < prev    next >
Makefile  |  1991-01-10  |  3KB  |  96 lines

  1.  
  2. # this makefile is for the PD make on fish 69, using Aztec C 5.0
  3.  
  4.  
  5. PRECOMP = -hi w:II16
  6. ## aztec 3.6 version: PRECOMP = -iw:II
  7.  
  8. LIB = -lc16
  9. ## aztec 3.6 version: LIB = -lc
  10.  
  11. V = -dSTUPID_DASHES
  12. #### to add the feature where it says "Tuesday" or "Yesterday", use
  13. #### V = -dWEEEEK -dSTUPID_DASHES
  14. #### to put directories on a black background, replace -dSTUPID_DASHES with
  15. #### -dBLACKGROUND.  To make directories boldface, use -dBOLDDIRS instead.
  16.  
  17. PRECOMP = -hi w:II16
  18. # Substitute whatever pathname you want to use for the file w:II16.  If you
  19. # don't want to make precompiled header files just use "PRECOMP =".  II16
  20. # can be precompiled from exec/exec.h, libraries/dosextens.h, and Paul.h,
  21. # and maybe stdio.h and strings.h, with 16 bit ints (-ps option in 5.0).
  22.  
  23. SDBCMD = -bs -s0f0n
  24. ## aztec 3.6 version: SDBCMD = -n
  25.  
  26. CCOPTS = -pe -wl -sabfmpu0n -wp
  27. CFLAGS = $(CCOPTS) -ps $(PRECOMP)
  28. ## aztec 3.6 version: CFLAGS = $(PRECOMP)
  29. #  (actually I normally set the CCOPTS environment var to "-pe -wl -sabfmpu0n".)
  30. #### we have to turn off -sn because of a compiler bug!
  31. C = $(CFLAGS)
  32. L = +q -m
  33. LYD = $(CCOPTS) -ps
  34. ## special flags for compiling somebody else's old code
  35.  
  36.  
  37. # this produces a version of Dr that SDB or DB can be used on:
  38.  
  39. ram\:dd : ddr.o dfastex.o pureio.o dpatmatch.o
  40.     ln $L -w -g -o ram:dd ddr.o dfastex.o dpatmatch.o pureio.o $(LIB)
  41.     @protect ram:dd +p
  42.     -@resident ram:dd
  43.     -@dr -l ram:dd\#?
  44.  
  45. # the last line above assumes you already have a working dr on line!  And it
  46. # also responds to the fact that this pd make considers # in the MIDDLE of a
  47. # line to be a start of comment unless preceded by a backslash.
  48.  
  49. ddr.o : dr.c
  50.     cc $C $(SDBCMD) -dDEBUG_IO -dprivate $V -o ddr.o dr
  51.  
  52. dfastex.o : fastex.c
  53.     cc $C $(SDBCMD) -o dfastex.o -dQUEST -dDEBUG_IO -dprivate fastex
  54.  
  55. # we do not use the usual CFLAGS (with PRECOMP in it) here:
  56.  
  57. dpatmatch.o : patmatch.c
  58.     cc $(LYD) $(SDBCMD) -o dpatmatch.o patmatch
  59.  
  60.  
  61. ############## This is the final version without debugging information:
  62.  
  63. d : ram:dr
  64.  
  65. ram\:dr : dr.o fastex.o patmatch.o pureio.o
  66.     ln $L -o ram:Dr dr.o fastex.o patmatch.o pureio.o $(LIB)
  67.     @protect ram:dr +p
  68.     -@c:dr ram:dr
  69.  
  70. dr.o : dr.c
  71.     cc $C $V dr
  72.  
  73. fastex.o : fastex.c
  74.     cc $C -dQUEST fastex
  75.  
  76. # we do not use the usual CFLAGS (with PRECOMP in it) here:
  77.  
  78. patmatch.o : patmatch.c
  79.     cc $(LYD) patmatch
  80.  
  81. # leak.o goes by the .c.o rule
  82.  
  83.  
  84.  
  85. ##############  This is for small Dr without fastexnext:
  86.  
  87. s : ram:dr-s
  88.  
  89. ram\:dr-s : sdr.o patmatch.o pureio.o
  90.     ln $L -o ram:Dr-S sdr.o patmatch.o pureio.o $(LIB)
  91.     @protect ram:dr-s +p
  92.     -@dr ram:dr-s
  93.  
  94. sdr.o : dr.c
  95.     cc $C $V -dSMALLSLOW -o sdr.o dr
  96.