Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
227 dpurdie 1
# -*- mode: perl -*-
2
###############################################################################
3
# File:		TOOLSET/gnu_mpt.def
4
# Contents:     GNU MPT defines
5
###############################################################################
6
 
7
toolset		= gnu_mpt
8
s		= asm
9
o		= o
10
a		= a
11
exe		=
12
 
13
.SUFFIXES:	.asm
14
 
263 dpurdie 15
#
16
#   Ensure that the compiler can be found
17
#   Use the environment varibales
18
#       THYRONTOOLS - Root of the MPT SDK Install
19
#
20
ifndef THYRONTOOLS
21
    THYRONTOOLS := C:/MPT_SDK
22
    export THYRONTOOLS
23
endif
24
 
25
 
227 dpurdie 26
.PHONY:		gnu_mpt
27
gnu_mpt:
28
	@$(echo) [Toolset GNU/MPT]; \
263 dpurdie 29
        if [ -z "$$THYRONTOOLS" ]; then echo THYRONTOOLS env var not set; exit 2; fi ; \
30
        if [ ! -d "$$THYRONTOOLS" ]; then echo "ERROR: THYRONTOOLS directory not found ($$THYRONTOOLS). Compiler not available"; exit 2; fi;
227 dpurdie 31
 
32
thyron		:= $(subst \,/,$(strip $(THYRONTOOLS)))
33
MPTLIB		:= $(thyron)/thyron/paycell2
34
gnubin		:= $(thyron)/cygnus/bin/arm
35
 
36
ifeq "$(findstring $(PATH),$(THYRONTOOLS))" ""
241 dpurdie 37
PATH		:= $(thyron)/thyron/tools;$(gnubin);$(PATH)
227 dpurdie 38
endif
39
 
40
GNUBIN		:= $(subst /,\,$(strip $(gnubin)))
41
TMPDIR		:= C:\TEMP
42
 
43
export GNU TMPDIR
44
 
45
#