2022-08-27 03:36:44 +00:00
|
|
|
|
|
|
|
MINIAUDIO_REAL_SRCS := \
|
|
|
|
audio.cpp \
|
|
|
|
miniaudio_impl.cpp
|
|
|
|
|
|
|
|
MINIAUDIO_STUB_SRCS := \
|
|
|
|
stub_audio.cpp
|
|
|
|
|
|
|
|
# We always produce both lists so that `make clean` will clean them up even
|
|
|
|
# when not passed a paticular DEP_* flag
|
|
|
|
MINIAUDIO_REAL_OBJS := $(patsubst %.cpp,$(PATH_INTERNAL_C)/parts/audio/%.o,$(MINIAUDIO_REAL_SRCS))
|
|
|
|
|
|
|
|
MINIAUDIO_STUB_OBJS := $(patsubst %.cpp,$(PATH_INTERNAL_C)/parts/audio/%.o,$(MINIAUDIO_STUB_SRCS))
|
|
|
|
|
2022-08-26 15:32:30 +00:00
|
|
|
ifdef DEP_AUDIO_MINIAUDIO
|
2022-08-31 01:29:33 +00:00
|
|
|
MINIAUDIO_OBJS := $(MINIAUDIO_REAL_OBJS) $(MA_VTABLES_OBJS) $(LIBXMP_LIB)
|
|
|
|
|
|
|
|
ifdef DEP_AUDIO_DECODE_MIDI
|
|
|
|
MINIAUDIO_OBJS += $(MIDI_MA_VTABLES_OBJS)
|
|
|
|
else
|
|
|
|
MINIAUDIO_OBJS += $(MIDI_MA_VTABLES_STUB_OBJS)
|
|
|
|
endif
|
|
|
|
|
2022-08-26 15:15:16 +00:00
|
|
|
else
|
2022-08-27 03:36:44 +00:00
|
|
|
MINIAUDIO_OBJS := $(MINIAUDIO_STUB_OBJS)
|
2022-08-26 15:15:16 +00:00
|
|
|
endif
|
|
|
|
|
2022-09-17 03:28:25 +00:00
|
|
|
# DEPENDENCY_CONSOLE_ONLY is added here to keep these .cpp files from including
|
|
|
|
# the FreeGLUT headers via `libqb.h`. Ideally this is fixed properly in the future.
|
2022-08-26 15:15:16 +00:00
|
|
|
$(PATH_INTERNAL_C)/parts/audio/%.o: $(PATH_INTERNAL_C)/parts/audio/%.cpp
|
2022-09-17 03:28:25 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -DDEPENDENCY_CONSOLE_ONLY -Wall $< -c -o $@
|
2022-08-26 15:15:16 +00:00
|
|
|
|
2022-08-27 03:36:44 +00:00
|
|
|
CLEAN_LIST += $(MINIAUDIO_REAL_OBJS) $(MINIAUDIO_STUB_OBJS)
|