home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 2 / LSD and 17bit Compendium Deluxe - Volume II.iso / a / prog / cprog / tdddconv.lha / Makefile.Amiga next >
Encoding:
Makefile  |  1991-11-22  |  2.4 KB  |  123 lines

  1. #########################################################################
  2. #
  3. # Makefile for Lattice C on the Amiga
  4. #
  5. # $Id: Makefile.Amiga,v 1.3 1991/10/30 08:35:24 glewis Exp glewis $
  6. #
  7. #########################################################################
  8.  
  9. #
  10. # Rules:
  11. #
  12. CC    = lc:lc
  13.  
  14. .c.o:
  15.     $(CC) $(CFLAGS) $*
  16.  
  17. .DEFAULT:
  18.  
  19. #
  20. # Lattice C compile options:
  21. #
  22. # -b0     : 32 bit addressing
  23. # -fi    : ieee math 
  24. # -f8    : Inline M68881 math
  25. # -m3   : Code optimized for 68030
  26. # -cw    : No warning for missing return in int functions
  27. #
  28. LCFLAGS = -cw -b0 -fi
  29.  
  30. # Other options:
  31. #
  32. # -d3    : Debug on 
  33. # -O    : Optimize
  34. #
  35. OPT = -d3
  36.  
  37. #
  38. # Machine specific defines:
  39. #
  40. MACH = -DAMIGA
  41.  
  42. #
  43. # Other defines:
  44. #
  45. DEFS =
  46.  
  47.  
  48. CFLAGS = $(LCFLAGS) $(OPT) $(MACH) $(DEFS)
  49.  
  50. #
  51. # Installation directory for binaries:
  52. #
  53.  
  54. OBJS=read.o write.o readtddd.o writeray.o writemif.o writeps.o \
  55.     writeoff.o writenff.o writevort.o sort.o
  56. LIB=ttddd.lib
  57.  
  58. all: test tddd2ray tddd2ps tddd2mif tddd2vort tddd2off tddd2nff
  59.  
  60.  
  61. $(LIB): $(OBJS)
  62.     oml $(LIB) r $(OBJS)
  63.  
  64. test: test.o $(LIB)
  65.     BLINK FROM lib:c.o test.o \
  66.           TO test \
  67.           LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
  68.  
  69. tddd2ray: tddd2ray.o $(LIB)
  70.     BLINK FROM lib:c.o tddd2ray.o \
  71.           TO tddd2ray \
  72.           LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
  73.  
  74. tddd2ps: tddd2ps.o $(LIB)
  75.     BLINK FROM lib:c.o tddd2ps.o \
  76.           TO tddd2ps \
  77.           LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
  78.  
  79. tddd2mif: tddd2mif.o $(LIB)
  80.     BLINK FROM lib:c.o tddd2mif.o \
  81.           TO tddd2mif \
  82.           LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
  83.  
  84. tddd2off: tddd2off.o $(LIB)
  85.     BLINK FROM lib:c.o tddd2off.o \
  86.           TO tddd2off \
  87.           LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
  88.  
  89. tddd2nff: tddd2nff.o $(LIB)
  90.     BLINK FROM lib:c.o tddd2nff.o \
  91.           TO tddd2nff \
  92.           LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
  93.  
  94. tddd2vort: tddd2vort.o $(LIB)
  95.     BLINK FROM lib:c.o tddd2vort.o \
  96.           TO tddd2vort \
  97.           LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
  98.  
  99.  
  100. # $(OBJS): ttdddlib.h
  101. # lmk doesn't understand the above rule, so we have to spell it out!
  102. read.o:        read.c ttdddlib.h
  103. write.o:    write.c ttdddlib.h
  104. readtddd.o:    readtddd.c ttdddlib.h
  105. writeray.o:    writeray.c ttdddlib.h
  106. writevort.o: writevort.c ttdddlib.h
  107. writeoff.o: writeoff.c ttdddlib.h
  108. writenff.o: writenff.c ttdddlib.h
  109. writeps.o:    writeps.c ttdddlib.h
  110. writemif.o:    writemif.c ttdddlib.h
  111. sort.o:        sort.c ttdddlib.h
  112.  
  113. clean:
  114.     delete #?.o
  115.     delete $(LIB)
  116.     delete test 
  117.     delete tddd2ray 
  118.     delete tddd2ps 
  119.     delete tddd2mif 
  120.     delete tddd2vort 
  121.  
  122.