Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add "checkheaders" target

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9346 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
  • Loading branch information...
commit b57cb5053a475445891ab01fe1bab3b87ba450da 1 parent 81be5ad
mru authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 common.mak
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.