home *** CD-ROM | disk | FTP | other *** search
/ Mega CD-ROM 1 / megacd_rom_1.zip / megacd_rom_1 / POSTSCRI / PSFIX.ZIP / PSFIX.MAK < prev    next >
Text File  |  1991-04-11  |  3KB  |  137 lines

  1. #------------------------------------------------------------------------------
  2. #
  3. # make file for psfix
  4. #
  5. #------------------------------------------------------------------------------
  6. #
  7. # command line options:
  8. #
  9. #    -DD        debug
  10. #    -DX        generate cross reference
  11. #
  12. #------------------------------------------------------------------------------
  13. #
  14. # BC++ floating point: 
  15. #    -f-        none
  16. #    -f        emulate
  17. #    -f87    use 8087 instructions
  18. #    -f287    use 80287 instructions
  19. #    -ff        "fast" floating point
  20. #    -ff-    strict ANSI floating point
  21. #
  22. #------------------------------------------------------------------------------
  23. #
  24. # BC++ compiler debugging:
  25. #    -k        standard stack frame
  26. #    -N        stack overflow checking
  27. #    -O-        turn off optimization
  28. #    -v        turn on source debugging
  29. #    -vi-    turn off inline expansion
  30. #    -y        include line number info
  31. #
  32. #------------------------------------------------------------------------------
  33.  
  34. .swap
  35. .autodepend
  36.  
  37. #------------------------------------------------------------------------------
  38. #
  39. # project definitions
  40. #
  41. #------------------------------------------------------------------------------
  42.  
  43. PROJ   = psfix
  44. OBJLIS = psfix.obj strlib.obj fileio.obj vectdef.obj
  45. EXE    = psfix.exe
  46. MEM    = s
  47. FLOAT  = -f-
  48. DEFS   = -DNO_FLOAT
  49.  
  50.  
  51. #------------------------------------------------------------------------------
  52. #
  53. # other definitions
  54. #
  55. #------------------------------------------------------------------------------
  56.  
  57. #
  58. # compiling
  59. #
  60. COM     = bccx
  61. CFLGS   = -H=$(PROJ).sym -m$(MEM) $(FLOAT) $(DEFS)
  62. CDEBUG  = -k -N -O- -v -vi- -y -DDEBUG
  63.  
  64. #
  65. # linking
  66. #
  67. LNK     = tlinkx
  68. LFLGS   = /c /d /x
  69. LDEBUG  = /v
  70. STARTUP = lib\c0$(MEM).obj
  71. RUNTIME = lib\c$(MEM).lib
  72.  
  73. #
  74. # cross referencer
  75. #
  76. XREF  = objxref
  77. XFLGS = /rm /ru /rp /rx /o$(PROJ).xrf
  78.  
  79. #
  80. # misc
  81. #
  82. DELETE  = rm
  83.  
  84. #
  85. # cross reference generation
  86. #
  87. !if $d(X)
  88. XRF = $(XREF) $(XFLGS) $(OBJLIS)
  89. !endif
  90.  
  91. #------------------------------------------------------------------------------
  92. #
  93. # link
  94. #
  95. #------------------------------------------------------------------------------
  96. !if $d(D)
  97. !if $d(X)
  98. $(EXE) : $(OBJLIS)
  99.     $(LNK) $(LFLGS) $(LDEBUG) $(STARTUP) $(OBJLIS), $(EXE),,$(RUNTIME)
  100.     $(XRF)
  101. !else
  102. $(EXE) : $(OBJLIS)
  103.     $(LNK) $(LFLGS) $(LDEBUG) $(STARTUP) $(OBJLIS), $(EXE),,$(RUNTIME)
  104. !endif
  105. !else
  106. !if $d(X)
  107. $(EXE) : $(OBJLIS)
  108.     $(LNK) $(LFLGS) $(STARTUP) $(OBJLIS), $(EXE),,$(RUNTIME)
  109.     $(XRF)
  110. !else
  111. $(EXE) : $(OBJLIS)
  112.     $(LNK) $(LFLGS) $(STARTUP) $(OBJLIS), $(EXE),,$(RUNTIME)
  113. !endif
  114. !endif
  115.  
  116. #------------------------------------------------------------------------------
  117. #
  118. # implicit compilation rule
  119. #
  120. #------------------------------------------------------------------------------
  121. !if $d(D)
  122. .c.obj :
  123.     $(COM) $(CFLGS) $(CDEBUG) -c{ $<}
  124. !else
  125. .c.obj :
  126.     $(COM) $(CFLGS) -c{ $<}
  127. !endif
  128.  
  129. #
  130. # .obj dependencies
  131. #
  132. psfix.obj   : psfix.c psfix.h strlib.h vectdef.h fileio.h
  133. strlib.obj  : strlib.c strlib.h vectdef.h mydefs.h
  134. fileio.obj  : fileio.c fileio.h strlib.h vectdef.h mydefs.h
  135. vectdef.obj : vectdef.c vectdef.h mydefs.h
  136.  
  137.