Enable CELT for GCC makefiles

This commit is contained in:
bnnm 2018-08-12 23:00:13 +02:00
parent f36f71a806
commit 9c6b679f1c
4 changed files with 28 additions and 1 deletions

View File

@ -87,6 +87,13 @@ ifeq ($(VGM_ENABLE_ATRAC9),1)
TARGET_EXT_LIBS += libatrac9.a
endif
VGM_ENABLE_CELT = 1
ifeq ($(VGM_ENABLE_CELT),1)
CFLAGS += -DVGM_USE_CELT
LDFLAGS += -lcelt-0061 -lcelt-0110
TARGET_EXT_LIBS += libcelt-0061.a libcelt-0110.a
endif
endif #if WIN32
export CFLAGS LDFLAGS

View File

@ -35,7 +35,13 @@ libswresample.a: swresample-vgmstream-3.dll swresample-vgmstream-3.def
libatrac9.a: libatrac9.dll libatrac9.def
$(DLLTOOL) -D libatrac9.dll -d libatrac9.def -l libatrac9.a
libcelt-0061.a: libcelt-0061.dll libcelt-0061.def
$(DLLTOOL) -D libcelt-0061.dll -d libcelt-0061.def -l libcelt-0061.a
libcelt-0110.a: libcelt-0110.dll libcelt-0110.def
$(DLLTOOL) -D libcelt-0110.dll -d libcelt-0110.def -l libcelt-0110.a
clean:
$(RMF) libvorbis.a libmpg123-0.a libg7221_decode.a libg719_decode.a libavcodec.a libavformat.a libavutil.a libswresample.a libatrac9.a
$(RMF) libvorbis.a libmpg123-0.a libg7221_decode.a libg719_decode.a libavcodec.a libavformat.a libavutil.a libswresample.a libatrac9.a libcelt-0061.a libcelt-0110.a
.PHONY: clean

View File

@ -71,6 +71,13 @@ ifeq ($(VGM_ENABLE_ATRAC9),1)
TARGET_EXT_LIBS += libatrac9.a
endif
VGM_ENABLE_CELT = 1
ifeq ($(VGM_ENABLE_CELT),1)
CFLAGS += -DVGM_USE_CELT
LDFLAGS += -lcelt-0061 -lcelt-0110
TARGET_EXT_LIBS += libcelt-0061.a libcelt-0110.a
endif
endif #if WIN32
export CFLAGS LDFLAGS

View File

@ -71,6 +71,13 @@ ifeq ($(VGM_ENABLE_ATRAC9),1)
TARGET_EXT_LIBS += libatrac9.a
endif
VGM_ENABLE_CELT = 1
ifeq ($(VGM_ENABLE_CELT),1)
CFLAGS += -DVGM_USE_CELT
LDFLAGS += -lcelt-0061 -lcelt-0110
TARGET_EXT_LIBS += libcelt-0061.a libcelt-0110.a
endif
endif #if WIN32
export CFLAGS LDFLAGS