summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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