home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / vxtech01.zip / ezrxfunc / watcom / watcinit.mif < prev   
Text File  |  1993-07-28  |  3KB  |  132 lines

  1. #
  2. # watcinit.mif -- makeinit file for OS/2....
  3. #
  4. #   Threadedness
  5. #   ------------
  6. #   MAKEDLL     - Sets compiler options for making (multithreaded) DLLs
  7. #   MAKEMT      - Sets compiler options for making multithreaded EXEs
  8. #   (default)   - Options for single threaded EXEs
  9. #
  10. #   Source paths (each path must end in '\').
  11. #   -----------------------------------------
  12. #   asm     local .asm files
  13. #   c       local .c files
  14. #   h       local .h files
  15. #
  16. #   Include/library paths
  17. #   ----------------------------------------------------------------
  18. #   hdirs   Include directories (e.g. a;b;c )
  19. #   ldirs   Lib directories (e.g. a;b;c )
  20. #   pdirs   Path directories (e.g. a;b;c )
  21. #
  22. #   Misc.
  23. #   --------------
  24. #   libs    (Library list for default line command)
  25. #   model   (WATCOM C model letter)
  26. #   ui      (DOS, WIN)
  27. #   ver     (dbg, prod)
  28. #
  29. #   Assume the following env. vars are defined.
  30. #   ===========================================
  31. #   (Env. vars are used for items that change from machine to machine).
  32. #
  33. #   watcincs    ==> Path for watcomc include files.
  34. #   watcldos    ==> Path for watcomc library files (DOS).
  35. #   watclwin    ==> Path for watcomc library files (WIN).
  36.  
  37. #.OPTIMIZE
  38.  
  39. os = OS_OS2
  40. ui = PM
  41.  
  42. #
  43. #   Debug
  44. #
  45. #   lopt_dbg used both in .exe and .dll links
  46. #
  47. msg_dbg   = *** Debug Version (os = $(os), ui = $(ui)) ***
  48. copt_dbg  = /dDEBUG/d2
  49. copt1_dbg = /dDEBUG/d1/od
  50.  
  51. stksize_dbg = 32768
  52. lopt_dbg    = d a
  53. lopt1_dbg   = d li
  54.  
  55. #
  56. #   Production
  57. #
  58. #   lopt_prod used both in .exe and .dll links
  59. #
  60. msg_prod   = *** Production Version (os = $(os), ui = $(ui)) ***
  61. copt_prod  = /d1/oailsr/s/dNDEBUG
  62. copt1_prod = $(copt_prod)
  63.  
  64. stksize_prod = 32768
  65. lopt_prod    =
  66. lopt1_prod   =
  67.  
  68. #
  69. #   General
  70. #
  71. msg   = $(msg_$(ver))
  72. copt  = /zq/m$(model)/w99/e10/4r$(copt_$(ver))/zp4/zc
  73. copt1 = /zq/m$(model)/w99/e10/4r$(copt1_$(ver))/zp4/zc
  74.  
  75. # linker options
  76. stksize = $(stksize_$(ver))
  77. lopt    = op m,q,st=$(stksize) n $^& $(lopt_$(ver))
  78. lopt1   = op m,q,st=$(stksize) n $^& $(lopt1_$(ver))
  79.  
  80. !ifdef MAKEDLL
  81. copt  = $+$(copt)$-/bd/dDLL/dMULTI_THREAD/s
  82. copt1 = $+$(copt1)$-/bd/dDLL/dMULTI_THREAD/s
  83. !else
  84. copt  = $+$(copt)$-/bm/dMULTI_THREAD
  85. copt1 = $+$(copt1)$-/bm/dMULTI_THREAD
  86. !endif
  87.  
  88. #
  89. #   Command macros
  90. #
  91. #   - Use cc1 for /d1
  92. #   - $(link) is default
  93. #
  94. compiler = wcc386
  95.  
  96. cc    = $(compiler) $[* $(copt)
  97. cc1   = $(compiler) $[* $(copt1)
  98. link  = wlink $(lopt) f $^* l $(libs)
  99. link1 = wlink $(lopt1) f $^* l $(libs)
  100.  
  101. #
  102. #   Libraries & objs
  103. #
  104. #   (None defined)
  105.  
  106. #
  107. #   Extension rules
  108. #
  109.  
  110. .extensions:
  111. .extensions: .exe .lib .obj .asm .c .h .sqc
  112.  
  113. .h:     $(h)
  114. .c:     $(c)
  115.  
  116. .h.obj:
  117.     @%null
  118.  
  119. .c.obj:
  120.     $(cc)
  121.  
  122. #
  123. #   Paths
  124. #
  125.  
  126. .before
  127.     @echo $(msg)
  128.     @set include=$(h);$(hdirs);$(%watcincs)
  129.     @set lib=$(ldirs);$(%watclos2)
  130.     @set path=$(pdirs);$(%watcbins)
  131.  
  132.