-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
80 lines (49 loc) · 1.58 KB
/
Makefile.am
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
#
# timespec
#
# Copyright (c) 2017 Guillermo Calvo
# Licensed under the GNU Lesser General Public License
#
AUTOMAKE_OPTIONS = foreign subdir-objects
AM_CFLAGS = -ansi -Wall -Wextra -Werror --pedantic -coverage -O0 -I$(TIMESPEC_PATH)
# Library
TIMESPEC_PATH = src
TIMESPEC_LIBRARY = lib/libtimespec.a
# Install
lib_LIBRARIES = \
$(TIMESPEC_LIBRARY)
include_HEADERS = \
src/timespec.h
# Documentation
docdir = $(datadir)/doc/timespec
doc_DATA = doc/*
# Cleanup
CLEANFILES = \
*.log \
*.gcda \
*.gcno \
*.gcov \
src/*.gcda \
src/*.gcno \
src/*.gcov \
test/*.gcda \
test/*.gcno \
test/*.gcov
# Check
check_PROGRAMS = \
bin/check/get \
bin/check/null
TESTS = \
bin/check/get \
bin/check/null
tests: check
# timespec library
lib_libtimespec_a_CFLAGS = -ansi -Wall -Wextra -Werror --pedantic
lib_libtimespec_a_SOURCES = src/timespec.c
# timespec tests
bin_check_get_SOURCES = src/timespec.c test/get.c
bin_check_null_SOURCES = src/timespec.c test/null.c
# coverage
coverage: check timespec.c.gcov
timespec.c.gcov:
gcov src/timespec.c --object-directory src/*