diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-18 22:49:17 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-18 22:49:17 +0000 |
commit | 9818a95c589e6fce1f6a0d0d296f0fa3efae41e1 (patch) | |
tree | b731f1bd41a0bee8df4b8e00c936c163ac47f436 /mpcommon.mak | |
parent | 3f37dff3672e4ceb012c82085bf6b5a719d50278 (diff) | |
download | mpv-9818a95c589e6fce1f6a0d0d296f0fa3efae41e1.tar.bz2 mpv-9818a95c589e6fce1f6a0d0d296f0fa3efae41e1.tar.xz |
per-file dependencies (for the non-recursive parts)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26464 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mpcommon.mak')
-rw-r--r-- | mpcommon.mak | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mpcommon.mak b/mpcommon.mak index 3f348f9403..6845775da9 100644 --- a/mpcommon.mak +++ b/mpcommon.mak @@ -25,17 +25,24 @@ clean:: rm -f *.o *.a *.ho *~ distclean:: clean - rm -f .depend test test2 + rm -f *.d .depend test test2 .depend: $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) $(MPDEPEND_CMD) > $@ +%.d: %.c + $(MPDEPEND_CMD) > $@ + %.ho: %.h $(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $< ALLHEADERS = $(wildcard *.h) checkheaders: $(ALLHEADERS:.h=.ho) --include .depend +# Hack to keep .depend from being generated at the top level unnecessarily. +ifndef DEPS +DEPS = .depend +endif +-include $(DEPS) .PHONY: libs *clean dep depend |