aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 3967f882d78f7a8766870e2207df5e12d661e11e (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 3:3:3
libembedlog_la_CFLAGS = -I$(top_srcdir)/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.. -DHAVE_CONFIG_H=1 $< -o $@

analyze: $(analyze_plists)

endif