summaryrefslogtreecommitdiff
path: root/core/src/sv/Makefile.am
blob: a53382d226574bddd98dd282cb833c2a2ff82954 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
## Process this file with automake to produce Makefile.in

ACLOCAL_AMFLAGS  = -I m4
AUTOMAKE_OPTIONS = foreign
dist_doc_DATA    = UNLICENSE README.md
AM_CFLAGS        = -I$(srcdir)/src -I$(srcdir)/include -Wall $(AX_CFLAGS)

## --------------------------------------------------------------------

EXTRA_DIST            = scripts/libsv.pc.in
pkgconfigdir          = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = scripts/libsv.pc

## --------------------------------------------------------------------

# Commented out because  at present there is  no Texinfo documentation
# included.  It will come later.  (Marco Maggi; May 17, 2017)
#
# AM_MAKEINFOFLAGS    = --no-split
# info_TEXINFOS       = doc/semver.texi
# doc_semver_TEXINFOS = doc/macros.texi

#page
#### libraries

libsv_CURRENT  = @libsv_VERSION_INTERFACE_CURRENT@
libsv_REVISION = @libsv_VERSION_INTERFACE_REVISION@
libsv_AGE      = @libsv_VERSION_INTERFACE_AGE@

include_HEADERS = include/semver.h

lib_LTLIBRARIES  = libsv.la
libsv_la_LDFLAGS = -version-info $(libsv_CURRENT):$(libsv_REVISION):$(libsv_AGE)
libsv_la_SOURCES = \
	src/comp.c     \
	src/id.c       \
	src/num.c      \
	src/range.c    \
	src/semvers.c  \
	src/version.c  \
	src/utils.c

#page
#### test

check_PROGRAMS = \
	test/version \
	test/comp    \
	test/match   \
	test/range   \
	test/semvers \
	test/utils   \
	test/usage

TESTS                = $(check_PROGRAMS)

libsv_test_cppflags  = -I$(srcdir)/src -I$(srcdir)/include
libsv_test_ldadd     = libsv.la

test_version_CPPFLAGS = $(libsv_test_cppflags)
test_version_LDADD    = $(libsv_test_ldadd)

test_comp_CPPFLAGS    = $(libsv_test_cppflags)
test_comp_LDADD       = $(libsv_test_ldadd)

test_match_CPPFLAGS   = $(libsv_test_cppflags)
test_match_LDADD      = $(libsv_test_ldadd)

test_range_CPPFLAGS   = $(libsv_test_cppflags)
test_range_LDADD      = $(libsv_test_ldadd)

test_semvers_CPPFLAGS = $(libsv_test_cppflags)
test_semvers_LDADD    = $(libsv_test_ldadd)

test_utils_CPPFLAGS   = $(libsv_test_cppflags)
test_utils_LDADD      = $(libsv_test_ldadd)

test_usage_CPPFLAGS   = $(libsv_test_cppflags)
test_usage_LDADD      = $(libsv_test_ldadd)

installcheck-local: $(TEST)
	@for f in $(TEST); do $(builddir)/$$f; done

#page
#### Static analysis with Clang's Static Analyzer
#
# See the documentation for the command line tool at:
#
#    <http://clang-analyzer.llvm.org/scan-build.html>
#
# To run the tool we must do:
#
#    $ make clean
#    $ make clang-static-analysis
#
# The  program  "scan-build"  works  by  overriding  the  CC  and  CXX
# environment variables.
#

.PHONY: clang-static-analysis

clang-static-analysis:
	scan-build make

### end of file