# -*- mode: mak; -*-
###############################################################################
# File:         TOOLSET/djgpp
# Contents:     DJGPP defines
###############################################################################

toolset		= djgpp
s		= asm
o		= o
a		= a
exe		= .exe

.SUFFIXES:	.asm

.PHONY:		djgpp
djgpp:
	@$(echo) [Toolset DJGPP - DJGPP C/C++ 32 bit/GO32/MASM]; \
	if [ -z "$$DJGPP" ]; then echo DJGPP env var not set; exit 2; fi; \
	if [ -z "$$USR" ]; then echo USR env var not set; exit 2; fi; \
	if [ -z "$$MASM" ]; then echo MASM env var not set; exit 2; fi

watcom		:= $(subst \,/,$(strip $(DJGPP)))
usr		:= $(subst \,/,$(strip $(USR)))
masm		:= $(subst \,/,$(strip $(MASM)))

ifeq "$(findstring $(PATH),$(USR))" ""
PATH		:= $(PATH);$(usr)/bin;
endif
ifeq "$(findstring $(PATH),$(MASM))" ""
PATH		:= $(PATH);$(masm)/bin
endif

RPCGEN_CPP	:= gcc
RPCGEN_CFLAGS	:= -E
export RPCGEN_CPP RPCGEN_CFLAGS

#
