| 261 |
dpurdie |
1 |
###############################################################################
|
| 6177 |
dpurdie |
2 |
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
|
| 261 |
dpurdie |
3 |
#
|
|
|
4 |
# File: TOOLSET/VERIX.def
|
|
|
5 |
# Contents: VERIX rules as used for the Verix V SDK
|
|
|
6 |
# Make definitions for the Verix Tools
|
|
|
7 |
#
|
|
|
8 |
# Description:
|
|
|
9 |
# This file provides Toolset definitions for the target makefiles
|
|
|
10 |
# The file is dropped into the top of the generated platform specfic makefile
|
|
|
11 |
#
|
|
|
12 |
###############################################################################
|
|
|
13 |
|
|
|
14 |
toolset = VERIX
|
|
|
15 |
|
|
|
16 |
o = o
|
|
|
17 |
s = asm
|
|
|
18 |
a = a
|
|
|
19 |
exe = .out
|
|
|
20 |
|
|
|
21 |
.SUFFIXES: .asm
|
|
|
22 |
|
|
|
23 |
#
|
|
|
24 |
# Ensure that the compiler can be found
|
|
|
25 |
# Use the environment variables
|
|
|
26 |
# GBE_VERIXV - Root of the VERIX Install
|
|
|
27 |
# GBE_VERIXV_ARM - Root of the ARM install
|
|
|
28 |
# GBE_VERIXV_SIGN - Root of the VeriShield File Signing Tool
|
|
|
29 |
#
|
|
|
30 |
ifndef GBE_VERIXV
|
|
|
31 |
GBE_VERIXV := c:\VerixVAps
|
|
|
32 |
export GBE_VERIXV
|
|
|
33 |
endif
|
|
|
34 |
|
|
|
35 |
ifndef GBE_VERIXV_ARM
|
|
|
36 |
GBE_VERIXV_ARM := C:/Program Files/ARM
|
|
|
37 |
export GBE_VERIXV_ARM
|
|
|
38 |
endif
|
|
|
39 |
|
|
|
40 |
ifndef GBE_VERIXV_SIGN
|
|
|
41 |
GBE_VERIXV_SIGN := C:/Program Files/VeriShield File Signing Tool
|
|
|
42 |
export GBE_VERIXV_SIGN
|
|
|
43 |
endif
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
.PHONY: VERIX
|
|
|
47 |
verix:
|
| 6177 |
dpurdie |
48 |
@if [ -z "$$GBE_VERIXV" ]; then echo "GBE_VERIXV env var not set"; exit 2; fi; \
|
|
|
49 |
if [ -z "$$GBE_VERIXV_ARM" ]; then echo "GBE_VERIXV_ARM env var not set"; exit 2; fi; \
|
|
|
50 |
if [ -z "$$GBE_VERIXV_SIGN" ]; then echo "GBE_VERIXV_SIGN env var not set"; exit 2; fi; \
|
| 261 |
dpurdie |
51 |
if [ ! -d "$$GBE_VERIXV" ]; then echo "ERROR: GBE_VERIXV directory not found ($$GBE_VERIXV). Compiler not available"; exit 2; fi; \
|
|
|
52 |
if [ ! -d "$$GBE_VERIXV_ARM" ]; then echo "ERROR: GBE_VERIXV_ARM directory not found ($$GBE_VERIXV_ARM). Compiler not available"; exit 2; fi; \
|
|
|
53 |
if [ ! -d "$$GBE_VERIXV_SIGN" ]; then echo "ERROR: GBE_VERIXV_SIGN directory not found ($$GBE_VERIXV_SIGN). FileSign Tool not available"; exit 2; fi; \
|
|
|
54 |
echo "[Toolset Verifone VERIX]";
|
|
|
55 |
|
|
|
56 |
VERIX := $(subst \,/,$(strip $(GBE_VERIXV)))
|
|
|
57 |
VERIXV_ARM := $(subst \,/,$(strip $(GBE_VERIXV_ARM)))
|
|
|
58 |
VERIXV_SIGN := $(subst \,/,$(strip $(GBE_VERIXV_SIGN)))
|
|
|
59 |
|
|
|
60 |
#
|
|
|
61 |
# Extend the PATH used by the toolset
|
|
|
62 |
#
|
|
|
63 |
VX_PATH:= $(VERIX)/vfsdk/bin
|
|
|
64 |
VX_PATH:= $(VX_PATH);$(VERIXV_ARM)/RVD/Core/1.7/283/win_32-pentium/bin
|
|
|
65 |
VX_PATH:= $(VX_PATH);$(VERIXV_ARM)/Utilities/FLEXlm/9.2/release/win_32-pentium
|
|
|
66 |
VX_PATH:= $(VX_PATH);$(VERIXV_ARM)/bin/win_32-pentium
|
|
|
67 |
VX_PATH:= $(VX_PATH);$(VERIXV_ARM)/RVCT/Programs/2.0.1/277/win_32-pentium
|
|
|
68 |
|
|
|
69 |
ifeq "$(findstring $(VX_PATH),$(PATH))" ""
|
|
|
70 |
PATH := $(VX_PATH);$(PATH)
|
|
|
71 |
endif
|
|
|
72 |
Path := $(PATH)
|
|
|
73 |
export PATH
|
|
|
74 |
|
|
|
75 |
#
|
|
|
76 |
# Define compiler specific include and library directories
|
|
|
77 |
#
|
|
|
78 |
VERIX_INCLUDE := $(VERIX)/vfsdk/include
|
|
|
79 |
VERIX_INCLUDE := $(VERIX_INCLUDE) $(VERIX)/ACT2000/include
|
|
|
80 |
|
|
|
81 |
VERIX_LIB := $(VERIX)/ACT2000/output/rv/files/Static/Debug
|
|
|
82 |
|
|
|
83 |
#
|
|
|
84 |
# Define the compiler specfic names and paths for the various tools
|
|
|
85 |
#
|
|
|
86 |
VERIX_compiler := $(VERIX)/vfsdk/bin/vrxcc
|
|
|
87 |
VERIX_linker := $(VERIX)/vfsdk/bin/vrxcc
|
|
|
88 |
VERIX_hdr := $(VERIX)/vfsdk/bin/vrxhdr
|
|
|
89 |
ARM_ar := $(VERIXV_ARM)/RVCT/Programs/2.0.1/277/win_32-pentium/armar
|
|
|
90 |
VERIX_FileSignature := $(VERIXV_SIGN)/FileSignature
|
|
|
91 |
|
|
|
92 |
#
|
|
|
93 |
# Setup the LM_LICENSE_FILE
|
|
|
94 |
# Not used for network license
|
|
|
95 |
#
|
|
|
96 |
LM_LICENSE_FILE := $(VERIXV_ARM)/License/license.dat
|
|
|
97 |
export LM_LICENSE_FILE
|
|
|
98 |
|
|
|
99 |
#
|