forked from Stewmath/GameYob
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
71 lines (47 loc) · 1.41 KB
/
Makefile
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# TARGET #
TARGET := SWITCH 3DS NATIVE
# COMMON CONFIGURATION #
NAME := GameYob
BUILD_DIR := build
OUTPUT_DIR := output
INCLUDE_DIRS := include
SOURCE_DIRS := source
BUILD_FLAGS := -O3
VERSION_PARTS := $(subst ., ,$(shell git describe --tags --abbrev=0))
VERSION_MAJOR := $(word 1, $(VERSION_PARTS))
VERSION_MINOR := $(word 2, $(VERSION_PARTS))
VERSION_MICRO := $(word 3, $(VERSION_PARTS))
# PC CONFIGURATION #
ifneq ($(TARGET),$(filter $(TARGET),3DS SWITCH))
ifeq ($(OS),Windows_NT)
LIBRARIES += pdcurses SDL2main SDL2 dinput8 dxguid dxerr8 user32 gdi32 winmm imm32 ole32 oleaut32 shell32 version uuid
else
LIBRARIES += ncurses SDL2
endif
BUILD_FLAGS += -DBACKEND_SDL
endif
# 3DS/Switch CONFIGURATION #
ifeq ($(TARGET),$(filter $(TARGET),3DS SWITCH))
AUTHOR := Drenn, Steveice10
endif
# 3DS CONFIGURATION #
ifeq ($(TARGET),3DS)
LIBRARY_DIRS += $(DEVKITPRO)/libctru
LIBRARIES += citro3d ctru
BUILD_FLAGS += -DBACKEND_3DS
DESCRIPTION := (Super) GameBoy (Color) emulator.
PRODUCT_CODE := CTR-P-GYOB
UNIQUE_ID := 0xF8003
BANNER_AUDIO := meta/audio_3ds.wav
BANNER_IMAGE := meta/banner_3ds.cgfx
ICON := meta/icon_3ds.png
endif
# SWITCH CONFIGURATION #
ifeq ($(TARGET),SWITCH)
LIBRARY_DIRS += $(DEVKITPRO)/libnx
LIBRARIES += nx
BUILD_FLAGS += -DBACKEND_SWITCH
ICON := meta/icon_switch.png
endif
# INTERNAL #
include buildtools/make_base