summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoraliaspider2015-11-13 01:10:59 +0100
committeraliaspider2015-11-13 01:14:10 +0100
commitfeb7ddabab930359c045128134d942894ff5f4f8 (patch)
treea44a9115c7ae6a819f490b174af41f08ea96855f /Makefile
parent9adfbb8d43e68e6ae828a534eeadbcbe3d46ca46 (diff)
downloadsnes9x2002-feb7ddabab930359c045128134d942894ff5f4f8.tar.gz
snes9x2002-feb7ddabab930359c045128134d942894ff5f4f8.tar.bz2
snes9x2002-feb7ddabab930359c045128134d942894ff5f4f8.zip
build bix for non ARM platforms.
(still not functional)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 58aca57..42e8177 100644
--- a/Makefile
+++ b/Makefile
@@ -15,9 +15,13 @@ endif
endif
ifeq ($(platform), unix)
- TARGET := libretro.so
+ TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
- SHARED := -shared -Wl,--version-script=libretro/link.T
+ SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined
+ CFLAGS += -fno-builtin \
+ -fno-exceptions -ffunction-sections \
+ -fomit-frame-pointer -fgcse-sm -fgcse-las -fgcse-after-reload \
+ -fweb -fpeel-loops
else ifeq ($(platform), osx)
TARGET := libretro.dylib
fpic := -fPIC
@@ -87,7 +91,7 @@ $(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS)
else
- $(CXX) $(fpic) $(SHARED) $(INCLUDES) -o $@ $(OBJECTS) -lm
+ $(CC) $(fpic) $(SHARED) $(INCLUDES) -o $@ $(OBJECTS) -lm
endif
%.o: %.c