1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00
mpv/mpcommon.mak
cehoyos e38e4637f6 Revert r22819
Fix to compile libvo/vo_xvmc.c is no longer needed after FFmpeg r8527.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22832 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-26 22:03:43 +00:00

38 lines
1.0 KiB
Makefile

SRCS_COMMON += $(SRCS_COMMON-yes)
SRCS_MPLAYER += $(SRCS_MPLAYER-yes)
SRCS_MENCODER += $(SRCS_MENCODER-yes)
OBJS_COMMON = $(addsuffix .o, $(basename $(SRCS_COMMON)) )
OBJS_MPLAYER = $(addsuffix .o, $(basename $(SRCS_MPLAYER)) )
OBJS_MENCODER = $(addsuffix .o, $(basename $(SRCS_MENCODER)) )
CFLAGS-$(CONFIG_LIBAVCODEC) += -I../libavcodec
CFLAGS-$(CONFIG_LIBAVFORMAT) += -I../libavformat
CFLAGS += $(CFLAGS-yes) $(OPTFLAGS)
LIBS-$(MPLAYER) += $(LIBNAME_MPLAYER)
LIBS-$(MENCODER) += $(LIBNAME_MENCODER)
LIBS = $(LIBNAME_COMMON) $(LIBS-yes)
libs: $(LIBS)
$(LIBNAME_COMMON): $(OBJS_COMMON)
$(LIBNAME_MPLAYER): $(OBJS_MPLAYER)
$(LIBNAME_MENCODER): $(OBJS_MENCODER)
$(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER):
$(AR) r $@ $^
$(RANLIB) $@
clean::
rm -f *.o *.a *~
distclean:: clean
rm -f .depend test test2
dep depend::
$(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend
-include .depend
.PHONY: libs clean distclean dep depend