summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authortwinaphex2014-12-09 22:37:07 +0100
committertwinaphex2014-12-09 22:37:07 +0100
commit8d2578eefc3c56d8af317f9a8488442b662e673a (patch)
tree6b85beef3a177bd70ee704779c05a62457ae0039 /Makefile.common
parenta660cbd4c808fb6f03fda4be87a8efcb58e7e13c (diff)
downloadpicogpsp-8d2578eefc3c56d8af317f9a8488442b662e673a.tar.gz
picogpsp-8d2578eefc3c56d8af317f9a8488442b662e673a.tar.bz2
picogpsp-8d2578eefc3c56d8af317f9a8488442b662e673a.zip
Add CPU_ARCH rules to Makefile.common
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index a8e3323..6a371be 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -1,5 +1,7 @@
INCFLAGS := -I$(CORE_DIR)/libretro -I$(CORE_DIR)/src
+SOURCES_ASM :=
+
ifeq ($(HAVE_GRIFFIN), 1)
SOURCES_C := $(CORE_DIR)/gpsp_griffin.c
else
@@ -16,6 +18,12 @@ SOURCES_C := $(CORE_DIR)/main.c \
endif
-SOURCES_ASM := $(CORE_DIR)/x86/x86_stub.S
+ifeq ($(CPU_ARCH), x86_32)
+SOURCES_ASM += $(CORE_DIR)/x86/x86_stub.S
+endif
+ifeq ($(CPU_ARCH), arm)
+SOURCES_ASM += $(CORE_DIR)/arm/arm_stub.S \
+ $(CORE_DIR)/arm/video_blend.S
+endif
INCFLAGS := -I$(CORE_DIR)