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