diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-03-03 09:59:11 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-03-03 09:59:11 +0000 |
commit | 4ec85e8560e9d0c3a264a82ed61ceaef92c48f31 (patch) | |
tree | 813325f90b363084637c05a66dbfb006d9555f1c /mpcommon.mak | |
parent | bc2c5f3f6c6ceb5b67d5273f6ea77bfb70f2a7d9 (diff) | |
download | mpv-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.mak | 8 |
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 |