Makefile.common 3.6 KB
Newer Older
Libretro-Admin's avatar
Libretro-Admin committed
1
2
LIBFLAC_DIR    = $(CORE_DIR)/deps/libFLAC

Libretro-Admin's avatar
Libretro-Admin committed
3
4
5
INCFLAGS   := \
	-I$(CORE_DIR) \
	-I$(CORE_DIR)/libretro-common/include \
Libretro-Admin's avatar
Libretro-Admin committed
6
7
	-I$(CORE_DIR)/include \
	-I$(LIBFLAC_DIR)/include
8
9

SOURCES_C :=  \
Libretro-Admin's avatar
Libretro-Admin committed
10
	$(CORE_DIR)/common/cl_input.c \
Libretro-Admin's avatar
Libretro-Admin committed
11
12
	$(CORE_DIR)/common/cd_common.c \
	$(CORE_DIR)/common/alias_model.c \
Libretro-Admin's avatar
Libretro-Admin committed
13
14
15
16
17
	$(CORE_DIR)/common/chase.c \
	$(CORE_DIR)/common/cl_demo.c \
	$(CORE_DIR)/common/cl_main.c \
	$(CORE_DIR)/common/cl_parse.c \
	$(CORE_DIR)/common/cl_tent.c \
Libretro-Admin's avatar
Libretro-Admin committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
	$(CORE_DIR)/common/common.c \
	$(CORE_DIR)/common/cmd.c \
	$(CORE_DIR)/common/crc.c \
	$(CORE_DIR)/common/console.c \
	$(CORE_DIR)/common/cvar.c \
	$(CORE_DIR)/common/d_edge.c \
	$(CORE_DIR)/common/d_fill.c \
	$(CORE_DIR)/common/d_init.c \
	$(CORE_DIR)/common/d_part.c \
	$(CORE_DIR)/common/d_modech.c \
	$(CORE_DIR)/common/d_polyse.c \
	$(CORE_DIR)/common/d_scan.c \
	$(CORE_DIR)/common/d_sky.c \
	$(CORE_DIR)/common/d_sprite.c \
	$(CORE_DIR)/common/d_surf.c \
	$(CORE_DIR)/common/d_vars.c \
	$(CORE_DIR)/common/draw.c \
Libretro-Admin's avatar
Libretro-Admin committed
35
36
	$(CORE_DIR)/common/host.c \
	$(CORE_DIR)/common/host_cmd.c \
Libretro-Admin's avatar
Libretro-Admin committed
37
38
	$(CORE_DIR)/common/keys.c \
	$(CORE_DIR)/common/mathlib.c \
Libretro-Admin's avatar
Libretro-Admin committed
39
	$(CORE_DIR)/common/menu.c \
Libretro-Admin's avatar
Libretro-Admin committed
40
	$(CORE_DIR)/common/model.c \
Libretro-Admin's avatar
Libretro-Admin committed
41
42
43
	$(CORE_DIR)/common/net_common.c \
	$(CORE_DIR)/common/net_loop.c \
	$(CORE_DIR)/common/net_main.c \
Libretro-Admin's avatar
Libretro-Admin committed
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
	$(CORE_DIR)/common/pr_cmds.c \
	$(CORE_DIR)/common/pr_exec.c \
	$(CORE_DIR)/common/pr_edict.c \
	$(CORE_DIR)/common/r_aclip.c \
	$(CORE_DIR)/common/r_alias.c \
	$(CORE_DIR)/common/r_bsp.c \
	$(CORE_DIR)/common/r_draw.c \
	$(CORE_DIR)/common/r_edge.c \
	$(CORE_DIR)/common/r_efrag.c \
	$(CORE_DIR)/common/r_light.c \
	$(CORE_DIR)/common/r_main.c \
	$(CORE_DIR)/common/r_misc.c \
	$(CORE_DIR)/common/r_model.c \
	$(CORE_DIR)/common/r_part.c \
	$(CORE_DIR)/common/r_sky.c \
	$(CORE_DIR)/common/r_sprite.c \
	$(CORE_DIR)/common/r_vars.c \
	$(CORE_DIR)/common/r_surf.c \
	$(CORE_DIR)/common/rb_tree.c \
Libretro-Admin's avatar
Libretro-Admin committed
63
	$(CORE_DIR)/common/sbar.c \
Libretro-Admin's avatar
Libretro-Admin committed
64
65
	$(CORE_DIR)/common/screen.c \
	$(CORE_DIR)/common/shell.c \
66
	$(CORE_DIR)/common/bgmusic.c \
67
68
69
70
71
72
73
74
75
76
    $(CORE_DIR)/common/snd_codec.c \
    $(CORE_DIR)/common/snd_flac.c \
    $(CORE_DIR)/common/snd_mikmod.c \
    $(CORE_DIR)/common/snd_modplug.c \
    $(CORE_DIR)/common/snd_mp3.c \
    $(CORE_DIR)/common/snd_mpg123.c \
    $(CORE_DIR)/common/snd_opus.c \
    $(CORE_DIR)/common/snd_umx.c \
    $(CORE_DIR)/common/snd_vorbis.c \
    $(CORE_DIR)/common/snd_wave.c \
Libretro-Admin's avatar
Libretro-Admin committed
77
78
79
80
	$(CORE_DIR)/common/snd_dma.c \
	$(CORE_DIR)/common/snd_mem.c \
	$(CORE_DIR)/common/snd_mix.c \
	$(CORE_DIR)/common/sprite_model.c \
Libretro-Admin's avatar
Libretro-Admin committed
81
	$(CORE_DIR)/common/sv_main.c \
Libretro-Admin's avatar
Libretro-Admin committed
82
	$(CORE_DIR)/common/sv_move.c \
Libretro-Admin's avatar
Libretro-Admin committed
83
84
	$(CORE_DIR)/common/sv_phys.c \
	$(CORE_DIR)/common/sv_user.c \
85
	$(CORE_DIR)/common/libretro.c \
Libretro-Admin's avatar
Libretro-Admin committed
86
	$(CORE_DIR)/common/view.c \
Libretro-Admin's avatar
Libretro-Admin committed
87
88
89
	$(CORE_DIR)/common/wad.c \
	$(CORE_DIR)/common/zone.c \
	$(CORE_DIR)/common/world.c
Libretro-Admin's avatar
Libretro-Admin committed
90

91
ifneq ($(STATIC_LINKING),1)
Libretro-Admin's avatar
Libretro-Admin committed
92
93
94
	SOURCES_C += \
					 $(CORE_DIR)/libretro-common/file/retro_dirent.c \
					 $(CORE_DIR)/libretro-common/file/retro_stat.c
95
96
endif

Libretro-Admin's avatar
Libretro-Admin committed
97
SOURCES_C += $(CORE_DIR)/common/net_none.c
Libretro-Admin's avatar
Libretro-Admin committed
98

99
ifeq ($(USE_CODEC_FLAC),1)
Libretro-Admin's avatar
Libretro-Admin committed
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
SOURCES_C += $(LIBFLAC_DIR)/bitmath.c \
				 $(LIBFLAC_DIR)/bitreader.c \
				 $(LIBFLAC_DIR)/cpu.c \
				 $(LIBFLAC_DIR)/crc.c \
				 $(LIBFLAC_DIR)/fixed.c \
				 $(LIBFLAC_DIR)/float.c \
				 $(LIBFLAC_DIR)/format.c \
				 $(LIBFLAC_DIR)/lpc.c \
				 $(LIBFLAC_DIR)/md5.c \
				 $(LIBFLAC_DIR)/memory.c \
				 $(LIBFLAC_DIR)/metadata_iterators.c \
				 $(LIBFLAC_DIR)/metadata_object.c \
				 $(LIBFLAC_DIR)/ogg_decoder_aspect.c \
				 $(LIBFLAC_DIR)/ogg_encoder_aspect.c \
				 $(LIBFLAC_DIR)/ogg_helper.c \
				 $(LIBFLAC_DIR)/ogg_mapping.c \
				 $(LIBFLAC_DIR)/stream_decoder.c \
				 $(LIBFLAC_DIR)/stream_encoder.c \
				 $(LIBFLAC_DIR)/stream_encoder_framing.c \
				 $(LIBFLAC_DIR)/window.c
120
endif