###############################################################################
# File:         TOOLSET/m16c.def
# Contents:     Visual C/C++ defines
###############################################################################

toolset		= vcwin

o		= R30
s		= asm
a		= lib
so      =
exe		= .bin

.SUFFIXES:	.asm

#
#   Setup the basic compiler environment paths
#
#
PROGRAMFILES  ?= C:/Program Files
MTOOL         ?= C:/MTOOL


# Verify environment variable requirements
.PHONY:		m16c
m16c:
  ifndef GBE_NOTOOLSTEST
	    @$(echo) '[Toolset Mistubishi m16c]'; \
	    if [ ! -d "$(MTOOL)" ]; then echo "Directory MTOOL does not exist: $(MTOOL)"; exit 2; fi;
  endif

Compiler      =   "$(MTOOL)/bin/NC30.EXE"
Assembler     =   "$(MTOOL)/bin/AS30.EXE"
Linker        =   "$(MTOOL)/bin/LN30.EXE"
LinkerLMC     =   "$(MTOOL)/bin/LMC30.EXE"
m16c_librarian  = "$(MTOOL)/bin/LB30.EXE"

#
#   Environment variables for the tools
#
BIN30=$(MTOOL)\BIN
LIB30=$(MTOOL)\LIB30
INC30=$(MTOOL)\INC30
TMP30=$(MTOOL)\TMP

export BIN30 LIB30 INC30 TMP30

#
