Fix up some dodgy makefiles.

This commit is contained in:
Shpoike 2021-09-06 12:40:03 +01:00
parent 8b676fcb73
commit c48c4f2641
2 changed files with 5 additions and 6 deletions

View file

@ -107,11 +107,11 @@ $(error Invalid MP3LIB setting)
endif endif
endif endif
ifeq ($(MP3LIB),mad) ifeq ($(MP3LIB),mad)
mp3_obj=snd_mp3 mp3_obj=snd_mp3.o snd_mp3tag.o
lib_mp3dec=-lmad lib_mp3dec=-lmad
endif endif
ifeq ($(MP3LIB),mpg123) ifeq ($(MP3LIB),mpg123)
mp3_obj=snd_mpg123 mp3_obj=snd_mpg123.o snd_mp3tag.o
lib_mp3dec=-lmpg123 lib_mp3dec=-lmpg123
endif endif
ifeq ($(VORBISLIB),vorbis) ifeq ($(VORBISLIB),vorbis)
@ -204,8 +204,7 @@ MUSIC_OBJS:= bgmusic.o \
snd_wave.o \ snd_wave.o \
snd_vorbis.o \ snd_vorbis.o \
snd_opus.o \ snd_opus.o \
$(mp3_obj).o \ $(mp3_obj) \
snd_mp3tag.o \
snd_mikmod.o \ snd_mikmod.o \
snd_xmp.o \ snd_xmp.o \
snd_umx.o snd_umx.o

View file

@ -105,11 +105,11 @@ $(error Invalid MP3LIB setting)
endif endif
endif endif
ifeq ($(MP3LIB),mad) ifeq ($(MP3LIB),mad)
mp3_obj=snd_mp3.o mp3_obj=snd_mp3.o snd_mp3tag.o
lib_mp3dec=-lmad lib_mp3dec=-lmad
endif endif
ifeq ($(MP3LIB),mpg123) ifeq ($(MP3LIB),mpg123)
mp3_obj=snd_mpg123.o mp3_obj=snd_mpg123.o snd_mp3tag.o
lib_mp3dec=-lmpg123 lib_mp3dec=-lmpg123
endif endif
ifeq ($(VORBISLIB),vorbis) ifeq ($(VORBISLIB),vorbis)