summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-01-31 23:45:46 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-01-31 23:45:46 +0000
commitaa18e3de576f0c7b4cbb2a17f3068c581a02841a (patch)
treed997c1aec73cc0102b26800006b566d4ebee06f7 /libmpcodecs
parent872a28cc57bf3d9dcb6fcb4816a583f87983f022 (diff)
downloadmpv-aa18e3de576f0c7b4cbb2a17f3068c581a02841a.tar.bz2
mpv-aa18e3de576f0c7b4cbb2a17f3068c581a02841a.tar.xz
Only compile libmpencoders if MEncoder has been enabled.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17525 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/libmpcodecs/Makefile b/libmpcodecs/Makefile
index 7839afe6f1..954ba40ab6 100644
--- a/libmpcodecs/Makefile
+++ b/libmpcodecs/Makefile
@@ -4,6 +4,11 @@ include ../config.mak
LIBNAME = libmpcodecs.a
LIBNAME2 = libmpencoders.a
+LIBS =$(LIBNAME)
+ifeq ($(MENCODER),yes)
+LIBS+=$(LIBNAME2)
+endif
+
AUDIO_SRCS_LIB=ad_hwac3.c \
ad_liba52.c \
ad_mp3lib.c \
@@ -276,7 +281,7 @@ CFLAGS = $(OPTFLAGS) \
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<
-all: $(LIBNAME) $(LIBNAME2)
+all: $(LIBS)
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)