File: Makefile.am

package info (click to toggle)
carbon-c-relay 3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,604 kB
  • sloc: ansic: 8,354; sh: 1,401; yacc: 924; lex: 354; python: 112; makefile: 110
file content (121 lines) | stat: -rw-r--r-- 2,487 bytes parent folder | download
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Copyright 2013-2018 Fabian Groffen
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

AUTOMAKE_OPTIONS = foreign

CFLAGS ?= -O2 -Wall -Wshadow -pipe

GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always 2>/dev/null || date +%F)
GVCFLAGS = -DGIT_VERSION=\"$(GIT_VERSION)\"

override CFLAGS += $(GVCFLAGS) -pthread

conffile.tab.c conffile.tab.h: conffile.y
	bison -d $^

conffile.yy.c: conffile.l conffile.tab.h
	flex -o $@ $<

router.c: conffile.tab.h

man:
	sed -e '/travis-ci.org\/grobian\/carbon-c-relay.svg/d' carbon-c-relay.md | \
	ronn \
		--manual="Graphite data collection and visualisation" \
		--organization=Graphite \
		--roff \
	> carbon-c-relay.1

bin_PROGRAMS = relay
relay_LINK = $(CCLD) $(AM_LDFLAGS) $(LDFLAGS) -o $@
relay_LDADD = $(LIBGZIP) $(LIBLZ4) $(LIBSNAPPY) $(LIBSSL) \
			  $(LIBONIGURUMA) $(LIBPCRE2) $(LIBPCRE)
relay_SOURCES = \
	relay.c \
	md5.c \
	consistent-hash.c \
	receptor.c \
	dispatcher.c \
	conffile.tab.c \
	conffile.yy.c \
	allocator.c \
	router.c \
	queue.c \
	server.c \
	collector.c \
	aggregator.c
noinst_HEADERS = \
	relay.h \
	md5.h \
	fnv1a.h \
	consistent-hash.h \
	conffile.h \
	conffile.tab.h \
	receptor.h \
	dispatcher.h \
	allocator.h \
	router.h \
	queue.h \
	server.h \
	collector.h \
	aggregator.h
man_MANS = carbon-c-relay.1

EXTRA_DIST = \
	issues \
	test \
	ChangeLog.md \
	LICENSE.md \
	carbon-c-relay.md \
	carbon-c-relay.1 \
	README.md \
	conffile.tab.c conffile.tab.h conffile.y \
	conffile.yy.c conffile.l \
	posixregex.h \
	$(NULL)

CRTESTS = \
	issue10 \
	issue27 \
	issue117 \
	issue156 \
	issue157 \
	issue163 \
	issue165 \
	issue180 \
	issue184 \
	issue202 \
	issue213 \
	issue218 \
	issue228 \
	issue235 \
	issue236 \
	issue246 \
	issue252 \
	issue253 \
	issue263 \
	issue267 \
	issue288 \
	issue293 \
	issue310 \
	server-type \
	$(NULL)

test: check
test-%: relay
	@( cd test && ./run-test.sh $* )
approve-%: relay
	@( cd test && ./run-test.sh -a $* )
check: relay
	@( cd test && ./run-test.sh $(CRTESTS) )