changeset 22549:77f632d4ca36

Reuse common parts of all Makefiles through mpcommon.mak.
author diego
date Wed, 14 Mar 2007 08:55:06 +0000
parents 42bd84f21090
children d3f9def2f3e7
files vidix/Makefile
diffstat 1 files changed, 5 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/Makefile	Wed Mar 14 08:53:12 2007 +0000
+++ b/vidix/Makefile	Wed Mar 14 08:55:06 2007 +0000
@@ -3,27 +3,17 @@
 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