summaryrefslogtreecommitdiffstats
path: root/vhook/Makefile
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-01-22 09:53:25 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-01-22 09:53:25 +0000
commit7c235fe23831802b60ec9d200d0811750e946f76 (patch)
treeedda1d17d0682fc636c9bdbac7f7567065a78626 /vhook/Makefile
parent8f0a61620dec3774798afc9ce42ff69b9e87e9e0 (diff)
downloadffmpeg-streaming-7c235fe23831802b60ec9d200d0811750e946f76.zip
ffmpeg-streaming-7c235fe23831802b60ec9d200d0811750e946f76.tar.gz
dependency handling is consistant with libavcodec
Originally committed as revision 1490 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/Makefile')
-rw-r--r--vhook/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/vhook/Makefile b/vhook/Makefile
index 5e9023a..17f8411 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
OpenPOWER on IntegriCloud