rem  System abbreviations used here are five characters 'smpth' where
rem  's' is the system
rem	a Autocad ADS
rem	d DOS
rem	o OS/2
rem	l Netware NLM
rem	n Windows NT
rem     q QNX
rem	w Windows 3.x
rem  'm' modifies the system specified in 's'
rem	ad AutoCad device interface
rem	ae AutoCad executable
rem	af AutoCad floating-point device interface
rem	dc DOS .com file
rem	df Flashtek, register based calling conventions
rem	ds Flashtek, stack based calling conventions
rem	dp Pharlap
rem	dr Rational DOS 4G
rem	dt Pharlap tnt
rem	nc Windows NT character mode executable
rem	nm MFC 3.0 static linkage
rem 	na MFC 3.0 DLL linkage
rem	no MFC 3.0 Unicode DLL linkage
rem	np Windows NT PowerBuilder DLL
rem 	nu MFC 3.0 Unicode static linkage
rem	nw Windows NT windowed executable
rem     oc OS/2 PM Compatible
rem	op OS/2 PM
rem	of OS/2 Full screen
rem	ov OS/2 Virtual device
rem	wm Windows 3.x MFC 2.5 application, static linkage
rem	wa Windows 3.x MFC 2.5 application, DLL linkage 
rem	wp Windows 3.x PowerBuilder DLL
rem	ws Windows 3.x application (not Visual Programmer)
rem  'p' is the processor
rem	6 for 16 bit
rem	2 for 32 bit
rem	A for Alpha ( 32 bit )
rem  't' is the type of target
rem	e executable
rem	d dll
rem	s library
rem     h help file
rem 	i inf file
rem  'h' is the host system
rem	o OS/2 PM
rem	s Win-OS/2
rem	n Windows NT
rem	9 Windows 95
rem	w Windows 3.x
rem	j Japanese Windows 3.x on an IBM 
rem	8 Japanese Windows 3.x on a Nec98
rem	a Dec Alpha (Windows NT)


Version 4

Tool WMAKE "Make Utility"
  Family Make
    CSwitch 0, ?????, "", "wmake -f $(%_makefile)", ON
    CSwitch 0, ?????, "Make all targets", -a, OFF
    CSwitch 0, ?????, "Don't print header", -h, ON
    CSwitch 0, ?????, "Erase bad targets", -e, ON
    CSwitch 0, ?????, "Ignore bad targets", -i, OFF
    CSwitch 0, ?????, "Don't check for files made", -c, OFF
    CSwitch 0, ?????, "Don't use MAKEINIT file", -m, OFF
    CSwitch 0, ?????, "Use circular path", -o, OFF
    CSwitch 0, ?????, "Print info", -p, OFF
    CSwitch 0, ?????, "Ignore built-in defns", -r, OFF
    CSwitch 0, ?????, "Only touch files", -t, OFF
    CSwitch 0, ?????, "Do not erase files", -z, OFF
    CSwitch 1, ?????, "Echo progress of work", -d, OFF
    CSwitch 1, ?????, "Continue after an error", -k, OFF
    CSwitch 1, ?????, "Print without executing", -n, OFF
    CSwitch 1, ?????, "Query mode", -q, OFF
    CSwitch 1, ?????, "Silent mode", -s, OFF
    VSwitch 1, ?????, "Append output to log:", -l, =, ONE, OFF, "$*.lst"
    VSwitch 1, ?????, "Other options:",,, ONE, REQ, ""

Tool RUN "User Application"
  Family Application
rem make fullscreen an option where both windowed & fullscreen work
    CSwitch 0, oc?eo, "Fullscreen", "!Fullscreen", ON
    CSwitch 0, of?eo, "Fullscreen", "!Fullscreen", ON
    CSwitch 0, ov?eo, "Fullscreen", "!Fullscreen", ON
    CSwitch 0, d??eo, "Fullscreen", "!Fullscreen", ON
    CSwitch 0, dr2e?, "", $(%watcom)\binw\dos4gw, ON
rem Pharlap run386 must be in your path
    CSwitch 0, dp2e?, "", run386, ON
rem Pharlap TNT run386 must be in your path
    CSwitch 0, dt2e?, "", tnt, ON
    CSwitch 0, w?2eo, "", "!Fullscreen", ON
    CSwitch 0, ???eo, "",, ON
    CSwitch 0, ?????, "", $@, ON
    VSwitch 0, ?????, "Application parameters:",,, ONE, REQ, ""

Tool WDEBUG "Debugger"
  Family "Debugger (a)"
    CSwitch 0, n???o, "", "!Error Cannot debug a Windows NT target in OS/2$", ON
    CSwitch 0, w?2?o, "", "!Error Cannot debug a 32bit Windows 3.x program in OS/2$", ON
    CSwitch 0, df2e?, "", "!Error Cannot debug a FlashTek executable$", ON
    CSwitch 0, ds2e?, "", "!Error Cannot debug a FlashTek executable$", ON
    CSwitch 0, dr2e9, "", "!Error Cannot debug a DOS4GW executable under Win95$", ON
    CSwitch 0, dp2e9, "", "!Error Cannot debug a Pharlap executable under Win95$", ON
    CSwitch 0, dt2e9, "", "!Error Cannot debug a TNT executable under Win95$", ON
    CSwitch 0, w???9, "", $(%watcom)\binw\wdw, ON
    CSwitch 0, dr2en, "", "$(%watcom)\\binw\\vdmserv /once /tr=$(%watcom)\\binw\\rsi.trp $&\n", ON
    CSwitch 0, dp2en, "", "$(%watcom)\\binw\\vdmserv /once /tr=$(%watcom)\\binw\\pls.trp $&\n", ON
    CSwitch 0, dt2en, "", "$(%watcom)\\binw\\vdmserv /once /tr=$(%watcom)\\binw\\pls.trp $&\n", ON
    CSwitch 0, d?6en, "", "$(%watcom)\\binw\\vdmserv /once /tr=$(%watcom)\\binw\\std.trp $&\n", ON
    CSwitch 0, dr2eo, "", "$(%watcom)\\binw\\vdmserv /once /tr=$(%watcom)\\binw\\rsi.trp $&\n", ON
    CSwitch 0, dp2eo, "", "$(%watcom)\\binw\\vdmserv /once /tr=$(%watcom)\\binw\\pls.trp $&\n", ON
    CSwitch 0, dt2eo, "", "$(%watcom)\\binw\\vdmserv /once /tr=$(%watcom)\\binw\\pls.trp $&\n", ON
    CSwitch 0, d?6eo, "", "$(%watcom)\\binw\\vdmserv /once /tr=$(%watcom)\\binw\\std.trp $&\n", ON
    
	
    CSwitch 0, dr2ew, " Run", "$(%watcom)\\binw\\wd.pif", ON
    CSwitch 0, dp2ew, " Run", "$(%watcom)\\binw\\wd.pif", ON
    CSwitch 0, dt2ew, " Run", "$(%watcom)\\binw\\wd.pif", ON
    CSwitch 0, dr2ej, " Run", "$(%watcom)\\binw\\wdj.pif", ON
    CSwitch 0, dp2ej, " Run", "$(%watcom)\\binw\\wdj.pif", ON
    CSwitch 0, dt2ej, " Run", "$(%watcom)\\binw\\wdj.pif", ON
    CSwitch 0, dr2e8, " Run", "$(%watcom)\\n98bw\\wd.pif", ON
    CSwitch 0, dp2e8, " Run", "$(%watcom)\\n98bw\\wd.pif", ON
    CSwitch 0, dt2e8, " Run", "$(%watcom)\\n98bw\\wd.pif", ON
    
    CSwitch 0, d???o, " Run", $(%watcom)\binp\wd, ON
    CSwitch 0, d???n, " Run", $(%watcom)\binnt\wdw, ON
    CSwitch 0, d???a, " Run", $(%watcom)\axpnt\wdw, ON
    CSwitch 0, d???9, " Run", $(%watcom)\binw\wd, ON
    CSwitch 0, d???8, " Run", $(%watcom)\n98bw\wd, ON
    CSwitch 0, d???j, " Run", "$(%watcom)\\binw\\wdj.pif", ON
    CSwitch 0, d????, " Run", $(%watcom)\binw\wd, ON
    CSwitch 0, wp6d8, " Run", "!Fullscreen $(%watcom)\\n98bw\\wdc.exe", ON
    CSwitch 0, wp6d?, " Run", "!Fullscreen $(%watcom)\\binw\\wdc.exe", ON
    CSwitch 0, np2d?, " Run", "$(%watcom)\\binnt\\wdw /powerbuilder /tr=std;2", ON
    CSwitch 0, l???w, " Run", "$(%watcom)\\binw\\wdw", ON
    CSwitch 0, l???j, " Run", "$(%watcom)\\binw\\wdw", ON
    CSwitch 0, l???8, " Run", "$(%watcom)\\n98bw\\wdw", ON
    CSwitch 0, l????, " Run", wdw, ON
    CSwitch 0, a???w, " Run", "$(%watcom)\\binw\wdw", ON
    CSwitch 0, a???j, " Run", "$(%watcom)\\binw\wdw", ON
    CSwitch 0, a???8, " Run", "$(%watcom)\\n98bw\wdw", ON
    CSwitch 0, a????, " Run", wdw, ON
    VSwitch 0, wp6d?, "Configuration file:", /i, =, ONE, REQ, "pbwd.dbg"
    VSwitch 0, np2d?, "Configuration file:", /i, =, ONE, REQ, "pbwdnt.dbg"
    VSwitch 0, ?????, "Configuration file:", /i, =, ONE, REQ, ""
    VSwitch 0, wp6d?, "", /initcmd, =, ONE, REQ, "{pbstart.dbg $&}"
    VSwitch 1, ?????, "Lines of debugger screen:", /li, =, ONE, REQ, ""
    VSwitch 1, ?????, "Columns of debugger screen:", /co, =, ONE, REQ, ""
  Family "Debugger (b)"
    RGroup "Debugger Screen"
	RSwitch 0, d????, "Default Adapter", , ON
	RSwitch 0, d????, "Monochrome Adapter", /m, OFF
	RSwitch 0, d????, "Color Adapter", /c, OFF
	RSwitch 0, d????, "43 line EGA Adapter", /e, OFF
	RSwitch 0, d????, "50 line VGA Adapter", /v, OFF
    RGroup "Screen Protocol"
	RSwitch 0, d????, "Default protocol", , ON
	RSwitch 0, d????, "Page protocol", /p, OFF
	RSwitch 0, d????, "Swap protocol", /s, OFF
	RSwitch 0, d????, "Two protocol", /t, OFF
    RGroup "Debugger Screen"
	RSwitch 0, w????, "Default Adapter", , ON
	RSwitch 0, w????, "Monochrome Adapter", /m, OFF
	RSwitch 0, w????, "Color Adapter", /c, OFF
	RSwitch 0, w????, "43 line EGA Adapter", /e, OFF
	RSwitch 0, w????, "50 line VGA Adapter", /v, OFF
    RGroup "Screen Protocol"
	RSwitch 0, w????, "Default Adapter", , ON
	RSwitch 0, w????, "Overwrite protocol", /o, OFF
	RSwitch 0, w????, "Page protocol", /p, OFF
	RSwitch 0, w????, "Swap protocol", /s, OFF
	RSwitch 0, w????, "Fast-swap protocol", /f, OFF
	RSwitch 0, w????, "Two protocol", /t, OFF
    CSwitch 0, ?????, "Use symbol file", :$*.sym, OFF
    CSwitch 0, wp6d?, " Name", "$(%watcom)\\binw\\dlldbg.exe $@", ON
    CSwitch 0, np2d?, " Name",, ON
rem For remote debugging, don't put a full path name
    CSwitch 0, l????, " Name", $., ON
    CSwitch 0, a????, " Name", $., ON
    CSwitch 0, ?????, " Name", $@, ON
    CSwitch 0, dr2ew, "", "\n$(%watcom)\\binw\\wsrv.pif /tr=rsi /once\n", ON
    CSwitch 0, dp2ew, "", "\n$(%watcom)\\binw\\wsrv.pif /tr=pls /once\n", ON
    CSwitch 0, dt2ew, "", "\n$(%watcom)\\binw\\wsrv.pif /tr=pls /once\n", ON
    CSwitch 0, dr2ej, "", "\n$(%watcom)\\binw\\wsrv.pif /tr=rsi /once\n", ON
    CSwitch 0, dp2ej, "", "\n$(%watcom)\\binw\\wsrv.pif /tr=pls /once\n", ON
    CSwitch 0, dt2ej, "", "\n$(%watcom)\\binw\\wsrv.pif /tr=pls /once\n", ON
    CSwitch 0, dr2e8, "", "\n$(%watcom)\\binw\\wsrv.pif /tr=rsi /once\n", ON
    CSwitch 0, dp2e8, "", "\n$(%watcom)\\binw\\wsrv.pif /tr=pls /once\n", ON
    CSwitch 0, dt2e8, "", "\n$(%watcom)\\binw\\wsrv.pif /tr=pls /once\n", ON


Tool WDISASM "Disassembler"
  Family Disassembler
    CSwitch 0, ?????, "", "wdisasm $@", ON
    VSwitch 0, ?????, "Generate listing file:", -l, =, ONE, ON, "$*.lst"
    VSwitch 0, ?????, "Include source lines:", -s, =, ONE, ON, ""
    VSwitch 0, ?????, "Additional code segment:", -c, =, MULTI, REQ, ""
    VSwitch 0, ?????, "Initial character of internal labels:", -i, =, ONE, REQ, ""
    RGroup ".ASM format"
	RSwitch 1, ?????, "Default", , ON
	RSwitch 1, ?????, "Intel", -a, OFF
	RSwitch 1, ?????, "Unix", -au, OFF
    CSwitch 1, ?????, "Alternate form of based modes", -b, OFF
    CSwitch 1, ?????, "Generate list of externs", -e, OFF
    CSwitch 1, ?????, "Generate list of publics", -p, OFF
    CSwitch 1, ?????, "Registers in upper case", -r, OFF
    CSwitch 1, ?????, "Instructions in upper case", -u, OFF
    CSwitch 1, ?????, "Leave C++ names mangled", -m, OFF
  
Tool WCG "Code Generator"
  Family Optimization
    RGroup "Style of optimization"
	RSwitch 0, ?????, "No optimizations", -od, OFF
	RSwitch 0, ?????, "Average space and time", , OFF
	RSwitch 0, ?????, "Space optimizations", -os, OFF
	RSwitch 0, ?????, "Time optimizations", -ot, OFF
	RSwitch 0, ?????, "Fastest possible code", -otexan, ON
    CSwitch 1, ?????, "Loop optimizations", -ol, OFF
    CSwitch 1, ?????, "Loop unrolling", -ol+, OFF
    CSwitch 1, ?????, "Math optimizations", -om, OFF
    CSwitch 1, ?????, "Call/return optimizations", -oc, OFF
    CSwitch 1, ?????, "In-line intrinsic functions", -oi, OFF
    CSwitch 1, ?????, "Relax alias checking", -oa, OFF
    CSwitch 1, ?????, "Instruction scheduling", -or, OFF
    VSwitch 1, ?????, "Expand function in-line:", -oe,, ONE, OFF, "20"
  Family Debugging
    RGroup "Debugging style"
	RSwitch 0, ?????, "No debugging information", , OFF
	RSwitch 0, ?????, "Line number information", -d1, ON, OFF
	RSwitch 0, ?????, "Line# and auto symbol info", -d1+, OFF
	RSwitch 0, ?????, "Full debugging info", -d2, OFF, ON
	RSwitch 0, ?????, "Full info plus unused types", -d3, OFF
    RGroup "Debugging format"
	RSwitch 0, ?????, "Compiler default", , ON
	RSwitch 0, ?????, "WATCOM debugging format", -hw, OFF
  Family "CodeGen Strategy"
    CSwitch 0, n?2d?, "", -bd, ON
    CSwitch 0, n?ad?, "", -bd, ON
    CSwitch 0, o??d?, "", -bd, ON
    CSwitch 0, w??d?, "", -bd, ON
    RGroup "Floating-point Level"
	RSwitch 0, ?????, "Compiler default", , ON
	RSwitch 0, ?????, "In-line 80287 instructions", -fp2, OFF
	RSwitch 0, ?????, "In-line 80387 instructions", -fp3, OFF
	RSwitch 0, ?????, "In-line Pentium instructions", -fp5, OFF
    RGroup "Floating-point Model"
	RSwitch 1, a????, "Compiler default", , OFF
	RSwitch 1, ?????, "Compiler default", , ON
	RSwitch 1, ?????, "In-line with emulator", -fpi, OFF
	RSwitch 1, a????, "In-line with coprocessor", -fpi87, ON
	RSwitch 1, ?????, "In-line with coprocessor", -fpi87, OFF
	RSwitch 1, ?????, "Floating-point calls", -fpc, OFF
    CSwitch 1, a????, "Compability with V9.0", -fpr, ON
    CSwitch 1, ?????, "Compability with V9.0", -fpr, OFF
  Family "CodeGen Option"
  Family "Memory Model and Processor"
    RGroup "Target Processor"
	RSwitch 0, wm???, "8086", ,  OFF
	RSwitch 0, wa???, "8086", ,  OFF
	RSwitch 0, ??6??, "8086", ,  ON
	RSwitch 0, ??6??, "80186", -1, OFF
	RSwitch 0, wm???, "80286", -2, ON
	RSwitch 0, wa???, "80286", -2, ON
	RSwitch 0, ??6??, "80286", -2, OFF
	RSwitch 0, ??6??, "80386", -3, OFF
	RSwitch 0, ??6??, "80486", -4, OFF
	RSwitch 0, ??6??, "Pentium", -5, OFF
	RSwitch 0, ??2??, "80386 Register based calling", -3r, OFF
	RSwitch 0, a?2??, "80386 Stack based calling", -3s, ON
	RSwitch 0, ??2??, "80386 Stack based calling", -3s, OFF
	RSwitch 0, ??2??, "80486 Register based calling", -4r, OFF
	RSwitch 0, ??2??, "80486 Stack based calling", -4s, OFF
	RSwitch 0, a?2??, "Pentium Register based calling", -5r, OFF
	RSwitch 0, ds2??, "Pentium Register based calling", -5r, OFF
	RSwitch 0, ??2??, "Pentium Register based calling", -5r, ON
	RSwitch 0, ds2??, "Pentium Stack based calling", -5s, ON
	RSwitch 0, ??2??, "Pentium Stack based calling", -5s, OFF
    CSwitch 0, w????, "", -bt=windows, ON
    CSwitch 0, d????, "", -bt=dos, ON
    CSwitch 0, o????, "", -bt=os2, ON
    CSwitch 0, q????, "", -bt=qnx, ON
    CSwitch 0, n????, "", -bt=nt, ON
    CSwitch 0, l????, "", -bt=netware, ON
    CSwitch 0, a????, "", -bt=ads, ON
    CSwitch 1, n?2d?, "32bit Flat model", -mf, ON
    CSwitch 1, wp6d?, "", -ml, ON

Tool WLANG "Languages"
  IncludeTool WCG
  Family "File Option"
    VSwitch 0, w????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h;$(%watcom)\h\win
    VSwitch 0, d????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h
    VSwitch 0, o?6??, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h;$(%watcom)\h\os21x
    VSwitch 0, q????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\qnxh
    VSwitch 0, o?2??, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h;$(%watcom)\h\os2
    VSwitch 0, n????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h;$(%watcom)\h\nt
    VSwitch 0, a????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h
    VSwitch 0, l????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\novh
    VSwitch 0, ?????, "Include files:", -fi, =, MULTI, REQ, ""
    CSwitch 0, wp???, "Use precompiled headers", -fhq, ON
    CSwitch 0, wa???, "Use precompiled headers", -fhq, ON
    CSwitch 0, nm???, "Use precompiled headers", -fhq, ON
    CSwitch 0, na???, "Use precompiled headers", -fhq, ON
    CSwitch 0, nu???, "Use precompiled headers", -fhq, ON
    CSwitch 0, no???, "Use precompiled headers", -fhq, ON
    CSwitch 0, wm???, "Use precompiled headers", -fhq, ON
    CSwitch 0, ?????, "Use precompiled headers", -fh, OFF
  Family Diagnostics
    RGroup "Warning level"
	RSwitch 0, ?????, "Warning level 0", -w0, OFF
	RSwitch 0, ?????, "Warning level 1", -w1, OFF
	RSwitch 0, ?????, "Warning level 2", -w2, OFF
	RSwitch 0, wa???, "Warning level 3", -w3, ON
	RSwitch 0, wm???, "Warning level 3", -w3, ON
	RSwitch 0, nm???, "Warning level 3", -w3, ON
	RSwitch 0, na???, "Warning level 3", -w3, ON
	RSwitch 0, nu???, "Warning level 3", -w3, ON
	RSwitch 0, no???, "Warning level 3", -w3, ON
	RSwitch 0, ?????, "Warning level 3", -w3, OFF
	RSwitch 0, wm???, "Warning level 4", -w4, OFF
	RSwitch 0, wa???, "Warning level 4", -w4, OFF
	RSwitch 0, nm???, "Warning level 4", -w4, OFF
	RSwitch 0, na???, "Warning level 4", -w4, OFF
	RSwitch 0, no???, "Warning level 4", -w4, OFF
	RSwitch 0, nu???, "Warning level 4", -w4, OFF
	RSwitch 0, ?????, "Warning level 4", -w4, ON
    CSwitch 0, ?????, "Treat warnings as errors", -we, OFF
    VSwitch 0, ?????, "Error count:", -e,, ONE, REQ, "25"
    CSwitch 1, ?????, "Force ANSI compliance", -za, OFF
    CSwitch 1, ?????, "Disable stack depth checking", -s, OFF
    CSwitch 1, o?2??, "Automatic stack growing", -sg, OFF
    CSwitch 1, o?2??, "Touch stack through SS first", -st, OFF
  Family Source
    CSwitch 0, ?????, "Extended macro definitions", -d+, OFF
    VSwitch 0, ?????, "Undefine macros:", -u,, MULTI, REQ, ""
    VSwitch 0, nm?e?, "Macro definitions:", -d,, MULTI, REQ, "_WINDOWS", "_WINDOWS _DEBUG"
    VSwitch 0, nm?d?, "Macro definitions:", -d,, MULTI, REQ, "_WINDOWS _USRDLL _WINDLL", "_WINDOWS _USRDLL _WINDLL _DEBUG"
    VSwitch 0, na?e?, "Macro definitions:", -d,, MULTI, REQ, "_AFXDLL _WINDOWS", "_AFXDLL _WINDOWS _DEBUG"
    VSwitch 0, na?d?, "Macro definitions:", -d,, MULTI, REQ, "_AFXDLL _WINDLL _AFXEXT _WINDOWS", "_AFXDLL _WINDLL _AFXEXT _WINDOWS _DEBUG"
    VSwitch 0, no?e?, "Macro definitions:", -d,, MULTI, REQ, "_UNICODE _AFXDLL _WINDOWS", "_UNICODE _AFXDLL _WINDOWS _DEBUG"
    VSwitch 0, no?d?, "Macro definitions:", -d,, MULTI, REQ, "_UNICODE _AFXDLL _WINDLL _AFXEXT _WINDOWS", "_UNICODE _AFXDLL _WINDLL _AFXEXT _WINDOWS _DEBUG"
    VSwitch 0, nu?e?, "Macro definitions:", -d,, MULTI, REQ, "_UNICODE _WINDOWS", "_UNICODE _WINDOWS _DEBUG"
    VSwitch 0, nu?d?, "Macro definitions:", -d,, MULTI, REQ, "_UNICODE _USRDLL _WINDLL _WINDOWS", "_UNICODE _USRDLL _WINDLL _WINDOWS _DEBUG"
    VSwitch 0, wa?e?, "Macro definitions:", -d,, MULTI, REQ, "_AFXDLL", "_AFXDLL _DEBUG"
    VSwitch 0, wa?d?, "Macro definitions:", -d,, MULTI, REQ, "_AFXDLL _WINDLL", "_AFXDLL _WINDLL _DEBUG"
    VSwitch 0, wm6e?, "Macro definitions:", -d,, MULTI, REQ, "", "_DEBUG"
    VSwitch 0, wm6d?, "Macro definitions:", -d,, MULTI, REQ, "_USRDLL _WINDLL", "_WINDLL _USRDLL _DEBUG"
    VSwitch 0, ?????, "Macro definitions:", -d,, MULTI, REQ, ""
    CSwitch 0, ?????, "Change char default to signed", -j, OFF
    CSwitch 0, nm???, "Force enums to be type int", -ei, ON
    CSwitch 0, na???, "Force enums to be type int", -ei, ON
    CSwitch 0, no???, "Force enums to be type int", -ei, ON
    CSwitch 0, nu???, "Force enums to be type int", -ei, ON
    CSwitch 0, ?????, "Force enums to be type int", -ei, OFF
    RGroup "Structure alignment"
	RSwitch 1, nm???, "Pack structures", , OFF
	RSwitch 1, na???, "Pack structures", , OFF
	RSwitch 1, no???, "Pack structures", , OFF
	RSwitch 1, nu???, "Pack structures", , OFF
	RSwitch 1, ?????, "Pack structures", , ON
	RSwitch 1, ?????, "1 byte alignment", -zp1, OFF
	RSwitch 1, ?????, "2 byte alignment", -zp2, OFF
	RSwitch 1, nm???, "4 byte alignment", -zp4, ON
	RSwitch 1, na???, "4 byte alignment", -zp4, ON
	RSwitch 1, no???, "4 byte alignment", -zp4, ON
	RSwitch 1, nu???, "4 byte alignment", -zp4, ON
	RSwitch 1, ?????, "4 byte alignment", -zp4, OFF
	RSwitch 1, ?????, "8 byte alignment", -zp8, OFF
  Family Miscellaneous
rem CSwitch 0, ?????, "Ignore WCL386 environment variable", -y, OFF
    VSwitch 0, ?????, "Data Threshold:", -zt,, ONE, REQ, ""
    RGroup "Double byte characters"
	RSwitch 0, ?????, "No double-byte character support", , ON
	RSwitch 0, ?????, "Kanji", -zk0, OFF
	RSwitch 0, ?????, "Kanji (Unicode)", -zk0u, OFF
	RSwitch 0, ?????, "Chinese/Taiwanese", -zk1, OFF
	RSwitch 0, ?????, "Korean", -zk2, OFF
    VSwitch 1, ?????, "Unicode translate table:", -zku, =, ONE, REQ, ""
    CSwitch 1, ?????, "Quiet operation", -zq, ON
    CSwitch 1, ?????, "Stdcall Naming: No '@size'", -zz, OFF
    VSwitch 1, ?????, "Other options:",,, MULTI, REQ, ""

Tool CCOMP "C Compiler"
  Family "C Compiler"
    CSwitch 0, ?????, "Return char and short as int", -ri, OFF
    RGroup "Create definition file (.def)"
	RSwitch 0, ?????, "No definition file",  , ON
	RSwitch 0, ?????, "With typedef names", -v, OFF
	RSwitch 0, ?????, "With base type names", -zg, OFF

Tool CPPCOMP "C++ Compiler"
  Family "C++ Compiler"
    CSwitch 0, na???, "Enable exceptions", -xs, ON
    CSwitch 0, nm???, "Enable exceptions", -xs, ON
    CSwitch 0, no???, "Enable exceptions", -xs, ON
    CSwitch 0, nu???, "Enable exceptions", -xs, ON
    CSwitch 0, ?????, "Enable exceptions", -xs, OFF
    CSwitch 0, ?????, "Shorter error messages", -ew, OFF
    CSwitch 0, ?????, "Full warnings", -wx, OFF
    CSwitch 0, wm?e?, "Smart Windows Callbacks", -zws, ON
    CSwitch 0, wa?e?, "Smart Windows Callbacks", -zws, ON
    CSwitch 0, ??6??, "Smart Windows Callbacks", -zws, OFF
    CSwitch 0, na???, "OS specific exception handling", -zo, ON
    CSwitch 0, nm???, "OS specific exception handling", -zo, ON
    CSwitch 0, no???, "OS specific exception handling", -zo, ON
    CSwitch 0, nu???, "OS specific exception handling", -zo, ON
    CSwitch 0, o????, "OS specific exception handling", -zo, OFF
    CSwitch 0, n????, "OS specific exception handling", -zo, OFF
    RGroup "Exception handling"
	RSwitch 0, ?????, "Compiler default",  , ON
	RSwitch 0, ?????, "Normal exception handling", -xs, OFF
	RSwitch 0, ?????, "Direct calls for destruction", -xst, OFF
	RSwitch 0, ?????, "Table driven destructors", -xss, OFF

Tool WCC "C Compiler"
  IncludeTool WLANG
  IncludeTool CCOMP
  Family Compiler
    CSwitch 0, ??6??, "", "wcc $@", ON
    CSwitch 0, ??2??, "", "wcc386 $@", ON
    CSwitch 0, ??a??, "", "wccaxp $@", ON

Tool WPP "C++ Compiler"
  IncludeTool WLANG
  IncludeTool CPPCOMP
  Family Compiler
    CSwitch 0, ??6??, "", "wpp $@", ON
    CSwitch 0, ??2??, "", "wpp386 $@", ON
    CSwitch 0, ??a??, "", "wppaxp $@", ON

    
Tool WASM "Assembler"
  Family "File Option"
    CSwitch 0, ?????, "", "wasm $@", ON
    VSwitch 0, ?????, "Include file:", -fi, =, MULTI, REQ, ""
    VSwitch 0, w????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h;$(%watcom)\h\win
    VSwitch 0, d????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h
    VSwitch 0, o?6??, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h
    VSwitch 0, o?2??, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h;$(%toolkit)\c\os2h
    VSwitch 0, q????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h
    VSwitch 0, n????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h;$(%watcom)\h\nt
    VSwitch 0, l????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h
    VSwitch 0, a????, "Include directories:", -i, =, MULTI, REQ, $(%watcom)\h
    VSwitch 0, ?????, "Name error file:", -fe, =, ONE, REQ, ""
  Family "Memory Model and Processor"
    RGroup "Memory Model"
	RSwitch 0, ??6??, "Tiny model", -mt, OFF
	RSwitch 0, ??6??, "Small model", -ms, OFF
	RSwitch 0, ??6??, "Medium model", -mm, OFF
	RSwitch 0, ??6??, "Compact model", -mc, OFF
	RSwitch 0, ??6??, "Large model", -ml, ON
	RSwitch 0, ??6??, "Huge model", -mh, OFF
	RSwitch 0, ??2??, "32bit Flat model", -mf, ON
	RSwitch 0, ??2??, "32bit Small model", -ms, OFF
    RGroup "Target Processor"
        RSwitch 1, ?????, "Default", , OFF
	RSwitch 1, ??6??, "8086", ,  ON
	RSwitch 1, ??6??, "80186", -1, OFF
	RSwitch 1, ??6??, "80286", -2, OFF
	RSwitch 1, ??6??, "80386", -3, OFF
	RSwitch 1, ??6??, "80486", -4, OFF
	RSwitch 1, ??6??, "Pentium", -5, OFF
	RSwitch 1, ??2??, "80386 Register based calling", -3r, OFF
	RSwitch 1, ??2??, "80386 Stack based calling", -3s, OFF
	RSwitch 1, ??2??, "80486 Register based calling", -4r, OFF
	RSwitch 1, ??2??, "80486 Stack based calling", -4s, OFF
	RSwitch 0, ds2??, "Pentium Register based calling", -5r, OFF
	RSwitch 1, ??2??, "Pentium Register based calling", -5r, ON
	RSwitch 0, ds2??, "Pentium Stack based calling", -5s, ON
	RSwitch 1, ??2??, "Pentium Stack based calling", -5s, OFF
  Family "Code Generation Options"
    VSwitch 0, ?????, "Name Data Segment:", -nd,, ONE, REQ, ""
    VSwitch 0, ?????, "Name Text Segment:", -nt,, ONE, REQ, ""
    VSwitch 0, ?????, "Name of Module:", -nm,, ONE, REQ, ""
    RGroup "Floating-point Level"
	RSwitch 0, ?????, "Compiler default", , ON
	RSwitch 0, ?????, "In-line 8087 instructions", -fp0, OFF
	RSwitch 0, ?????, "In-line 80287 instructions", -fp2, OFF
	RSwitch 0, ?????, "In-line 80387 instructions", -fp3, OFF
	RSwitch 0, ?????, "In-line Pentium instructions", -fp5, OFF
    RGroup "Floating-point Model"
	RSwitch 0, ?????, "Compiler default", , ON
	RSwitch 0, ?????, "In-line with emulator", -fpi, OFF
	RSwitch 0, ?????, "In-line with coprocessor", -fpi87, OFF
	RSwitch 0, ?????, "Floating-point calls", -fpc, OFF
  Family Debugging
    RGroup "Debugging Style"
	RSwitch 0, ?????, "No debugging information", , ON
	RSwitch 0, ?????, "Line number information", -d1, OFF
  Family Diagnostics
    RGroup "Warning level"
	RSwitch 0, ?????, "Warning level 0", -w0, OFF
	RSwitch 0, ?????, "Warning level 1", -w1, OFF
	RSwitch 0, ?????, "Warning level 2", -w2, OFF
	RSwitch 0, ?????, "Warning level 3", -w3, OFF
	RSwitch 0, ?????, "Warning level 4", -w4, ON
    CSwitch 0, ?????, "Treat warnings as errors", -we, OFF
    VSwitch 0, ?????, "Error count:", -e,, ONE, REQ, "25"
  Family Miscellaneous
    CSwitch 0, ?????, "Stop reading at END", -e, OFF
    CSwitch 0, ?????, "Signed types for signed values", -j, OFF
    CSwitch 0, ?????, "Quiet operation", -zq, ON
    VSwitch 0, ?????, "Macro definitions:", -d,, MULTI, REQ, ""
    CSwitch 0, ?????, "No data in code records", -c, OFF
    VSwitch 0, ?????, "Other options:",,, MULTI, REQ, ""

Tool WLINK "Linker"
  Family Basic
    CSwitch  0, ?????, "", "wlink", ON
    RGroup "Debugging Information"
	RSwitch  0, ?????, "No debug information", , ON, OFF
	RSwitch  0, ?????, "Debug line numbers", "d lines", OFF
	RSwitch  0, ?????, "Debug types", "d types", OFF
	RSwitch  0, ?????, "Debug locals", "d locals", OFF
	RSwitch  0, ?????, "Debug All", "d all", OFF, ON
	RSwitch  0, ?????, "Debug Codeview", "d codeview op cvp", OFF
	RSwitch  0, ?????, "Debug Dwarf", "d dwarf", OFF
    VSwitch  0, w?6d?, "System:", SYS, " ", ONE, REQ, windows_dll
    VSwitch  0, w?6??, "System:", SYS, " ", ONE, REQ, windows
    VSwitch  0, d?6??, "System:", SYS, " ", ONE, REQ, dos
    VSwitch  0, q?6??, "System:", SYS, " ", ONE, REQ, qnx
    VSwitch  0, o?6??, "System:", SYS, " ", ONE, REQ, os2
    VSwitch  0, w?2??, "System:", SYS, " ", ONE, REQ, win386
    VSwitch  0, dr2??, "System:", SYS, " ", ONE, REQ, dos4g
    VSwitch  0, dp2??, "System:", SYS, " ", ONE, REQ, pharlap
    VSwitch  0, dt2??, "System:", SYS, " ", ONE, REQ, tnt
    VSwitch  0, q?2??, "System:", SYS, " ", ONE, REQ, qnx386
    VSwitch  0, o?2??, "System:", SYS, " ", ONE, REQ, os2v2
    CSwitch  0, op?e?, "", pm, ON
    CSwitch  0, of?e?, "", full, ON
    CSwitch  0, od6e?, "", phys, ON
    CSwitch  0, ov2e?, "", virt, ON
    VSwitch  0, nw2??, "System:", SYS, " ", ONE, REQ, nt_win
    VSwitch  0, na2e?, "System:", SYS, " ", ONE, REQ, nt_win
    VSwitch  0, nu2e?, "System:", SYS, " ", ONE, REQ, nt_win
    VSwitch  0, no2e?, "System:", SYS, " ", ONE, REQ, nt_win
    VSwitch  0, nm2e?, "System:", SYS, " ", ONE, REQ, nt_win
    VSwitch  0, nm2d?, "System:", SYS, " ", ONE, REQ, nt_dll
    VSwitch  0, na2d?, "System:", SYS, " ", ONE, REQ, nt_dll
    VSwitch  0, no2d?, "System:", SYS, " ", ONE, REQ, nt_dll
    VSwitch  0, nu2d?, "System:", SYS, " ", ONE, REQ, nt_dll
    VSwitch  0, np2d?, "System:", SYS, " ", ONE, REQ, nt_dll
    VSwitch  0, n_2d?, "System:", SYS, " ", ONE, REQ, nt_dll
    VSwitch  0, nc2??, "System:", SYS, " ", ONE, REQ, nt
    VSwitch  0, nwa??, "System:", SYS, " ", ONE, REQ, ntaxp_win
    VSwitch  0, naae?, "System:", SYS, " ", ONE, REQ, ntaxp_win
    VSwitch  0, nuae?, "System:", SYS, " ", ONE, REQ, ntaxp_win
    VSwitch  0, noae?, "System:", SYS, " ", ONE, REQ, ntaxp_win
    VSwitch  0, nmae?, "System:", SYS, " ", ONE, REQ, ntaxp_win
    VSwitch  0, nmad?, "System:", SYS, " ", ONE, REQ, ntaxp_dll
    VSwitch  0, naad?, "System:", SYS, " ", ONE, REQ, ntaxp_dll
    VSwitch  0, noad?, "System:", SYS, " ", ONE, REQ, ntaxp_dll
    VSwitch  0, nuad?, "System:", SYS, " ", ONE, REQ, ntaxp_dll
    VSwitch  0, npad?, "System:", SYS, " ", ONE, REQ, ntaxp_dll
    VSwitch  0, n_ad?, "System:", SYS, " ", ONE, REQ, ntaxp_dll
    VSwitch  0, nca??, "System:", SYS, " ", ONE, REQ, ntaxp
    VSwitch  0, l?2??, "System:", SYS, " ", ONE, REQ, netware
    VSwitch  0, ae2e?, "System:", SYS, " ", ONE, REQ, ads
    VSwitch  0, ad2e?, "System:", SYS, " ", ONE, REQ, eadi
    VSwitch  0, af2e?, "System:", SYS, " ", ONE, REQ, fadi
    VSwitch  0, df2??, "System:", SYS, " ", ONE, REQ, x32rv
    VSwitch  0, df2??, "System:", SYS, " ", ONE, REQ, x32r
    VSwitch  0, ds2??, "System:", SYS, " ", ONE, REQ, x32sv
    VSwitch  0, ds2??, "System:", SYS, " ", ONE, REQ, x32s
    CSwitch  0, dc6e?, "", com, ON
    CSwitch  0, w?2d?, " Link DLL", , ON
    CSwitch  0, w?6d?, " Link DLL", , ON
    CSwitch  0, n??d?, " Link DLL", , ON
    CSwitch  0, ???d?, " Link DLL", dll, ON
    CSwitch  0, wm6d?, " InitInst", initi, ON
    CSwitch  0, wa6d?, " InitInst", initi, ON
    CSwitch  0, na?d?, " InitInst", initi, ON
    CSwitch  0, nm?d?, " InitInst", initi, ON
    CSwitch  0, no?d?, " InitInst", initi, ON
    CSwitch  0, nu?d?, " InitInst", initi, ON
    CSwitch  0, nu?d?, " TermInst", termi, ON
    CSwitch  0, na?d?, " TermInst", termi, ON
    CSwitch  0, no?d?, " TermInst", termi, ON
    CSwitch  0, nm?d?, " TermInst", termi, ON
    CSwitch  0, wm6d?, " Mem", mem, ON
    CSwitch  0, wa6d?, " Mem", mem, ON
    VSwitch  0, l?2e?, "Output screen", "op scr", " '%s'", ONE, OFF, ""
    VSwitch  1, ?????, "Other options(,):",,, MULTI, REQ, ""
    CSwitch  1, ?????, "Map file", "op m", ON
    CSwitch  1, l?2e?, "Netware symbols", "d novell", ON
    VSwitch  1, ?????, "Stack:", "op st", =, ONE, REQ, ""
    VSwitch  1, wm?e?, "Heap:", "op heap", =, ONE, REQ, 1K
    VSwitch  1, wa?e?, "Heap:", "op heap", =, ONE, REQ, 1K
  Family "Import, Export and Library"
    CSwitch  0, ?????, "No default libraries", "op nod", OFF
    VSwitch  0, ?????, "Library directories(;):", libp, " ", MULTI, REQ, ""
    VSwitch  0, a????, "Libraries(,):",libr, " ", MULTI, REQ, "wcads90.lib"
    VSwitch  0, wa6d?, "Libraries(,):",libr, " ", MULTI, REQ, "mfc25w.lib mfco25w.lib mfcd25w.lib commdlg.lib shell.lib mfcoleui.lib compobj.lib storage.lib ole2.lib ole2disp.lib", "mfc25wd.lib mfco25wd.lib mfcd25wd.lib commdlg.lib shell.lib mfcoleui.lib
compobj.lib storage.lib ole2.lib ole2disp.lib"
    VSwitch  0, ?????, "Libraries(,):",libr, " ", MULTI, REQ, ""
    VSwitch  0, dc6e?, "Library files(,):", libf, " ", MULTI, REQ, "cstart_t"
    VSwitch  0, ae2e?, "Library files(,):", libf, " ", MULTI, REQ, "adsstart"
    VSwitch  0, ad2e?, "Library files(,):", libf, " ", MULTI, REQ, "adiestrt"
    VSwitch  0, af2e?, "Library files(,):", libf, " ", MULTI, REQ, "adifstrt"
    VSwitch  0, ???e?, "Library files(,):", libf, " ", MULTI, REQ, ""
    VSwitch  1, w????, "Import names(,):", imp, " ", MULTI, REQ, ""
    VSwitch  1, n????, "Import names(,):", imp, " ", MULTI, REQ, ""
    VSwitch  1, o????, "Import names(,):", imp, " ", MULTI, REQ, ""
    VSwitch  1, l????, "Import names(,):", imp, " ", MULTI, REQ, ""
    VSwitch  1, ?????, "Export names(,):", exp, " ", MULTI, REQ, ""
  Family Advanced
    CSwitch  0, ?????, "Verbose", "op v", OFF
    CSwitch  0, ?????, "Case sensitive link", "op c", OFF
    VSwitch  0, ?????, "Error count:", "op maxe", =, ONE, REQ, 25
    CSwitch  0, w?6??, "Check relocation of RW data", "op rwr", OFF
    CSwitch  0, ?????, "Dosseg", "op d", OFF
    CSwitch  0, ?????, "Undefines ok", "op u", OFF
    VSwitch  0, ?????, "Name length:", "op namel", =, ONE, REQ, ""
    CSwitch  1, ?????, "Quiet", "op q", ON
    VSwitch  1, ?????, "Description:", "op de", " '%s'", ONE, REQ, ""


Tool WRC "Resource Compiler"
  Family Resource
    CSwitch 0, ?????, "", "wrc $*.rc", ON
    RGroup "Build Target"
        RSwitch  0, w????, "Windows", -bt=windows, ON
    RGroup "Double Byte Character Support"
	RSwitch  0, ?????, "Single byte characters only", , ON
	RSwitch  0, ?????, "Kanji", -zk0, OFF
	RSwitch  0, w????, "Chinese/Taiwanese", -zk1, OFF
	RSwitch  0, w????, "Korean", -zk2, OFF
    VSwitch 1, wa???, "Macro definitions:", -d, , MULTI, REQ, "_AFXDLL"
    VSwitch 1, na???, "Macro definitions:", -d, , MULTI, REQ, "_AFXDLL"
    VSwitch 1, no???, "Macro definitions:", -d, , MULTI, REQ, "_AFXDLL _UNICODE"
    VSwitch 1, nu???, "Macro definitions:", -d, , MULTI, REQ, "_UNICODE"
    VSwitch 1, ?????, "Macro definitions:", -d, , MULTI, REQ, ""
    VSwitch 1, w????, "Include directories:", -i, =, MULTI, REQ, $[:;$(%watcom)\h;$(%watcom)\h\win
    VSwitch 1, n????, "Include directories:", -i, =, MULTI, REQ, $[:;$(%watcom)\h;$(%watcom)\h\nt
    VSwitch 1, ?????, "Include directories:", -i, =, MULTI, REQ, ""
    CSwitch 1, ?????, "Ignore INCLUDE env variable", -x, OFF
    CSwitch 1, w????, "Microsoft format .RES file", -zm, OFF
    CSwitch 1, ?????, "Do not preprocess the file", -zn, OFF
    CSwitch 1, ?????, "Quiet operation", -q, ON
    CSwitch 1, ?????, "Output autodepend info", -ad, ON

Tool WRC2 "Resource Compiler (pass 2)"
  Family Resource
    CSwitch 0, ?????, "", wrc, ON
    CSwitch 0, ?????, "Quiet operation", -q, ON
    CSwitch 0, ?????, "Output autodepend info", -ad, ON
    CSwitch 0, ?????, "Requires Windows 3.0 or later", -30, OFF
    CSwitch 0, ?????, "Uses global mem above EMS", -e, OFF
    CSwitch 0, ?????, "Uses LIM 3.2 EMS directly", -l, OFF
    CSwitch 0, ?????, "EMS bank for each instance", -m, OFF
    CSwitch 0, ?????, "Private DLL", -p, OFF
    CSwitch 0, ?????, "Protected mode only", -t, OFF
    RGroup "Segements in fastload section"
	RSwitch 0, w????, "No fastload section", -s0, ON
	RSwitch 0, w????, "Preload only", -s1, OFF
	RSwitch 0, w????, "Preload/Data/Non-discardable", -s2, OFF


Tool IMAGEEDIT "Image Editor"
  Family ImageEditor
    CSwitch 0, o????, " run", iconedit, ON
    CSwitch 0, ????n, " run", "$(%watcom)\\binnt\\wimgedit /n", ON
    CSwitch 0, ????a, " run", "$(%watcom)\\axpnt\\wimgedit /n", ON
    CSwitch 0, ????9, " run", "$(%watcom)\\binnt\\wimgedit /n", ON
    CSwitch 0, ?????, " run", "$(%watcom)\\binw\\wimgedit /n", ON


Rule ASMOBJ, WASM, ?????
  Source *.asm
  Target *.obj
  Command " *$<#>"

Rule CPPOBJ, WPP, ?????
  Source *.cpp *.cc *.cxx
  Target *.obj
  Autodepend
  BrowseSwitch -db
  Command " *$<#>"

Rule COBJ, WCC, ?????
  Source *.c
  Target *.obj
  Autodepend
  BrowseSwitch -db
  Command " *$<#>"
  

Rule WRESC, WRC, w????
  Source *.rc
  Target *.res
  Autodepend
  Command " *$<#> -r -fo=$&.res"

Rule NRESC, WRC, n????
  Source *.rc
  Target *.res
  Autodepend
  Command " *$<#> -r -fo=$&.res"
  
Rule SMAKEABLES
  Target *.obj, *.res
  Action &Make WMAKE OKFORMASK
    HotKey PLAIN F3
    Command "!Make $<#> -a $@"
    Hint "Make the result file"


Tool WINLINK "Windows Linking"
  IncludeTool WLINK
  IncludeTool WRC2

Rule WEXE, WINLINK, w??e?
  Target *.exe
  Autodepend
  Symbol FIL, *.obj
  Symbol LIBR, *.lib
  Symbol DLL, *.dll
  Symbol RES, *.res
  Command " @%write $*.lk1 NAME $*"
  Command " @%append $*.lk1 $<FIL,>"
  Command " @%append $*.lk1 $<LIBR,>"
  Command "!ifneq BLANK \"$<DLL!>\""
  Command " *wlib -q -n -b $*.imp $<DLL!>"
  Command " @%append $*.lk1 LIBR $*.imp"
  Command "!endif"
  Command " *$<#WLINK> @$*.lk1"
  Command "!ifneq BLANK \"$<RES!>\""
  Command " $<#WRC2> $<RES!> $@", 		??6??
  Command " wbind $* -q -s $(%watcom)\\binw\\win386.ext -R -q $<RES!> $*.exe",	??2??
  Command "!else",				??2??
  Command " wbind $* -q -n -s $(%watcom)\\binw\\win386.ext",			??2??
  Command "!endif"

Rule NEXE, WINLINK, n??e?
  Target *.exe
  Autodepend
  Symbol FIL, *.obj
  Symbol LIBR, *.lib
  Symbol DLL, *.dll
  Symbol RES, *.res
  Command " @%write $*.lk1 NAME $*"
  Command " @%append $*.lk1 $<FIL,>"
  Command " @%append $*.lk1 $<LIBR,>"
  Command "!ifneq BLANK \"$<DLL!>\""
  Command " *wlib -q -n -b $*.imp $<DLL!>"
  Command " @%append $*.lk1 LIBR $*.imp"
  Command "!endif"
  Command " *$<#WLINK> @$*.lk1"
  Command "!ifneq BLANK \"$<RES!>\""
  Command " $<#WRC2> $<RES!> $@"
  Command "!endif"
  
Rule NMEXEACTIONS, ,nm???
  Target *.exe
  Action "V&isual Programmer"
    Hint "Invoke Visual Programmer"
    Default
    Command "!VP $*"
    
Rule NAEXEACTIONS, ,na???
  Target *.exe
  Action "V&isual Programmer"
    Hint "Invoke Visual Programmer"
    Default
    Command "!VP $*"
    
Rule WMEXEACTIONS, ,wm???
  Target *.exe
  Action "V&isual Programmer"
    Hint "Invoke Visual Programmer"
    Default
    Command "!VP $*"
    
Rule WAEXEACTIONS, ,wa???
  Target *.exe
  Action "V&isual Programmer"
    Hint "Invoke Visual Programmer"
    Default
    Command "!VP $*"

Tool COPYFILE "Copy target file"
  Family "Destination Directory"
    VSwitch 0, ?????, "Destination directory","copy $@"," ", ONE, REQ, ""
    CSwitch 0, ?????, "", "#", ON

Tool NLMLINK "Link for Netware"
  IncludeTool WLINK
  IncludeTool COPYFILE

Rule NLM, NLMLINK, l?2e?
  Target *.nlm
  Autodepend
  Symbol FIL, *.obj
  Symbol LIBR, *.lib
  Command " @%write $*.lk1 NAME $*"
  Command " @%append $*.lk1 $<FIL,>"
  Command " @%append $*.lk1 $<LIBR,>"
  Command " *$<#WLINK> @$*.lk1"
  Command " $<#COPYFILE>"

Rule EXE, WLINK, ???e?
  Target *.exe, *.exp, *.com
  Autodepend
  Symbol FIL, *.obj
  Symbol LIBR, *.lib
  Command " @%write $*.lk1 NAME $*"
  Command " @%append $*.lk1 $<FIL,>"
  Command " @%append $*.lk1 $<LIBR,>"
  Command " *$<#> @$*.lk1"

Rule WPBDLL, WLINK, np2d?
  Target *.dll
  Autotrack *.cpp *.hpp
  Autodepend
  Symbol FIL, *.obj
  Symbol LIBR, *.lib
  Symbol RES, *.res
  Symbol DLL, *.dll
  Command " @%write $*.lk1 NAME $*"
  Command " @%append $*.lk1 $<FIL,>"
  Command " @%append $*.lk1 $<LIBR,>"
  Command "!ifneq BLANK \"$<DLL!>\""
  Command " *wlib -q -n -b $*.imp $<DLL!>"
  Command " @%append $*.lk1 LIBR $*.imp"
  Command "!endif"
  Command " *$<#> @$*.lk1"
  Command " $<#WRC2> $<RES!> $@"
  Command " copy $@ $(%watcom)\\binnt\\$."
  
Rule TMAKEABLES
  Target *.exe, *.exp, *.com, *.nlm, *.dll, *.lib, *.hlp *.inf
  Action &Make WMAKE OKFORMASK
    HotKey PLAIN F4
    Command "!Make $<#> $@"
    Hint "Make the target"


Rule PBDLL, , np2d?
  Target *.dll
  Action &Debug WDEBUG
  HotKey CTRL D
  Command "$<#>"
  Hint "Invoke the debugger on the target executable"
  
Rule EXES, , ???e?
  Target *.exe *.exp *.com
  Action &Run RUN
    HotKey CTRL R
    Command "$<#>"
    Hint "Run the target executable"
  Action &Debug WDEBUG
    HotKey CTRL D
    Command "$<#>"
    Hint "Invoke the debugger on the target executable"

Rule TXT
  Target *.txt *.h *.hpp *.c *.cpp *.def *.cfg *.rc *.asm
  Target *.sqc *.sqp *.ipf *.for *.fap *.fi
  Action "&Edit Text"
    HotKey CTRL E
    Default
    Command "!Editor EditFileAtPos -f$@ 1 1"
    Hint "Edit the ASCII file"

Rule OBJ
  Target *.obj
  Action &Disassemble WDISASM
    Command "!Batch $<#>"
    Hint "Disassemble the object file"
  Action "Edit Disassembl&y"
    Command "!Editor EditFileAtPos -f$*.lst 1 1"
    Hint "Edit the disassembled file"

Rule ORES, , o????
  Target *.res
  Action "&Edit Resources"
    Default
    Command "dlgedit $!"
    Hint "Edit the .res file"

Rule WRES, , w????
  Target *.res
  Action "&Edit Resources"
    Default
    Command "wre /n $!"
    Hint "Edit the .res file"

Rule NRES, , n????
  Target *.res
  Action "&Edit Resources"
    Default
    Command "wre /n $!"
    Hint "Edit the .res file"
   
Rule DLGEDIT, , ?????
  Target *.dlg
  Action "&Edit Dialog"
    Default
    Command "wde /n $!"
    Hint "Edit the .dlg file"

Rule IMAGE
  Target *.ico *.bmp, *.cur
  Action "&Edit Image" IMAGEEDIT
    Default
    Command "$<#> $@"
    Hint "Edit the IMAGE file"

Rule EDITRES
  Target *.str *.mnu, *.acc
  Action "&Edit Resource" 
    Default
    Command "wre /nointerface /n $@"
    Hint "Edit the resource file"

Rule OFNT, , o????
  Target *.fnt
  Action "&Edit Font"
    Default
    Command "fontedit $!"
    Hint "Edit the .fnt file"

rem Added for backwards compatability:
Compat "w????Import names(,):" "w????Import files(,):"
Compat "n????Import names(,):" "n????Import files(,):"
Compat "o????Import names(,):" "o????Import files(,):"
Compat "l????Import names(,):" "l????Import files(,):"
Compat "?????Chinese character set" "?????Chineese character set"
Compat "w????Chinese/Taiwanese" "w????Chineese/Taiwanese"
Compat "?????Do not preprocess the file" "?????Do not proprocess the file"

Project  
  Filter "C++ source (*.cpp)", *.cpp
  Filter "C source (*.c)", *.c
  Filter "Fortran source (*.for)", *.for
  Filter "Libraries (*.lib)", *.lib
  Filter "Resouce scripts (*.rc)", "*.rc"
  Filter "Dialogs (*.dlg)", "*.dlg"
  Filter "All files (*.*)", "*.*"
  HelpAction "&User Object Help" WMAKE
    Command "!Help pbcppuo.hlp"
    Hint "Help on making PowerBuilder C++ user objects"
  Action "&Make all" WMAKE
    HotKey PLAIN F5
    Command "!Make $<#>"
    Hint "Make all targets in the project"
  Action &Run...
    Command "$\"Command:\""
    Hint "Execute Command"
  Action "Run Ba&tch..."
    Command "!Batch $\"Command:\""
    Hint "Execute Command"
  Action "&Edit Text..."
    Command "!Editor EditFileAtPos -f$\"Filename:==\" 1 1"
    Hint "Invoke editor"
  Action "&PowerBuilder"
    Command "$(%watcom)\\binnt\\watrun.exe PBFRAME040 \"PowerBuilder\" pb040.exe"
    Hint "Return to PowerBuilder"
  Action "Mark &All Targets for Remake"
    Command "!RemakeAll foo"
    Hint "Mark all targets and their components for remake"

  ToolItem 1009 Source  &Edit*  "Edit the selected source file"
  ToolItem 1010 Source  &Make   "Make the selected source file"
  ToolItem 1004 Target  &Make   "Make the current target"
  ToolItem 1005 Target  &Debug  "Debug the current target"
  ToolItem 1003 Project &Make*  "Make all targets in the project"
  ToolItem 1013 Project &PowerBuilder "Return to PowerBuilder"

MsgLog
  Scan "<File: %f>"
  Scan "<wdisasm %* -l=%f %*>"
  Scan "<wasm %f %*>"
  Scan "<wpp %f %*>"
  Scan "<wpp386 %f %*>"
  Scan "<wcc %f %*>"
  Scan "<wcc386 %f %*>"
  Scan "<sqlpp %f %*>"
  Scan "<wrc %f %*>"
  Scan "<rc %f %*>"
  Scan "<wlink %*@%f%*>"
  Scan "<Warning %f %l:%*>"
  Scan "<Error %f %l:%*>"
  Scan "<%f(%l): *ERR* %i column %o%*>"
  Scan "<%f(%l): *WRN* %i column %o%*>"
  Scan "<%f(%l): *EXT* %i column %o%*>"
  Scan "<%f(%l): *ERR* %i%*>"
  Scan "<%f(%l): *WRN* %i%*>"
  Scan "<%f(%l): *EXT* %i%*>"
  Scan "<%f: *ERR* %i column %o%*>"
  Scan "<%f: *WRN* %i column %o%*>"
  Scan "<%f: *EXT* %i column %o%*>"
  Scan "<%f: *ERR* %i%*>"
  Scan "<%f: *WRN* %i%*>"
  Scan "<%f: *EXT* %i%*>"
  Scan "<%f(%l):%*! %h: (col %o)%*>"
  Scan "<%f(%l):%*! %h:%*>"
  Scan "<%f(%l):%*>"
  Scan "<%l:%*> <File: %f>"
  Scan "<%f:%*>"
  Scan "<%f>"
  Scan "<(%l,%o):%*> <File: %f>"

IncludeFile pbidex.cfg
