From 57c3425749049c9460938538e7fb0116cfafcd5d Mon Sep 17 00:00:00 2001 From: diego Date: Wed, 14 Mar 2007 08:55:06 +0000 Subject: [PATCH] Reuse common parts of all Makefiles through mpcommon.mak. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22567 b3059339-0415-0410-9bf9-f77b7e298cf2 --- vidix/Makefile | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/vidix/Makefile b/vidix/Makefile index 70f9d326d7..7a156050a7 100644 --- a/vidix/Makefile +++ b/vidix/Makefile @@ -3,27 +3,17 @@ include ../config.mak LIBNAME_MPLAYER = libvidix.a SRCS_MPLAYER = vidixlib.c -OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o) -CFLAGS = $(OPTFLAGS) - -all: $(LIBNAME_MPLAYER) +all: libs $(MAKE) -C drivers -$(LIBNAME_MPLAYER): $(OBJS_MPLAYER) - $(AR) r $@ $^ - $(RANLIB) $@ - -clean: - rm -f *.o *.a *~ +clean:: $(MAKE) -C drivers clean -distclean: clean - rm -f .depend +distclean:: $(MAKE) -C drivers distclean -dep depend: - $(CC) -MM $(CFLAGS) $(SRCS_MPLAYER) 1>.depend +dep depend:: $(MAKE) -C drivers depend --include .depend +include ../mpcommon.mak