changeset 26113:8ca532b5e704

Add checkheaders target, ported from FFmpeg.
author diego
date Mon, 03 Mar 2008 09:59:11 +0000
parents 307973bd48ff
children cc7bc19e3166
files mpcommon.mak
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpcommon.mak	Mon Mar 03 09:53:18 2008 +0000
+++ b/mpcommon.mak	Mon Mar 03 09:59:11 2008 +0000
@@ -24,7 +24,7 @@
 	$(RANLIB) $@
 
 clean::
-	rm -f *.o *.a *~
+	rm -f *.o *.a *.ho *~
 
 distclean:: clean
 	rm -f .depend test test2
@@ -32,6 +32,12 @@
 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