From 77b71ddc11cef98fce54e56dc7a7d26c213a6b6d Mon Sep 17 00:00:00 2001 From: Philip Gladstone Date: Tue, 14 Jan 2003 15:30:42 +0000 Subject: AUtomatic dependency generation. Runs on Linux (at least). Probably should update .cvsignore (somehere) to exclude .d files Originally committed as revision 1459 to svn://svn.ffmpeg.org/ffmpeg/trunk --- vhook/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'vhook') diff --git a/vhook/Makefile b/vhook/Makefile index 898dbb4b6b..5e9023a6ef 100644 --- a/vhook/Makefile +++ b/vhook/Makefile @@ -15,18 +15,25 @@ endif all: $(HOOKS) +DEPS= $(HOOKS:.so=.d) + install: install -s -m 755 $(HOOKS) $(INSTDIR) imlib2.so: imlib2.o $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2 - rm $< %.so: %.o $(CC) -g -o $@ $(SHFLAGS) $< +%.d: %.c + @echo $@ \\ > $@ + $(CC) $(CFLAGS) -MM $< >> $@ + +-include $(DEPS) + %.html: %.texi texi2html -monolithic -number $< clean: - rm -f *.o *.so *~ + rm -f *.o *.d *.so *~ -- cgit v1.2.3