genode/repos/libports/lib/mk/sdl_mixer.mk
Norman Feske 366bba0227 Exclude higher-level repos from strict warnings
This is a follow-up commit to "Increase default warning level", which
overrides Genode's new default warning level for targets contained in
higher-level repositories. By explicitly whitelisting all those targets,
we can selectively adjust them to the new strictness over time - by
looking out for 'CC_CXX_WARN_STRICT' in the target description files.

Issue #465
2018-01-17 12:14:36 +01:00

23 lines
648 B
Makefile

SDL_MIXER_PORT_DIR := $(call select_from_ports,sdl_mixer)
# exclude example programs
FILTER_OUT = playmus.c playwave.c
ALL_SDL_MIXER_SRC_C = $(notdir $(wildcard $(SDL_MIXER_PORT_DIR)/src/lib/sdl_mixer/*.c))
SRC_C = $(filter-out $(FILTER_OUT), $(ALL_SDL_MIXER_SRC_C))
LIBS += libc libm sdl
# suppress warnings of 3rd-party code
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
vpath %.c $(SDL_MIXER_PORT_DIR)/src/lib/sdl_mixer
SHARED_LIB = yes
CC_CXX_WARN_STRICT =