From 116f6d7dc668290925d83ede92e0e4e59a93870c Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Sun, 20 Mar 2016 12:34:23 -0700 Subject: [PATCH] Only build 3DS shaders if target is 3DS. --- make_base | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/make_base b/make_base index d65ff96..4607e7f 100644 --- a/make_base +++ b/make_base @@ -35,8 +35,6 @@ STRIPPED_NAME := $(subst $(SPACE),,$(NAME)) OBJECT_FILES := $(foreach dir,$(SOURCE_DIRS), \ $(patsubst %.bin,$(BUILD_DIR)/%.bin.o,$(call rwildcard,$(dir),*.bin)) \ - $(patsubst %.v.pica,$(BUILD_DIR)/%.shbin.o,$(call rwildcard,$(dir),*.v.pica)) \ - $(patsubst %.shlist,$(BUILD_DIR)/%.shbin.o,$(call rwildcard,$(dir),*.shlist)) \ $(patsubst %.c,$(BUILD_DIR)/%.o,$(call rwildcard,$(dir),*.c)) \ $(patsubst %.cpp,$(BUILD_DIR)/%.o,$(call rwildcard,$(dir),*.cpp)) \ $(patsubst %.s,$(BUILD_DIR)/%.o,$(call rwildcard,$(dir),*.s)) \ @@ -60,6 +58,11 @@ endif # TARGET SETUP # ifeq ($(TARGET),3DS) + OBJECT_FILES := $(foreach dir,$(SOURCE_DIRS), \ + $(patsubst %.v.pica,$(BUILD_DIR)/%.shbin.o,$(call rwildcard,$(dir),*.v.pica)) \ + $(patsubst %.shlist,$(BUILD_DIR)/%.shbin.o,$(call rwildcard,$(dir),*.shlist)) \ + ) $(OBJECT_FILES) + ifeq ($(strip $(TITLE)),) TITLE := $(NAME) endif