mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-08 12:20:15 +00:00
58 lines
1.9 KiB
Makefile
58 lines
1.9 KiB
Makefile
|
|
MINIAUDIO_REAL_SRCS := \
|
|
audio.cpp \
|
|
miniaudio_impl.cpp
|
|
|
|
MINIAUDIO_REAL_EXTRAS_SRCS := \
|
|
extras/libxmp-lite/common.c \
|
|
extras/libxmp-lite/control.c \
|
|
extras/libxmp-lite/dataio.c \
|
|
extras/libxmp-lite/effects.c \
|
|
extras/libxmp-lite/filter.c \
|
|
extras/libxmp-lite/format.c \
|
|
extras/libxmp-lite/hio.c \
|
|
extras/libxmp-lite/it_load.c \
|
|
extras/libxmp-lite/itsex.c \
|
|
extras/libxmp-lite/lfo.c \
|
|
extras/libxmp-lite/load.c \
|
|
extras/libxmp-lite/load_helpers.c \
|
|
extras/libxmp-lite/md5.c \
|
|
extras/libxmp-lite/memio.c \
|
|
extras/libxmp-lite/misc.c \
|
|
extras/libxmp-lite/mix_all.c \
|
|
extras/libxmp-lite/mixer.c \
|
|
extras/libxmp-lite/mod_load.c \
|
|
extras/libxmp-lite/period.c \
|
|
extras/libxmp-lite/player.c \
|
|
extras/libxmp-lite/read_event.c \
|
|
extras/libxmp-lite/s3m_load.c \
|
|
extras/libxmp-lite/sample.c \
|
|
extras/libxmp-lite/scan.c \
|
|
extras/libxmp-lite/smix.c \
|
|
extras/libxmp-lite/virtual.c \
|
|
extras/libxmp-lite/win32.c \
|
|
extras/libxmp-lite/xm_load.c
|
|
|
|
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_REAL_OBJS += $(patsubst %.c,$(PATH_INTERNAL_C)/parts/audio/%.o,$(MINIAUDIO_REAL_EXTRAS_SRCS))
|
|
|
|
MINIAUDIO_STUB_OBJS := $(patsubst %.cpp,$(PATH_INTERNAL_C)/parts/audio/%.o,$(MINIAUDIO_STUB_SRCS))
|
|
|
|
ifdef DEP_AUDIO_MINIAUDIO
|
|
MINIAUDIO_OBJS := $(MINIAUDIO_REAL_OBJS)
|
|
else
|
|
MINIAUDIO_OBJS := $(MINIAUDIO_STUB_OBJS)
|
|
endif
|
|
|
|
$(PATH_INTERNAL_C)/parts/audio/%.o: $(PATH_INTERNAL_C)/parts/audio/%.cpp
|
|
$(CXX) $(CXXFLAGS) -Wall $< -c -o $@
|
|
|
|
$(PATH_INTERNAL_C)/parts/audio/extras/libxmp-lite/%.o: $(PATH_INTERNAL_C)/parts/audio/extras/libxmp-lite/%.c
|
|
$(CC) $(CFLAGS) -Wall -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC $< -c -o $@
|
|
|
|
CLEAN_LIST += $(MINIAUDIO_REAL_OBJS) $(MINIAUDIO_STUB_OBJS)
|