summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2008-08-11 04:39:24 +0000
committerSam Lantinga <slouken@libsdl.org>2008-08-11 04:39:24 +0000
commit28bbbbd092912c11d9a6b49732e738d56b463737 (patch)
tree8e4dac083c0fe9d00e91343efb06200d18c8345f
parentc11b746664af36816fb086cb980d2dca402fadf6 (diff)
downloadsdl-28bbbbd092912c11d9a6b49732e738d56b463737.tar.gz
Improved devkitPrO message in Makefile.ds and set better environment variable defaults
-rw-r--r--Makefile.ds6
1 files changed, 5 insertions, 1 deletions
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=<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