Home | History | Annotate | Line # | Download | only in e32boot
      1 #	$NetBSD: Makefile.inc,v 1.2 2013/05/01 22:57:37 matt Exp $
      2 
      3 # Require pkgsrc/cross/psion-gcc.
      4 ARM_EPOC_PE_GCC?=	/usr/pkg/bin/arm-epoc-pe-gcc
      5 PETRAN?=		/usr/pkg/bin/petran
      6 
      7 EPOC32_SDKDIR?=		/usr/pkg/psion-sdk/e32/
      8 
      9 EXTERNAL_TOOLCHAIN?=	/usr/pkg
     10 
     11 MACHINE_GNU_PLATFORM=	arm-epoc-pe
     12 
     13 check_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 
     20 check_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 
     27 check_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 
     34 check_epoc32_cross: check_psion_gcc check_psion_utils check_psion_sdk
     35