2016-09-07 23:03:51 +00:00
|
|
|
DEPS_DIR = $(ROOT_DIR)/deps
|
|
|
|
LIBRETRO_DIR = $(ROOT_DIR)/libretro
|
|
|
|
LIBRETRO_COMM_DIR = $(ROOT_DIR)/libretro/libretro-common
|
2014-11-02 16:18:56 +00:00
|
|
|
|
2017-07-01 00:24:34 +00:00
|
|
|
INCFLAGS = -I$(ROOT_DIR) -I$(CORE_DIR) -I$(DEPS_DIR)/libmad -I$(LIBRETRO_COMM_DIR)/include
|
|
|
|
|
2017-09-15 13:59:16 +00:00
|
|
|
ifneq (,$(findstring msvc2003,$(platform)))
|
|
|
|
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
|
|
|
|
endif
|
|
|
|
|
2017-07-04 13:15:08 +00:00
|
|
|
COREDEFINES = -D__LIBRETRO__ -DFPM_DEFAULT
|
|
|
|
|
|
|
|
ifneq (,$(findstring msvc,$(platform)))
|
|
|
|
COREDEFINES += -DINLINE="_inline"
|
|
|
|
else
|
|
|
|
COREDEFINES += -DINLINE="inline"
|
|
|
|
endif
|
2014-11-02 16:18:56 +00:00
|
|
|
|
2016-09-07 23:03:51 +00:00
|
|
|
SOURCES_C := $(LIBRETRO_DIR)/libretro.c \
|
|
|
|
$(LIBRETRO_DIR)/libretro_sound.c \
|
2018-04-25 14:54:43 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
|
2018-07-20 10:25:30 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_snprintf.c \
|
2018-04-25 14:54:43 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
|
2019-06-14 11:28:18 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
|
2018-04-25 14:54:43 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
|
2019-06-14 11:28:18 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \
|
2018-04-25 14:54:43 +00:00
|
|
|
$(LIBRETRO_COMM_DIR)/file/file_path.c
|
2016-09-07 23:03:51 +00:00
|
|
|
|
|
|
|
SOURCES_C += $(DEPS_DIR)/libmad/bit.c \
|
|
|
|
$(DEPS_DIR)/libmad/decoder.c \
|
|
|
|
$(DEPS_DIR)/libmad/fixed.c \
|
|
|
|
$(DEPS_DIR)/libmad/frame.c \
|
|
|
|
$(DEPS_DIR)/libmad/huffman.c \
|
|
|
|
$(DEPS_DIR)/libmad/layer3.c \
|
|
|
|
$(DEPS_DIR)/libmad/layer12.c \
|
|
|
|
$(DEPS_DIR)/libmad/stream.c \
|
|
|
|
$(DEPS_DIR)/libmad/synth.c \
|
|
|
|
$(DEPS_DIR)/libmad/timer.c
|
2014-11-02 16:18:56 +00:00
|
|
|
|
|
|
|
SOURCES_C += $(CORE_DIR)/am_map.c \
|
|
|
|
$(CORE_DIR)/d_deh.c \
|
|
|
|
$(CORE_DIR)/d_items.c \
|
|
|
|
$(CORE_DIR)/d_main.c \
|
|
|
|
$(CORE_DIR)/doomstat.c \
|
|
|
|
$(CORE_DIR)/dstrings.c \
|
|
|
|
$(CORE_DIR)/f_finale.c \
|
|
|
|
$(CORE_DIR)/f_wipe.c \
|
|
|
|
$(CORE_DIR)/g_game.c \
|
|
|
|
$(CORE_DIR)/hu_lib.c \
|
|
|
|
$(CORE_DIR)/hu_stuff.c \
|
|
|
|
$(CORE_DIR)/info.c \
|
|
|
|
$(CORE_DIR)/m_argv.c \
|
|
|
|
$(CORE_DIR)/m_bbox.c \
|
|
|
|
$(CORE_DIR)/m_cheat.c \
|
|
|
|
$(CORE_DIR)/m_menu.c \
|
|
|
|
$(CORE_DIR)/m_misc.c \
|
|
|
|
$(CORE_DIR)/m_random.c \
|
|
|
|
$(CORE_DIR)/p_ceilng.c \
|
|
|
|
$(CORE_DIR)/p_doors.c \
|
|
|
|
$(CORE_DIR)/p_enemy.c \
|
|
|
|
$(CORE_DIR)/p_floor.c \
|
|
|
|
$(CORE_DIR)/p_inter.c \
|
|
|
|
$(CORE_DIR)/p_lights.c \
|
|
|
|
$(CORE_DIR)/p_map.c \
|
|
|
|
$(CORE_DIR)/p_maputl.c \
|
|
|
|
$(CORE_DIR)/p_mobj.c \
|
|
|
|
$(CORE_DIR)/p_plats.c \
|
|
|
|
$(CORE_DIR)/p_pspr.c \
|
|
|
|
$(CORE_DIR)/p_saveg.c \
|
|
|
|
$(CORE_DIR)/p_setup.c \
|
|
|
|
$(CORE_DIR)/p_sight.c \
|
|
|
|
$(CORE_DIR)/p_spec.c \
|
|
|
|
$(CORE_DIR)/p_switch.c \
|
|
|
|
$(CORE_DIR)/p_telept.c \
|
|
|
|
$(CORE_DIR)/p_tick.c \
|
|
|
|
$(CORE_DIR)/p_user.c \
|
|
|
|
$(CORE_DIR)/r_bsp.c \
|
|
|
|
$(CORE_DIR)/r_data.c \
|
|
|
|
$(CORE_DIR)/r_draw.c \
|
|
|
|
$(CORE_DIR)/r_main.c \
|
|
|
|
$(CORE_DIR)/r_plane.c \
|
|
|
|
$(CORE_DIR)/r_segs.c \
|
|
|
|
$(CORE_DIR)/r_sky.c \
|
|
|
|
$(CORE_DIR)/r_things.c \
|
|
|
|
$(CORE_DIR)/r_patch.c \
|
|
|
|
$(CORE_DIR)/s_sound.c \
|
|
|
|
$(CORE_DIR)/sounds.c \
|
|
|
|
$(CORE_DIR)/st_lib.c \
|
|
|
|
$(CORE_DIR)/st_stuff.c \
|
|
|
|
$(CORE_DIR)/tables.c \
|
|
|
|
$(CORE_DIR)/v_video.c \
|
|
|
|
$(CORE_DIR)/w_wad.c \
|
|
|
|
$(CORE_DIR)/z_zone.c \
|
|
|
|
$(CORE_DIR)/w_memcache.c \
|
|
|
|
$(CORE_DIR)/r_fps.c \
|
|
|
|
$(CORE_DIR)/r_filter.c \
|
|
|
|
$(CORE_DIR)/p_genlin.c \
|
|
|
|
$(CORE_DIR)/r_demo.c \
|
|
|
|
$(CORE_DIR)/z_bmalloc.c \
|
|
|
|
$(CORE_DIR)/lprintf.c \
|
|
|
|
$(CORE_DIR)/wi_stuff.c \
|
|
|
|
$(CORE_DIR)/p_checksum.c \
|
|
|
|
$(CORE_DIR)/md5.c \
|
|
|
|
$(CORE_DIR)/d_client.c \
|
2019-06-01 00:03:51 +00:00
|
|
|
$(CORE_DIR)/memio.c \
|
|
|
|
$(CORE_DIR)/mus2mid.c \
|
2016-09-02 03:29:26 +00:00
|
|
|
$(CORE_DIR)/dbopl.c \
|
2016-09-02 03:34:18 +00:00
|
|
|
$(CORE_DIR)/opl.c \
|
|
|
|
$(CORE_DIR)/opl_queue.c \
|
2016-09-02 03:48:33 +00:00
|
|
|
$(CORE_DIR)/oplplayer.c \
|
2016-09-02 04:11:33 +00:00
|
|
|
$(CORE_DIR)/flplayer.c \
|
2016-09-02 03:48:33 +00:00
|
|
|
$(CORE_DIR)/midifile.c \
|
2014-11-02 16:18:56 +00:00
|
|
|
$(CORE_DIR)/madplayer.c
|
2016-09-02 23:40:51 +00:00
|
|
|
|
|
|
|
ifeq ($(WANT_FLUIDSYNTH), 1)
|
2016-09-07 23:03:51 +00:00
|
|
|
FLUIDSYNTH_DIR := $(DEPS_DIR)/fluidlite
|
2016-09-03 03:36:40 +00:00
|
|
|
LIBVORBIS_DIR := $(FLUIDSYNTH_DIR)/libvorbis-1.3.5
|
|
|
|
LIBOGG_DIR := $(FLUIDSYNTH_DIR)/libogg-1.3.2
|
2019-07-29 04:34:17 +00:00
|
|
|
INCFLAGS += -I$(FLUIDSYNTH_DIR)/include -I$(DEPS_DIR)/fluidsynth/include -I$(LIBVORBIS_DIR)/include -I$(LIBOGG_DIR)/include
|
2016-09-02 23:40:51 +00:00
|
|
|
|
2016-09-03 03:36:40 +00:00
|
|
|
SOURCES_C += $(FLUIDSYNTH_DIR)/src/fluid_chan.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_chorus.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_conv.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_defsfont.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_dsp_float.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_gen.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_hash.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_list.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_mod.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_ramsfont.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_rev.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_settings.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_synth.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_sys.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_tuning.c \
|
|
|
|
$(FLUIDSYNTH_DIR)/src/fluid_voice.c
|
|
|
|
|
|
|
|
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/lsp.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/sharedbook.c \
|
|
|
|
$(LIBVORBIS_DIR)/lib/smallft.c \
|
|
|
|
$(LIBVORBIS_DIR)/lib/synthesis.c \
|
|
|
|
$(LIBVORBIS_DIR)/lib/vorbisfile.c \
|
|
|
|
$(LIBVORBIS_DIR)/lib/window.c
|
|
|
|
|
|
|
|
SOURCES_C += $(LIBOGG_DIR)/src/bitwise.c \
|
|
|
|
$(LIBOGG_DIR)/src/framing.c
|
2016-09-02 23:40:51 +00:00
|
|
|
endif
|
2019-09-12 21:39:58 +00:00
|
|
|
|
|
|
|
# The custom memory allocation system should be used consistently across the core
|
|
|
|
# See https://doom.fandom.com/wiki/Zone_memory
|
|
|
|
INCFLAGS += -include z_zone.h
|