-
Notifications
You must be signed in to change notification settings - Fork 61
/
Makefile.common
116 lines (104 loc) · 4.44 KB
/
Makefile.common
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro-common
AI_DIR := $(CORE_DIR)/ai
SOURCES_C := $(CORE_DIR)/mrboom.c $(CORE_DIR)/mrboom_data.c
ifeq ($(HAVE_NEON),1)
SOURCES_ASM := $(LIBRETRO_COMM_DIR)/audio/conversion/float_to_s16_neon.S \
$(LIBRETRO_COMM_DIR)/audio/resampler/drivers/sinc_resampler_neon.S \
$(LIBRETRO_COMM_DIR)/audio/conversion/s16_to_float_neon.S
endif
INCFLAGS := -I$(LIBRETRO_COMM_DIR)/include \
-I$(LIBRETRO_COMM_DIR) \
-I$(AI_DIR) \
-I$(CORE_DIR)
ifneq (,$(findstring msvc2003,$(platform)))
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
endif
SOURCES_CXX := $(CORE_DIR)/common.cpp \
$(AI_DIR)/BotTree.cpp \
$(AI_DIR)/Bot.cpp \
$(AI_DIR)/GridFunctions.cpp \
$(AI_DIR)/MrboomHelper.cpp
ifneq ($(LIBSDL2),)
SOURCES_CXX += $(CORE_DIR)/sdl2/sdl2.cpp \
$(CORE_DIR)/sdl2/xBRZ/xbrz.cpp
else
ifneq ($(LIBSDL),)
SOURCES_CXX += $(CORE_DIR)/sdl/sdl.cpp
# SOURCES_C += minizip/unzip.c minizip/ioapi.c
else
SOURCES_CXX += $(CORE_DIR)/libretro/retro.cpp
INCFLAGS += -I$(CORE_DIR)/libretro
endif
endif
ifeq ($(STATIC_LINKING), 1)
ifeq ($(platform), ctr)
SOURCES_C += $(LIBRETRO_COMM_DIR)/audio/audio_mixer.c
endif
ifeq ($(platform), psl1ght)
SOURCES_C += $(LIBRETRO_COMM_DIR)/audio/audio_mixer.c
endif
else
ifeq ($(LIBSDL),)
SOURCES_C += $(LIBRETRO_COMM_DIR)/file/file_path.c \
$(LIBRETRO_COMM_DIR)/file/file_path_io.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
$(LIBRETRO_COMM_DIR)/compat/compat_snprintf.c \
$(LIBRETRO_COMM_DIR)/streams/file_stream.c \
$(LIBRETRO_COMM_DIR)/streams/memory_stream.c \
$(LIBRETRO_COMM_DIR)/lists/string_list.c \
$(LIBRETRO_COMM_DIR)/memmap/memalign.c \
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \
$(LIBRETRO_COMM_DIR)/net/net_http.c \
$(LIBRETRO_COMM_DIR)/net/net_compat.c \
$(LIBRETRO_COMM_DIR)/net/net_socket.c \
$(LIBRETRO_COMM_DIR)/time/rtime.c $(LIBRETRO_COMM_DIR)/features/features_cpu.c
endif
ifeq ($(LIBSDL2),)
ifeq ($(LIBSDL),)
SOURCES_C += $(LIBRETRO_COMM_DIR)/audio/audio_mixer.c \
$(LIBRETRO_COMM_DIR)/audio/resampler/audio_resampler.c \
$(LIBRETRO_COMM_DIR)/file/config_file_userdata.c \
$(LIBRETRO_COMM_DIR)/file/config_file.c \
$(LIBRETRO_COMM_DIR)/audio/resampler/drivers/nearest_resampler.c \
$(LIBRETRO_COMM_DIR)/audio/resampler/drivers/sinc_resampler.c \
$(LIBRETRO_COMM_DIR)/formats/wav/rwav.c \
$(LIBRETRO_COMM_DIR)/audio/audio_mix.c \
$(LIBRETRO_COMM_DIR)/audio/conversion/s16_to_float.c \
$(LIBRETRO_COMM_DIR)/audio/conversion/float_to_s16.c \
$(CORE_DIR)/libretro/ibxm/ibxm.c
INCFLAGS += -I$(CORE_DIR)/libretro/ibxm
endif
endif
endif
ifeq ($(WANT_BPP), 32)
INCFLAGS += -DWANT_BPP32
else
INCFLAGS += -DWANT_BPP16
endif
ifneq ($(STATETESTS),)
SOURCES_CXX += $(CORE_DIR)/tools/tests/tests.cpp \
$(CORE_DIR)/sdl2/xBRZ/xbrz.cpp
SOURCES_C += $(LIBRETRO_COMM_DIR)/formats/bmp/rbmp_encode.c \
$(LIBRETRO_COMM_DIR)/encodings/encoding_crc32.c
INCFLAGS += -DSTATETESTS
endif
ifneq ($(SCREENSHOTS),)
SOURCES_CXX += $(CORE_DIR)/tools/tests/tests.cpp \
$(CORE_DIR)/sdl2/xBRZ/xbrz.cpp
SOURCES_C += $(LIBRETRO_COMM_DIR)/formats/bmp/rbmp_encode.c \
$(LIBRETRO_COMM_DIR)/encodings/encoding_crc32.c
INCFLAGS += -DSCREENSHOTS
endif
ifneq ($(FPS),)
SOURCES_CXX += $(CORE_DIR)/tools/tests/tests.cpp
INCFLAGS += -DFPS
endif
ifneq ($(UNITTESTS),)
SOURCES_CXX += $(CORE_DIR)/tools/tests/unittests/tests-main.cpp \
$(CORE_DIR)/tools/tests/unittests/tests-MrboomHelper.cpp
endif