2014-05-07 21:52:52 +00:00
|
|
|
SDL_MIXER_PORT_DIR := $(call select_from_ports,sdl_mixer)
|
2013-03-29 14:42:19 +00:00
|
|
|
|
|
|
|
# exclude example programs
|
|
|
|
FILTER_OUT = playmus.c playwave.c
|
|
|
|
|
2014-05-07 21:52:52 +00:00
|
|
|
ALL_SDL_MIXER_SRC_C = $(notdir $(wildcard $(SDL_MIXER_PORT_DIR)/src/lib/sdl_mixer/*.c))
|
2013-03-29 14:42:19 +00:00
|
|
|
|
|
|
|
SRC_C = $(filter-out $(FILTER_OUT), $(ALL_SDL_MIXER_SRC_C))
|
|
|
|
|
|
|
|
LIBS += libc libm sdl
|
|
|
|
|
|
|
|
# suppress warnings of 3rd-party code
|
2017-11-29 09:52:24 +00:00
|
|
|
CC_OPT_music = -Wno-unused-label -Wno-unused-function
|
|
|
|
CC_OPT_load_aiff = -Wno-unused-but-set-variable
|
|
|
|
CC_OPT_wavestream = -Wno-unused-but-set-variable
|
|
|
|
CC_OPT_effect_position = -Wno-misleading-indentation
|
2013-03-29 14:42:19 +00:00
|
|
|
|
2014-05-07 21:52:52 +00:00
|
|
|
vpath %.c $(SDL_MIXER_PORT_DIR)/src/lib/sdl_mixer
|
2013-03-29 14:42:19 +00:00
|
|
|
|
|
|
|
SHARED_LIB = yes
|