Makefile.common 4.62 KB
Newer Older
Libretro-Admin's avatar
Libretro-Admin committed
1
LIBFLAC_DIR    = $(CORE_DIR)/deps/libFLAC
Libretro-Admin's avatar
Libretro-Admin committed
2
LIBVORBIS_DIR  = $(CORE_DIR)/deps/libvorbis
3
LIBOGG_DIR     = $(CORE_DIR)/deps/libogg
Libretro-Admin's avatar
Libretro-Admin committed
4

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

SOURCES_C :=  \
Libretro-Admin's avatar
Libretro-Admin committed
11
	$(CORE_DIR)/common/cl_input.c \
Libretro-Admin's avatar
Libretro-Admin committed
12
13
	$(CORE_DIR)/common/cd_common.c \
	$(CORE_DIR)/common/alias_model.c \
Libretro-Admin's avatar
Libretro-Admin committed
14
15
16
17
18
	$(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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
	$(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
36
37
	$(CORE_DIR)/common/host.c \
	$(CORE_DIR)/common/host_cmd.c \
Libretro-Admin's avatar
Libretro-Admin committed
38
39
	$(CORE_DIR)/common/keys.c \
	$(CORE_DIR)/common/mathlib.c \
Libretro-Admin's avatar
Libretro-Admin committed
40
	$(CORE_DIR)/common/menu.c \
Libretro-Admin's avatar
Libretro-Admin committed
41
	$(CORE_DIR)/common/model.c \
Libretro-Admin's avatar
Libretro-Admin committed
42
43
44
	$(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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
	$(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
64
	$(CORE_DIR)/common/sbar.c \
Libretro-Admin's avatar
Libretro-Admin committed
65
66
	$(CORE_DIR)/common/screen.c \
	$(CORE_DIR)/common/shell.c \
67
	$(CORE_DIR)/common/bgmusic.c \
68
69
70
71
72
73
74
75
76
77
	$(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
78
79
80
81
	$(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
82
	$(CORE_DIR)/common/sv_main.c \
Libretro-Admin's avatar
Libretro-Admin committed
83
	$(CORE_DIR)/common/sv_move.c \
Libretro-Admin's avatar
Libretro-Admin committed
84
85
	$(CORE_DIR)/common/sv_phys.c \
	$(CORE_DIR)/common/sv_user.c \
86
	$(CORE_DIR)/common/libretro.c \
Libretro-Admin's avatar
Libretro-Admin committed
87
	$(CORE_DIR)/common/view.c \
Libretro-Admin's avatar
Libretro-Admin committed
88
89
90
	$(CORE_DIR)/common/wad.c \
	$(CORE_DIR)/common/zone.c \
	$(CORE_DIR)/common/world.c
Libretro-Admin's avatar
Libretro-Admin committed
91

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

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

100
ifeq ($(USE_CODEC_FLAC),1)
Libretro-Admin's avatar
Libretro-Admin committed
101
INCFLAGS  += -I$(LIBFLAC_DIR)/include
Libretro-Admin's avatar
Libretro-Admin committed
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
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
122
endif
Libretro-Admin's avatar
Libretro-Admin committed
123
124
125

ifeq ($(USE_CODEC_VORBIS),1)
INCFLAGS  += -I$(LIBVORBIS_DIR)/include \
126
127
128
				 -I$(LIBVORBIS_DIR)/lib \
				 -I$(LIBOGG_DIR)/include

Libretro-Admin's avatar
Libretro-Admin committed
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
SOURCES_C += $(LIBVORBIS_DIR)/lib/analysis.c \
				 $(LIBVORBIS_DIR)/lib/bitrate.c \
				 $(LIBVORBIS_DIR)/lib/block.c \
				 $(LIBVORBIS_DIR)/lib/codebook.c \
				 $(LIBVORBIS_DIR)/lib/envelope.c \
				 $(LIBVORBIS_DIR)/lib/floor0.c \
				 $(LIBVORBIS_DIR)/lib/floor1.c \
				 $(LIBVORBIS_DIR)/lib/info.c \
				 $(LIBVORBIS_DIR)/lib/lookup.c \
				 $(LIBVORBIS_DIR)/lib/lpc.c \
				 $(LIBVORBIS_DIR)/lib/mapping0.c \
				 $(LIBVORBIS_DIR)/lib/mdct.c \
				 $(LIBVORBIS_DIR)/lib/psy.c \
				 $(LIBVORBIS_DIR)/lib/registry.c \
				 $(LIBVORBIS_DIR)/lib/res0.c \
				 $(LIBVORBIS_DIR)/lib/smallft.c \
				 $(LIBVORBIS_DIR)/lib/synthesis.c \
				 $(LIBVORBIS_DIR)/lib/vorbisenc.c \
				 $(LIBVORBIS_DIR)/lib/vorbisfile.c \
				 $(LIBVORBIS_DIR)/lib/window.c
149
150
151

SOURCES_C += $(LIBOGG_DIR)/src/bitwise.c \
				 $(LIBOGG_DIR)/src/framing.c
Libretro-Admin's avatar
Libretro-Admin committed
152
endif