diff options
author | Måns Rullgård <mans@mansr.com> | 2007-06-17 00:05:39 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-06-17 00:05:39 +0000 |
commit | e4d86a57902382a1818378acf7cbbf4aac714aad (patch) | |
tree | 24556680e7993f261d4a6799404ad81dd0a0864b | |
parent | 699b3f99d0376a8fd5159bdad857228bda59cff6 (diff) | |
download | ffmpeg-e4d86a57902382a1818378acf7cbbf4aac714aad.tar.gz |
add "checkheaders" target
Originally committed as revision 9346 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | common.mak | 8 |
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 |