Changeset View
Changeset View
Standalone View
Standalone View
games/libretro-emux/files/patch-libretro_Makefile.bsd
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- libretro/Makefile.bsd.orig 2020-03-17 22:22:41 UTC | |||||
+++ libretro/Makefile.bsd | |||||
@@ -0,0 +1,88 @@ | |||||
+############## | |||||
+# Works on hosts Linux | |||||
+# apt-get install g++-multilib libc6-dev-i386 | |||||
+ | |||||
+########################## | |||||
+# Checks the host platform | |||||
+ | |||||
+HOST_PLATFORM = linux | |||||
+ifeq ($(shell uname -a),) | |||||
+ HOST_PLATFORM = windows | |||||
+else ifneq ($(findstring MINGW,$(shell uname -a)),) | |||||
+ HOST_PLATFORM = windows | |||||
+else ifneq ($(findstring Darwin,$(shell uname -a)),) | |||||
+ HOST_PLATFORM = darwin | |||||
+else ifneq ($(findstring win,$(shell uname -a)),) | |||||
+ HOST_PLATFORM = windows | |||||
+endif | |||||
+ | |||||
+################# | |||||
+# Toolchain setup | |||||
+ | |||||
+AS = as | |||||
+AR = ar | |||||
+ | |||||
+############ | |||||
+# Extensions | |||||
+ | |||||
+OBJEXT = .o | |||||
+SOEXT = .so | |||||
+ | |||||
+################ | |||||
+# Platform setup | |||||
+ | |||||
+STATIC_LINKING = 0 | |||||
+platform = unix | |||||
+PLATDEFS = | |||||
+PLATCFLAGS = -fpic -fstrict-aliasing | |||||
+PLATCXXFLAGS = -fpic -fstrict-aliasing | |||||
+PLATLDFLAGS = -shared -lm -Wl,-version-script=$(BUILD_DIR)/link.T -Wl,-no-undefined | |||||
+PLATLDXFLAGS = -shared -lm -Wl,-version-script=$(BUILD_DIR)/link.T -Wl,-no-undefined | |||||
+ | |||||
+################ | |||||
+# libretro setup | |||||
+ | |||||
+RETRODEFS = -D__LIBRETRO__ | |||||
+RETROCFLAGS = | |||||
+RETROCXXFLAGS = | |||||
+RETROLDFLAGS = | |||||
+RETROLDXFLAGS = | |||||
+ | |||||
+################# | |||||
+# Final variables | |||||
+ | |||||
+DEFINES = $(PLATDEFS) $(RETRODEFS) | |||||
+CFLAGS = $(PLATCFLAGS) $(RETROCFLAGS) $(DEFINES) $(INCLUDES) | |||||
+CXXFLAGS = $(PLATCXXFLAGS) $(RETROCXXFLAGS) $(DEFINES) $(INCLUDES) | |||||
+LDFLAGS = $(PLATLDFLAGS) $(RETROLDFLAGS) | |||||
+LDXFLAGS = $(PLATLDXFLAGS) $(RETROLDXFLAGS) | |||||
+ | |||||
+######## | |||||
+# Tuning | |||||
+ | |||||
+ifneq ($(DEBUG),) | |||||
+ CFLAGS += -O0 -g | |||||
+ CXXFLAGS += -O0 -g | |||||
+else | |||||
+ CFLAGS += -O3 -DNDEBUG | |||||
+ CXXFLAGS += -O3 -DNDEBUG | |||||
+endif | |||||
+ | |||||
+ifneq ($(LOG_PERFORMANCE),) | |||||
+ CFLAGS += -DLOG_PERFORMANCE | |||||
+ CXXFLAGS += -DLOG_PERFORMANCE | |||||
+endif | |||||
+ | |||||
+#################################### | |||||
+# Variable setup for Makefile.common | |||||
+ | |||||
+CORE_DIR ?= .. | |||||
+BUILD_DIR ?= . | |||||
+INCLUDES = | |||||
+ | |||||
+include $(BUILD_DIR)/Makefile.common | |||||
+ | |||||
+############### | |||||
+# Include rules | |||||
+ | |||||
+include $(BUILD_DIR)/Makefile.rules |