From e38f00775f31102a696418b59e88b1586706a359 Mon Sep 17 00:00:00 2001 From: TingPing Date: Tue, 2 Dec 2014 01:06:25 -0500 Subject: configure: Add option to run clang static analysis --- src/common/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common/Makefile.am') diff --git a/src/common/Makefile.am b/src/common/Makefile.am index e9255d0c..744630c4 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -1,5 +1,7 @@ ## Process this file with automake to produce Makefile.in +include $(top_srcdir)/m4/clang-analyze.am + noinst_LIBRARIES = libhexchatcommon.a AM_CPPFLAGS = $(COMMON_CFLAGS) -I$(top_srcdir) @@ -79,6 +81,12 @@ marshal.c: $(srcdir)/marshalers.list $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_hexchat_marshal --body $< > $@ +if DO_STATIC_ANALYSIS +analyze_plists = $(libhexchatcommon_a_SOURCES:%.c=%.plist) +all-local: $(analyze_plists) +MOSTLYCLEANFILES = $(analyze_plists) +endif + BUILT_SOURCES = textenums.h textevents.h marshal.c marshal.h CLEANFILES = $(BUILT_SOURCES) -- cgit 1.4.1