-
Notifications
You must be signed in to change notification settings - Fork 43
/
Makefile.common
103 lines (84 loc) · 2.6 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
SOURCES_CXX :=
SOURCES_C :=
MEDNAFEN_DIR := $(CORE_DIR)/mednafen
CORE_EMU_DIR := $(MEDNAFEN_DIR)/ngp
LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro-common
INCFLAGS := -I$(CORE_DIR) -I$(MEDNAFEN_DIR) -I$(MEDNAFEN_DIR)/include -I$(MEDNAFEN_DIR)/intl -I$(MEDNAFEN_DIR)/hw_sound -I$(MEDNAFEN_DIR)/hw_cpu -I$(MEDNAFEN_DIR)/hw_misc -I$(LIBRETRO_COMM_DIR)/include
ifneq (,$(findstring msvc2003,$(platform)))
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
endif
ifneq ($(HAVE_GRIFFIN),1)
SOURCES_CXX += \
$(CORE_EMU_DIR)/sound.cpp \
$(CORE_EMU_DIR)/T6W28_Apu.cpp
SOURCES_C += \
$(CORE_EMU_DIR)/biosHLE.c \
$(CORE_EMU_DIR)/bios.c \
$(CORE_EMU_DIR)/flash.c \
$(CORE_EMU_DIR)/dma.c \
$(CORE_EMU_DIR)/gfx.c \
$(CORE_EMU_DIR)/interrupt.c \
$(CORE_EMU_DIR)/mem.c \
$(CORE_EMU_DIR)/rom.c \
$(CORE_EMU_DIR)/system.c \
$(CORE_EMU_DIR)/TLCS-900h/TLCS900h_interpret.c \
$(CORE_EMU_DIR)/TLCS-900h/TLCS900h_interpret_dst.c \
$(CORE_EMU_DIR)/TLCS-900h/TLCS900h_interpret_reg.c \
$(CORE_EMU_DIR)/TLCS-900h/TLCS900h_interpret_single.c \
$(CORE_EMU_DIR)/TLCS-900h/TLCS900h_interpret_src.c \
$(CORE_EMU_DIR)/TLCS-900h/TLCS900h_registers.c \
$(MEDNAFEN_DIR)/hw_cpu/z80-fuse/z80_ops.c \
$(MEDNAFEN_DIR)/hw_cpu/z80-fuse/z80.c \
$(CORE_EMU_DIR)/rtc.c \
$(CORE_EMU_DIR)/Z80_interface.c
endif
ifeq ($(NEED_BLIP), 1)
SOURCES_CXX += $(MEDNAFEN_DIR)/sound/Blip_Buffer.cpp
endif
ifeq ($(HAVE_HES), 1)
SOURCES_CXX += $(CORE_EMU_DIR)/hes.cpp
endif
ifeq ($(NEED_THREADING), 1)
FLAGS += -DWANT_THREADING
SOURCES_C += $(CORE_DIR)/threads.c
endif
ifeq ($(NEED_DEINTERLACER), 1)
FLAGS += -DNEED_DEINTERLACER
endif
ifeq ($(NEED_BPP), 8)
FLAGS += -DWANT_8BPP
endif
ifeq ($(NEED_BPP), 16)
FLAGS += -DWANT_16BPP
endif
ifeq ($(NEED_BPP), 32)
FLAGS += -DWANT_32BPP
endif
ifeq ($(NO_COMPUTED_GOTO), 1)
FLAGS += -DNO_COMPUTED_GOTO
endif
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
FLAGS += -DFRONTEND_SUPPORTS_RGB565
endif
ifneq ($(HAVE_GRIFFIN), 1)
SOURCES_CXX += \
$(MEDNAFEN_DIR)/mempatcher.cpp \
$(MEDNAFEN_DIR)/sound/Stereo_Buffer.cpp \
SOURCES_C += \
$(MEDNAFEN_DIR)/state.c \
$(CORE_DIR)/libretro.c
ifneq ($(STATIC_LINKING), 1)
SOURCES_C += \
$(LIBRETRO_COMM_DIR)/streams/file_stream.c \
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
$(LIBRETRO_COMM_DIR)/compat/compat_snprintf.c \
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \
$(LIBRETRO_COMM_DIR)/file/file_path.c \
$(LIBRETRO_COMM_DIR)/time/rtime.c \
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c
endif
SOURCES_C += $(MEDNAFEN_DIR)/settings.c
endif