Subversion Repositories DevTools

Rev

Rev 227 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

# -*- mode: mak; -*-
###############################################################################
# File:         TOOLSET/gnupro_h8.def
# Contents:     GnuPro H8 defines
###############################################################################

toolset         = gnupro_h8
s                   = asm
o                   = o
a                   = a
exe                 =

.SUFFIXES:      .asm

#
#   Toolset global variables
#       GNUPROH8    - Root of the GnuPro Toolkit (From Environment)
#       GnuProDir   - Root of the GnuPro Toolkit (Make format)
#       H8Dir       - Root of the H8 compiler
#
GnuProDir       := $(subst \,/,$(strip $(GNUPROH8)))
H8Dir       := $(GnuProDir)/Tools/Cygnus

#
#   Ensure that the tools are available
#
.PHONY:         gnupro_h8
gnupro_h8:
        @$(echo) [Toolset GnuPro H8::$(GnuProDir)]; \
        [ -z "$$GNUPROH8" ] && echo GNUPROH8 env var not set && exit 2; \
        if [ ! -d "$(GnuProDir)" ] ; then echo GnuPro Directory not found: $(GnuProDir);  exit 2; fi; \
        if [ ! -d "$(H8Dir)" ] ; then echo H8 Compiler directory not found: $(H8Dir); exit 2; fi; \


#
#   Add the compiler toolkit to the PATH
#
ifeq "$(findstring $(PATH),$(GNUPROH8))" ""
PATH            := $(H8Dir)/Bin;$(H8Dir)/Utils;$(PATH)
export PATH
endif

#
#   Binmode appears to kill the compiler
#   Don't use any CYGWIN environment variable
#
CYGWIN=
export CYGWIN

#