# HG changeset patch # User diego # Date 1139241857 0 # Node ID bb1ab9250f0531a9d2e08dc5c437dcee37f2a8ac # Parent 7276f4623d2a3a59830382bac45a485e7b187c57 Build muxers only when MEncoder is enabled. diff -r 7276f4623d2a -r bb1ab9250f05 libmpdemux/Makefile --- a/libmpdemux/Makefile Sun Feb 05 14:53:08 2006 +0000 +++ b/libmpdemux/Makefile Mon Feb 06 16:04:17 2006 +0000 @@ -101,7 +101,7 @@ endif # Muxers -SRCS += muxer.c \ +MUXERS = muxer.c \ muxer_avi.c \ muxer_mpeg.c \ muxer_rawaudio.c \ @@ -116,12 +116,12 @@ endif ifeq ($(CONFIG_LIBAVFORMAT),yes) LIBAV_INC += -I../libavformat -SRCS += demux_lavf.c \ - muxer_lavf.c +SRCS += demux_lavf.c +MUXERS += muxer_lavf.c endif ifeq ($(CONFIG_LIBAVFORMAT_SO),yes) -SRCS += demux_lavf.c \ - muxer_lavf.c +SRCS += demux_lavf.c +MUXERS += muxer_lavf.c endif ifeq ($(MPLAYER_NETWORK),yes) @@ -152,6 +152,10 @@ SRCS += dvb_tune.c endif +ifeq ($(MENCODER),yes) +SRCS += $(MUXERS) +endif + OBJS = $(SRCS:.c=.o) OBJS += $(CPLUSPLUSSRCS:.cpp=.o) INCLUDE = -I.. -I../loader $(CSS_INC) $(EXTRA_INC) $(LIBAV_INC)