Subversion Repositories DevTools

Rev

Rev 263 | Blame | Compare with Previous | Last modification | View Log | RSS feed

# -*- mode: perl -*-
###############################################################################
# File:         TOOLSET/gnu_mpt.def
# Contents:     GNU MPT defines
###############################################################################

toolset         = gnu_mpt
s               = asm
o               = o
a               = a
exe             =

.SUFFIXES:      .asm

#
#   Ensure that the compiler can be found
#   Use the environment varibales
#       THYRONTOOLS - Root of the MPT SDK Install
#
ifndef THYRONTOOLS
    THYRONTOOLS := C:/MPT_SDK
    export THYRONTOOLS
endif


.PHONY:         gnu_mpt
gnu_mpt:
        @$(echo) '[Toolset GNU/MPT]'; \
        if [ -z "$$THYRONTOOLS" ]; then echo 'THYRONTOOLS env var not set'; exit 2; fi ; \
        if [ ! -d "$$THYRONTOOLS" ]; then echo "ERROR: THYRONTOOLS directory not found ($$THYRONTOOLS). Compiler not available"; exit 2; fi;

thyron          := $(subst \,/,$(strip $(THYRONTOOLS)))
MPTLIB          := $(thyron)/thyron/paycell2
gnubin          := $(thyron)/cygnus/bin/arm

ifeq "$(findstring $(PATH),$(THYRONTOOLS))" ""
PATH            := $(thyron)/thyron/tools;$(gnubin);$(PATH)
endif

GNUBIN          := $(subst /,\,$(strip $(gnubin)))
TMPDIR          := C:\TEMP

export GNU TMPDIR

#