From 6ead6bf500d23415e70abe92a3833fb5282a1805 Mon Sep 17 00:00:00 2001 From: arpi_esp Date: Fri, 2 Mar 2001 21:42:17 +0000 Subject: New dependency system git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/Makefile | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'libvo') diff --git a/libvo/Makefile b/libvo/Makefile index 396a4f6bc2..2268cc1073 100644 --- a/libvo/Makefile +++ b/libvo/Makefile @@ -6,8 +6,7 @@ LIBNAME = libvo.a SRCS=rgb15to16mmx.c yuv2rgb_mmx.c yuv2rgb.c video_out.c vo_null.c vo_pgm.c vo_md5.c vo_odivx.c $(OPTIONAL_SRCS) OBJS=rgb15to16mmx.o yuv2rgb_mmx.o yuv2rgb.o video_out.o vo_null.o vo_pgm.o vo_md5.o vo_odivx.o $(OPTIONAL_OBJS) -CFLAGS = $(OPTFLAGS) -DMPG12PLAY -INCLUDE = -I. -I.. +CFLAGS = $(OPTFLAGS) -I. -I.. -DMPG12PLAY # -I/usr/X11R6/include/ .SUFFIXES: .c .o @@ -15,9 +14,9 @@ INCLUDE = -I. -I.. # .PHONY: all clean .c.o: - $(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $< + $(CC) -c $(CFLAGS) -o $@ $< -$(LIBNAME): $(OBJS) +$(LIBNAME): .depend $(OBJS) $(AR) r $(LIBNAME) $(OBJS) all: $(LIBNAME) @@ -26,12 +25,17 @@ clean: rm -f *.o *.a *~ distclean: - makedepend - rm -f Makefile.bak *.o *.a *~ + rm -f Makefile.bak *.o *.a *~ .depend dep: depend +depend: .depend -depend: - makedepend -- $(CFLAGS) -- $(SRCS) &> /dev/null +.depend: Makefile config.mak ../config.mak ../config.h + makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null -# DO NOT DELETE +# +# include dependency files if they exist +# +ifneq ($(wildcard .depend),) +include .depend +endif -- cgit v1.2.3