From c57d00d98db3b017b488e0467c45cbce88edd079 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Wed, 1 Apr 2015 23:27:55 +0100 Subject: [PATCH] (CTR-3DS) remove hardcoded paths in the Makefile. remove trailing tab. --- Makefile.ctr | 13 ++++++++++--- config.def.h | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile.ctr b/Makefile.ctr index a2e23b0638..55f413a4ad 100644 --- a/Makefile.ctr +++ b/Makefile.ctr @@ -5,10 +5,17 @@ OBJS += gfx/drivers/ctr_blit.o griffin/griffin.o DEBUG = 0 -CTRULIB = /home/lethalis/3ds/ctrulib/libctru -AEMSTRO = /home/lethalis/3ds/aemstro +ifeq ($(strip $(DEVKITARM)),) +$(error "Please set DEVKITARM in your environment. export DEVKITARM=devkitARM") +endif -export PATH := $(DEVKITARM)/bin:$(PATH) +ifeq ($(strip $(CTRULIB)),) +$(error "Please set CTRULIB in your environment. export CTRULIB=ctrulib") +endif + +ifeq ($(strip $(AEMSTRO)),) +$(error "Please set AEMSTRO in your environment. export AEMSTRO=aemstro") +endif INCDIRS := -I$(CTRULIB)/include LIBDIRS := -L. -L$(CTRULIB)/lib diff --git a/config.def.h b/config.def.h index 5ac5ee18b8..4f25d2cf75 100644 --- a/config.def.h +++ b/config.def.h @@ -36,7 +36,7 @@ enum VIDEO_WII, VIDEO_XENON360, VIDEO_XDK_D3D, - VIDEO_PSP1, + VIDEO_PSP1, VIDEO_VITA, VIDEO_CTR, VIDEO_D3D9,