aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 1e190cc5510ae71b4d1bd7ad72c14c06ffedab6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
include $(top_srcdir)/embedlog-sources.mk

lib_LTLIBRARIES = libembedlog.la

libembedlog_la_SOURCES = $(embedlog_sources)
libembedlog_la_SOURCES += el-private.h \
	valid.h
libembedlog_la_LDFLAGS = -version-info 5:0:5
libembedlog_la_CFLAGS = -I$(top_builddir)/include

# static code analyzer

if ENABLE_ANALYZER

analyze_plists = $(embedlog_sources:%.c=%.plist)
MOSTLYCLEANFILES = $(analyze_plists)

$(analyze_plists): %.plist: %.c
	@echo "  CCSA  " $@
	@clang --analyze -I.. -I../include -DHAVE_CONFIG_H=1 $< -o $@

analyze: $(analyze_plists)

endif