# -*- mode: mak; -*-
###############################################################################
# File:         TOOLSET/wc4gw.def
# Contents:     WATCOM defines
###############################################################################

toolset		= wc4gw

o		= obj
s		= asm
a		= lib
exe		= .exp

.SUFFIXES:	.asm

.PHONY:		watcom
watcom:
	@$(echo) [Toolset DOS32 - Watcom C/C++ DOS4GW]; \
	if [ -z "$$WATCOM" ]; then echo WATCOM env var not set; exit 2; fi; \
	if [ -z "$$MASM" ]; then echo MASM env var not set; exit 2; fi

watcom		:= $(subst \,/,$(strip $(WATCOM)))
masm		:= $(subst \,/,$(strip $(MASM)))

ifeq "$(findstring $(PATH),$(WATCOM))" ""
PATH		:= $(PATH);$(watcom)/bin;$(watcom)/binb
endif
ifeq "$(findstring $(PATH),$(MASM))" ""
PATH		:= $(PATH);$(masm)/bin
endif

RPCGEN_CPP	:= wcc
RPCGEN_CFLAGS	:= -pw=0
export RPCGEN_CPP RPCGEN_CFLAGS

#
