aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 611684d5231173f0c25f1507bfd00c26ba97dbe3 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ACLOCAL_AMFLAGS=-I m4

# building librb library

include_HEADERS = rb.h

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)

# building test suite

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

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$(top_srcdir) -DHAVE_CONFIG_H $< -o $@

analyze: $(analyze_plists)

endif

# building website and manuals

SUBDIRS = man www
EXTRA_DIST = gen-download-page.sh man2html.sh readme.md tap-driver.sh

www:
	./gen-download-page.sh
	./man2html.sh
	make www -C www

.PHONY: www analyze tests librb.la