blob: b48532d59568200725e55ad04f8a188c75e73c88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
UNAME=$(shell uname -s)
UNAMEM=$(shell uname -m)
platform ?= unix
ifeq ($(platform), emscripten)
platform = emscripten
ABI := x86_64
target = libblastem.so
libname = blastem_libretro_emscripten.bc
else ifeq ($(MSYSTEM),MINGW64)
platform = win
OS :=Windows
CC ?=gcc
ABI := x86_64
target = libblastem.dll
libname = blastem_libretro.dll
else ifeq ($(MSYSTEM),MINGW32)
platform = win
OS :=Windows
CC ?=gcc
ABI := i686
target = libblastem.dll
libname = blastem_libretro.dll
else ifneq ($(findstring Darwin,$(UNAME)),)
platform = osx
OS :=Darwin
CC ?=gcc
ABI := x86_64
target = libblastem.dylib
libname = blastem_libretro.dylib
else
platform = linux
OS :=Linux
CC ?=gcc
ifeq ($(ARCH),x86)
ABI := i686
else
ABI := x86_64
endif
target = libblastem.so
libname = blastem_libretro.so
endif
core: $(OBJ)
make $(target) OS=$(OS) CC=$(CC) CPU=$(ABI)
cp -v $(target) $(libname)
install: $(libname)
install -Dp -m755 $(libname) $(DESTDIR)$(prefix)/lib/libretro/$(libname)
.PHONY: clean
clean:
make clean
|