home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / forth / pfe-0.000 / pfe-0 / pfe-0.9.13 / src / config / WATCOM / options.mk < prev    next >
Encoding:
Text File  |  1995-05-08  |  2.8 KB  |  88 lines

  1. #
  2. # WATCOM/options.mk -    Part of Makefile for PFE, compiler options
  3. #            for WATCOM-C on OS/2, DOS or Windows/NT.
  4. #
  5. # - please set the variable TARGET according to the system you want
  6. #   to build for.
  7. #
  8. # - the Makefile works with dmake in OS/2
  9. #   (dmake - Copyright (c) 1990,1991 by Dennis Vadura, Version 3.80, PL 0),
  10. #   and the way I configured it (default) dmake uses COMSPEC as command line
  11. #   interpreter which in my case (default) is CMD.EXE.
  12. #   If you use gnu-make and/or a unix-like shell as command line interpreter,
  13. #   be prepared to get errors. One possible cause is the neccessary quoting
  14. #   of a possible `\' in $(PREFIX). I must leave it up to you to get it right.
  15. #
  16. # - when you build under DOS, be warned that the command line for the
  17. #   final link step is too long. In target pfe$e replace $(OBJECTS) by *.OBJ.
  18. #
  19.  
  20. # Targets -- I tried these:
  21.  
  22. #TARGET    = OS2V2        # 32 bit OS/2 text mode executable
  23.             # Can anybody tell me how to get a descent behaviour
  24.             # from Ctl-C or Ctl-Break?
  25.  
  26. #TARGET    = DOS4G        # 32 bit DOS executable, uses Rational 4GW extender
  27.  
  28. #TARGET = WIN386    # 32 bit Windows executable
  29.             #   to use this define /bt=WINDOWS and /l=WIN386
  30.             #   link like this:
  31.             #     $(CL) $(LDFLAGS) /fe=pfe $(OBJECTS) ...
  32.             #     wbind pfe -n -s d:\watcom\binw\win386.ext
  33.             # i.e. allow wcl to build a pfe.rex and bind this
  34.             # with the Watcom windows extender giving pfe.exe.
  35.             # It compiles and runs but not reasonable.
  36.             # This is just a feasibility study yet.
  37.  
  38. # I didn't try these but expect them to work:
  39. #TARGET    = ERGO        # 32 bit Ergo DOS extender executables
  40. #TARGET    = PHARLAP    # 32 bit Pharlap DOS extender executables
  41.  
  42. # These will probably need some changes in term-wat.c:
  43. #TARGET = NT        # 32 bit NT character mode executable
  44. #TARGET = QNX386    # 32 bit QNX executable
  45.  
  46. # There are more possible targets mentioned in the Watcom manual but
  47. # I haven't heard of them before so I can't tell anything about them.
  48.  
  49. # Where you store online help files and other stuff.
  50. PREFIX    = "C:"        # define a C-string, path delimiter \\ inside ""
  51. PFELIB    = "C:\\lib\\pfe"
  52. PFEHLP    = "C:\\lib\\pfe\\help"
  53.  
  54.  
  55. SYSTEM    = WATCOM
  56. CC    = wcc386
  57. CL    = wcl386
  58. CPP    = wcl386 /p
  59. LD    = $(CL)
  60.  
  61. # /bt=    target OS for wcc386
  62. # /w4    highest possible warning level
  63. # /zq    supress signon messages
  64. # /zc    place const objects and strings in the code segment
  65. # /d    define target as preprocessor symbol
  66. OPTIONS    = /bt=$(TARGET) /w4 /zq /zc /dWC_$(TARGET)
  67.  
  68. # Recommended in the Watcom manual for best speed:
  69. # /omaxnet
  70. # /5r    optimize for Pentium and use registers for parameter passing
  71. # /zp4    align data on 4 byte boundaries
  72. OPTIM    = /omaxnet /5r /zp4
  73.  
  74. DEBUG    = /d2
  75.  
  76. # /l=    target OS for wcl386
  77. # /x    make names case sensitive (maybe useless, seems not to hurt)
  78. LFLAGS    = /l=$(TARGET) /x
  79.  
  80. STRIP    = 
  81.  
  82. LIBS    = 
  83.  
  84. TERM_O    = term-wat$o
  85. SYS_O    = unix$o
  86.  
  87.  
  88.