From 7c235fe23831802b60ec9d200d0811750e946f76 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Wed, 22 Jan 2003 09:53:25 +0000 Subject: dependency handling is consistant with libavcodec Originally committed as revision 1490 to svn://svn.ffmpeg.org/ffmpeg/trunk --- vhook/Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'vhook/Makefile') diff --git a/vhook/Makefile b/vhook/Makefile index 5e9023a6ef..17f8411d7c 100644 --- a/vhook/Makefile +++ b/vhook/Makefile @@ -15,7 +15,10 @@ endif all: $(HOOKS) -DEPS= $(HOOKS:.so=.d) +SRCS := $(OBJS:.o=.c) + +.depend: $(SRCS) + $(CC) -MM $(CFLAGS) $^ 1>.depend install: install -s -m 755 $(HOOKS) $(INSTDIR) @@ -26,14 +29,12 @@ imlib2.so: imlib2.o %.so: %.o $(CC) -g -o $@ $(SHFLAGS) $< -%.d: %.c - @echo $@ \\ > $@ - $(CC) $(CFLAGS) -MM $< >> $@ - --include $(DEPS) - %.html: %.texi texi2html -monolithic -number $< clean: rm -f *.o *.d *.so *~ + +ifneq ($(wildcard .depend),) +include .depend +endif -- cgit v1.2.3