From f0a4e31eaad0bf6f53a9b8d056ea6e9ad88485cc Mon Sep 17 00:00:00 2001 From: radius Date: Wed, 10 Apr 2019 15:17:59 -0500 Subject: add libretro makefile --- Makefile.libretro | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Makefile.libretro diff --git a/Makefile.libretro b/Makefile.libretro new file mode 100644 index 0000000..afe6019 --- /dev/null +++ b/Makefile.libretro @@ -0,0 +1,39 @@ +UNAME=$(shell uname -s) +UNAMEM=$(shell uname -m) + +platform ?= unix +ifneq ($(findstring MINGW64,$(UNAME)),) + platform = win + OS :=Windows + CC :=gcc + ABI := x86_64 + target = libblastem.dll + libname = blastem_libretro.dll +else ifneq ($(findstring MINGW32,$(UNAME)),) + platform = win + OS :=Windows + CC :=gcc + ABI := i686 + target = libblastem.dll + libname = blastem_libretro.dll +else ifneq ($(findstring Darwin,$(UNAME)),) + platform = osx +else + platform = linux + OS :=Linux + CC :=gcc + ABI := x86_64 + target = libblastem.so + libname = blastem_libretro.so +endif + + + +core: $(OBJ) + make $(target) OS=$(OS) CC=$(CC) CPU=$(ABI) + cp -v $(target) $(libname) + +.PHONY: clean + +clean: + make clean -- cgit v1.2.3