home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / prog / c / post17s.lha / makefile < prev    next >
Makefile  |  1992-03-13  |  3KB  |  108 lines

  1. # PostScript interpreter make file (Amiga) - Post V1.6
  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. # Include debugging code
  11.  
  12.  LCDBC  =                  # no debugging code
  13. #LCDBC  = -dFONTDEBUG      # font debugging code
  14.  
  15. # Cpu type and floating point (do not mix and match!)
  16.  
  17.  LCCPU  = -m0              # 68000 (or 68010/020/030)
  18.  LCFPT  = -fl              # Lattice IEEE library
  19.  LIBFPT = lib:lcm.lib      # Lattice IEEE library
  20.  
  21. #LCCPU  = -m2              # 68020 (or 68030)
  22. #LCFPT  = -f8 -dM68881     # 68881 (or 68882)
  23. #LIBFPT = lib:lcm881.lib   # 68881 (or 68882)
  24.  
  25. #
  26.  
  27. LIBOBJ = postinit.o postdata.o postchar.o postfont.o postgraph.o postshade.o postdraw.o postint.o postop1.o postop2.o postop3.o postop4.o
  28.  
  29. # Default target
  30.  
  31. all:            post postband postlj post.library
  32.  
  33. # Main program
  34.  
  35. post:           post.o postasm.o
  36.     blink from lib:c.o post.o postasm.o to post lib lib:lc.lib smalldata nodebug
  37.  
  38. # Band printing driver
  39.  
  40. postband:       postband.o postasm.o
  41.     blink from lib:c.o postband.o postasm.o to postband lib lib:lc.lib smalldata nodebug
  42.  
  43. # LaserJet driver
  44.  
  45. postlj:       postlj.o postasm.o
  46.     blink from lib:c.o postlj.o postasm.o to postlj lib lib:lc.lib smalldata nodebug
  47.  
  48. # Shared library
  49.  
  50. post.library:    postlib.o $(LIBOBJ)
  51.     blink from postlib.o $(LIBOBJ) to post.library lib $(LIBFPT) lib:lc.lib smalldata nodebug
  52.     protect post.library rwd
  53.  
  54. # Statically linked version for debugging
  55.  
  56. poststat:       poststat.o postasm.o $(LIBOBJ)
  57.     blink from lib:c.o poststat.o postasm.o $(LIBOBJ) to poststat lib $(LIBFPT) lib:lc.lib smalldata addsym
  58.   
  59. # The assembler routines contain FPU instructions
  60.  
  61. postasm.o:      postasm.a
  62.         asm -u -m2 -iinclude: postasm.a
  63.  
  64. # The library structure
  65.  
  66. postlib.o:      postlib.a
  67.         asm -u -iinclude: postlib.a
  68.  
  69. # The main program is compiled without stack checking as it contains a
  70. # subtask, standard 68000 version only.
  71.  
  72. post.o:         post.c      postlib.h
  73.         lc -v $(LCDBG) post.c
  74.  
  75. poststat.o:     post.c      postlib.h
  76.         lc -v $(LCDBG) -dSTATICLINK -opoststat.o post.c
  77.  
  78. # The band printing driver, standard 6800 version only
  79.  
  80. postband.o:     postband.c  postlib.h
  81.         lc $(LCDBG) postband.c
  82.  
  83.  
  84. # The LaserJet driver, standard 6800 version only
  85.  
  86. postlj.o:       postlj.c    postlib.h
  87.         lc $(LCDBG) postlj.c
  88.  
  89.  
  90. # The library is compiled without stack checking, as it uses its caller's
  91. # stack; 68000 and 68020/68881 versions.
  92.  
  93. .c.o:
  94.         lc -v $(LCDBG) $(LCDBC) $(LCCPU) $(LCFPT) $*.c
  95.  
  96. postinit.o:     postinit.c  postlib.h post.h
  97. postdata.o:     postdata.c  post.h
  98. postchar.o:     postchar.c  post.h
  99. postfont.o:     postfont.c  post.h
  100. postgraph.o:    postgraph.c post.h
  101. postshade.o:    postshade.c post.h
  102. postdraw.o:     postdraw.c  post.h
  103. postint.o:      postint.c   post.h
  104. postop1.o:      postop1.c   post.h
  105. postop2.o:      postop2.c   post.h
  106. postop3.o:      postop3.c   post.h
  107. postop4.o:      postop4.c   post.h
  108.