-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile.common
34 lines (30 loc) · 1.1 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
INCFLAGS :=
LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro-common
ifneq (,$(findstring msvc2003,$(platform)))
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
endif
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include
# We compile only for 32-bit and 16-bit platforms and in both cases
# int is 4 bytes. We dont support 16-bit
CFLAGS += -DSIZEOF_INT=4
SOURCES_C := \
$(CORE_DIR)/libretro.c \
$(CORE_DIR)/platform.c \
$(wildcard $(CORE_DIR)/libmad/*.c) \
$(wildcard $(CORE_DIR)/zip/*.c) \
$(wildcard $(CORE_DIR)/zip/zlib/*.c)
ifneq ($(STATIC_LINKING),1)
SOURCES_C += \
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
$(LIBRETRO_COMM_DIR)/file/file_path.c \
$(LIBRETRO_COMM_DIR)/file/file_path_io.c \
$(LIBRETRO_COMM_DIR)/time/rtime.c \
$(LIBRETRO_COMM_DIR)/streams/file_stream.c \
$(LIBRETRO_COMM_DIR)/streams/file_stream_transforms.c \
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c
endif