aboutsummaryrefslogtreecommitdiffstats
path: root/rb/Makefile.am
blob: c48d14eb58be0d837112589fbb82b1a2ded96e86 (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
25
26
27
lib_LTLIBRARIES = librb.la
librb_la_SOURCES = rb.c valid.h
librb_la_LDFLAGS = -version-info 1:0:0
librb_la_CFLAGS = -I$(top_srcdir)/include

check_PROGRAMS = tests
tests_SOURCES = rb.c tests.c mtest.h
tests_CFLAGS = -I$(top_srcdir)/include

TESTS = $(check_PROGRAMS)
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
	$(top_srcdir)/tap-driver.sh

# static code analyzer

if ENABLE_ANALYZER

analyze_plists = rb.plist
MOSTLYCLEANFILES = $(analyze_plists)

$(analyze_plists): %.plist: %.c
	@echo "  CCSA  " $@
	@clang --analyze -I.. $< -o $@

analyze: $(analyze_plists)

endif