[MPlayer-cvslog] r26145 - trunk/mpcommon.mak

diego subversion at mplayerhq.hu
Mon Mar 3 10:59:11 CET 2008


Author: diego
Date: Mon Mar  3 10:59:11 2008
New Revision: 26145

Log:
Add checkheaders target, ported from FFmpeg.


Modified:
   trunk/mpcommon.mak

Modified: trunk/mpcommon.mak
==============================================================================
--- trunk/mpcommon.mak	(original)
+++ trunk/mpcommon.mak	Mon Mar  3 10:59:11 2008
@@ -24,7 +24,7 @@ $(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(L
 	$(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



More information about the MPlayer-cvslog mailing list