aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-17 00:05:39 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-17 00:05:39 +0000
commite4d86a57902382a1818378acf7cbbf4aac714aad (patch)
tree24556680e7993f261d4a6799404ad81dd0a0864b
parent699b3f99d0376a8fd5159bdad857228bda59cff6 (diff)
downloadffmpeg-e4d86a57902382a1818378acf7cbbf4aac714aad.tar.gz
add "checkheaders" target
Originally committed as revision 9346 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--common.mak8
1 files changed, 7 insertions, 1 deletions
diff --git a/common.mak b/common.mak
index 0274a5a725..feee94f575 100644
--- a/common.mak
+++ b/common.mak
@@ -42,12 +42,18 @@ $(SLIBNAME_WITH_MAJOR): $(SHARED_OBJS)
%: %.o $(LIB)
$(CC) $(LDFLAGS) -o $@ $^ $(EXTRALIBS)
+%.ho: %.h
+ $(CC) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $<
+
+ALLHEADERS = $(subst $(VPATH)/,,$(wildcard $(VPATH)/*.h))
+checkheaders: $(filter-out %_template.ho,$(ALLHEADERS:.h=.ho))
+
depend dep: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend
clean::
rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \
- *.def *.dll.a *.exp
+ *.def *.dll.a *.exp *.ho
distclean: clean
rm -f .depend