mirror of https://github.com/mpv-player/mpv
Add checkheaders target, ported from FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26145 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bc2c5f3f6c
commit
4ec85e8560
|
@ -24,7 +24,7 @@ $(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER):
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
rm -f *.o *.a *~
|
rm -f *.o *.a *.ho *~
|
||||||
|
|
||||||
distclean:: clean
|
distclean:: clean
|
||||||
rm -f .depend test test2
|
rm -f .depend test test2
|
||||||
|
@ -32,6 +32,12 @@ distclean:: clean
|
||||||
dep depend::
|
dep depend::
|
||||||
$(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.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
|
-include .depend
|
||||||
|
|
||||||
.PHONY: libs clean distclean dep depend
|
.PHONY: libs clean distclean dep depend
|
||||||
|
|
Loading…
Reference in New Issue