From bc9b3c7ea772a09488b34c4bfd1ebaa28c24fd6d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 11 Aug 2008 04:39:24 +0000 Subject: [PATCH] Improved devkitPrO message in Makefile.ds and set better environment variable defaults --- Makefile.ds | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.ds b/Makefile.ds index 2ba19b55e..39d5734e0 100644 --- a/Makefile.ds +++ b/Makefile.ds @@ -2,9 +2,13 @@ #LibSDL 1.3 porting and enhancements by Darren Alton (lifning) #LibSDL 1.2.9 DS porting by Troy Davis(GPF) +ifeq ($(strip $(DEVKITPRO)),) +$(error "Please set DEVKITPRO in your environment (available from http://www.devkitpro.org). export DEVKITPRO=devkitPro") +endif ifeq ($(strip $(DEVKITARM)),) -$(error "Please set DEVKITARM in your environment. export DEVKITARM=devkitARM) +DEVKITARM = $(DEVKITPRO)/devkitARM endif +PATH := $(PATH):$(DEVKITARM)/bin CC = arm-eabi-gcc AR = arm-eabi-ar