summaryrefslogtreecommitdiffstats
path: root/mpcommon.mak
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-03 09:59:11 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-03 09:59:11 +0000
commit4ec85e8560e9d0c3a264a82ed61ceaef92c48f31 (patch)
tree813325f90b363084637c05a66dbfb006d9555f1c /mpcommon.mak
parentbc2c5f3f6c6ceb5b67d5273f6ea77bfb70f2a7d9 (diff)
downloadmpv-4ec85e8560e9d0c3a264a82ed61ceaef92c48f31.tar.bz2
mpv-4ec85e8560e9d0c3a264a82ed61ceaef92c48f31.tar.xz
Add checkheaders target, ported from FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26145 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mpcommon.mak')
-rw-r--r--mpcommon.mak8
1 files changed, 7 insertions, 1 deletions
diff --git a/mpcommon.mak b/mpcommon.mak
index 0364ab4b75..c577df82f3 100644
--- a/mpcommon.mak
+++ b/mpcommon.mak
@@ -24,7 +24,7 @@ $(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER):
$(RANLIB) $@
clean::
- rm -f *.o *.a *~
+ rm -f *.o *.a *.ho *~
distclean:: clean
rm -f .depend test test2
@@ -32,6 +32,12 @@ distclean:: clean
dep depend::
$(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend
+%.ho: %.h
+ $(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $<
+
+ALLHEADERS = $(wildcard *.h)
+checkheaders: $(ALLHEADERS:.h=.ho)
+
-include .depend
.PHONY: libs clean distclean dep depend