home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 380.lha / post_v1.1 / source / makefile < prev    next >
Makefile  |  1990-06-10  |  3KB  |  99 lines

  1. # PostScript interpreter make file (Amiga)
  2. # This version assumes Lattice make (lmk), C (lc), asm, blink
  3.  
  4. # Debug symbols
  5.  
  6. #LCDBG  = -d0 -O        # no debug,            optimise
  7. LCDBG   = -d2 -O        # full debugging info, optimise
  8. #LCDBG  = -d3           # full debugging info, flush regs
  9.  
  10. # Cpu type
  11.  
  12. LCCPU   = -m0           # 68000 (or 68010/020/030)
  13. #LCCPU  = -m2           # 68020 (or 68030)
  14.  
  15. # Floating point (must match LIBFPT)
  16.  
  17. LCFPT   = -fl           # Lattice IEEE library
  18. #LCFPT  = -fi           # Amiga IEEE library
  19. #LCFPT  = -f8 -dM68881  # 68881 (or 68882)
  20.  
  21. # Floating point library (must match LCFPT)
  22.  
  23. LIBFPT  = lib:lcm.lib      # Lattice IEEE library
  24. #LIBFPT = lib:lcmieee.lib  # Amiga IEEE library
  25. #LIBFPT = lib:lcm881.lib   # 68881 (or 68882)
  26.  
  27. #
  28.  
  29. LIBOBJ = postinit.o postdata.o postchar.o postgraph.o postshade.o postdraw.o postint.o postop1.o postop2.o postop3.o postop4.o
  30.  
  31. # Default target
  32.  
  33. all:            post postband post.library
  34.  
  35. # Main program
  36.  
  37. post:           post.o postasm.o
  38.     blink from lib:c.o post.o postasm.o to post lib lib:lc.lib smalldata  nodebug
  39.  
  40. # Band printing driver
  41.  
  42. postband:       postband.o postasm.o
  43.     blink from lib:c.o postband.o postasm.o to postband lib lib:lc.lib smalldata nodebug
  44.  
  45. # Shared library
  46.  
  47. post.library:    postlib.o $(LIBOBJ)
  48.     blink from postlib.o $(LIBOBJ) to post.library lib $(LIBFPT) lib:lc.lib smalldata nodebug
  49.  
  50. # Statically linked version for debugging
  51.  
  52. poststat:       poststat.o postasm.o $(LIBOBJ)
  53.     blink from lib:c.o poststat.o postasm.o $(LIBOBJ) to poststat lib $(LIBFPT) lib:lc.lib smalldata addsym
  54.   
  55. # The assembler routines contain FPU instructions
  56.  
  57. postasm.o:      postasm.a
  58.         asm -u -m2 -iinclude: postasm.a
  59.  
  60. # The library structure
  61.  
  62. postlib.o:      postlib.a
  63.         asm -u -iinclude: postlib.a
  64.  
  65. # We can't use stack checking for post, as it contains a subtask, nor can we use it for the library
  66.  
  67. # The main program is compiled without stack checking as it contains a
  68. # subtask, standard 68000 version only.
  69.  
  70. post.o:         post.c      postlib.h
  71.         lc -v $(LCDBG) post.c
  72.  
  73. poststat.o:     post.c      postlib.h
  74.         lc -v $(LCDBG) -dSTATICLINK -opoststat.o post.c
  75.  
  76. # The band printing driver, standard 6800 version only
  77.  
  78. postband.o:     postband.c      postlib.h
  79.         lc $(LCDBG) postband.c
  80.  
  81.  
  82. # The library is compiled without stack checking, as it uses its caller's
  83. # stack, 68000 and 68020/68881 versions.
  84.  
  85. .c.o:
  86.         lc -v $(LCDBG) $(LCCPU) $(LCFPT) $*.c
  87.  
  88. postinit.o:     postinit.c  postlib.h post.h
  89. postdata.o:     postdata.c  post.h
  90. postchar.o:     postchar.c  post.h
  91. postgraph.o:    postgraph.c post.h
  92. postshade.o:    postshade.c post.h
  93. postdraw.o:     postdraw.c  post.h
  94. postint.o:      postint.c   post.h
  95. postop1.o:      postop1.c   post.h
  96. postop2.o:      postop2.c   post.h
  97. postop3.o:      postop3.c   post.h
  98. postop4.o:      postop4.c   post.h
  99.