diff options
author | 2001-03-02 21:42:17 +0000 | |
---|---|---|
committer | 2001-03-02 21:42:17 +0000 | |
commit | 6ead6bf500d23415e70abe92a3833fb5282a1805 (patch) | |
tree | 188ec10b311dbbd6b0c449dba12fd4fb4dae5b96 | |
parent | 66055a0758509e3c306678988ef176103bf28d74 (diff) |
New dependency system
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/Makefile | 22 |
1 files changed, 13 insertions, 9 deletions
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 |