summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2014-12-10 17:06:09 +0100
committertwinaphex2014-12-10 17:06:09 +0100
commit51d78afa091d296e5545e69ed11201ee436053a1 (patch)
treede64f89c9c353493b471db18f32d10b89ba6733f /Makefile
parent512f7f5b275ec011ff0bf406771fcbeada1caf29 (diff)
downloadpicogpsp-51d78afa091d296e5545e69ed11201ee436053a1.tar.gz
picogpsp-51d78afa091d296e5545e69ed11201ee436053a1.tar.bz2
picogpsp-51d78afa091d296e5545e69ed11201ee436053a1.zip
Add HAVE_DYNAREC ifdef
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bdf1797..6e6d742 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,7 @@ ifeq ($(platform), unix)
fpic := -fPIC
FORCE_32BIT := -m32
CPU_ARCH := x86_32
+ HAVE_DYNAREC := 1
SHARED := -shared $(FORCE_32BIT) -Wl,--version-script=link.T
ifneq ($(findstring Haiku,$(shell uname -a)),)
LIBM :=
@@ -215,6 +216,10 @@ OBJECTS := $(SOURCES_C:.c=.o) $(SOURCES_ASM:.S=.o)
DEFINES = -DHAVE_STRINGS_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -D__LIBRETRO__ -DINLINE=inline -DPC_BUILD -Wall -Werror=implicit-function-declaration
+ifeq ($(HAVE_DYNAREC), 1)
+DEFINES += -DHAVE_DYNAREC
+endif
+
ifeq ($(CPU_ARCH), arm)
DEFINES += -DARM_ARCH
endif