Improved devkitPrO message in Makefile.ds and set better environment variable defaults gsoc2008_nds
authorSam Lantinga <slouken@libsdl.org>
Mon, 11 Aug 2008 04:39:24 +0000
branchgsoc2008_nds
changeset 2684 a4f143d187dd
parent 2683 e858ac8868b6
child 2685 2190b873ff00
Improved devkitPrO message in Makefile.ds and set better environment variable defaults
Makefile.ds
--- a/Makefile.ds	Fri Aug 08 08:22:08 2008 +0000
+++ b/Makefile.ds	Mon Aug 11 04:39:24 2008 +0000
@@ -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=<path to>devkitPro")
+endif
 ifeq ($(strip $(DEVKITARM)),)
-$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM)
+DEVKITARM = $(DEVKITPRO)/devkitARM
 endif
+PATH := $(PATH):$(DEVKITARM)/bin
 
 CC = arm-eabi-gcc
 AR = arm-eabi-ar