diff options
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 |