summaryrefslogtreecommitdiff
path: root/vhook
diff options
context:
space:
mode:
authorPhilip Gladstone <philipjsg@users.sourceforge.net>2003-01-14 15:30:42 +0000
committerPhilip Gladstone <philipjsg@users.sourceforge.net>2003-01-14 15:30:42 +0000
commit77b71ddc11cef98fce54e56dc7a7d26c213a6b6d (patch)
tree9b129f08eba5ac817c75ac9b0bc577ed3d54d9a8 /vhook
parentcb7c98d6e2277e4ea370aa23926820899bfcd181 (diff)
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
Diffstat (limited to 'vhook')
-rw-r--r--vhook/Makefile11
1 files changed, 9 insertions, 2 deletions
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 *~