1#	$NetBSD: Makefile.inc,v 1.1 2013/04/28 12:11:27 kiyohara Exp $
2
3# Require pkgsrc/cross/psion-gcc.
4ARM_EPOC_PE_GCC?=	/usr/pkg/bin/arm-epoc-pe-gcc
5PETRAN?=		/usr/pkg/bin/petran
6
7EPOC32_SDKDIR?=		/usr/pkg/psion-sdk/e32/
8
9EXTERNAL_TOOLCHAIN?=	/usr/pkg
10
11MACHINE_GNU_PLATFORM=	arm-epoc-pe
12
13check_psion_gcc:
14.if !exists(${ARM_EPOC_PE_GCC})
15	@echo "Error: File does not exist: ${ARM_EPOC_PE_GCC}"
16	@echo "Please build and install pkgsrc/cross/psion-gcc."
17	@false
18.endif
19
20check_psion_utils:
21.if !exists(${PETRAN})
22	@echo "Error: File does not exist: ${PETRAN}"
23	@echo "Please build and install pkgsrc/cross/psion-utils."
24	@false
25.endif
26
27check_psion_sdk:
28.if !exists(${EPOC32_SDKDIR}/include/e32base.h)
29	@echo "Error: File does not exist: ${EPOC32_SDKDIR}/include/e32base.h"
30	@echo "Please build and install pkgsrc/cross/psion-sdk-e32."
31	@false
32.endif
33
34check_epoc32_cross: check_psion_gcc check_psion_utils check_psion_sdk
35