forked from flowgrind/flowgrind
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
99 lines (83 loc) · 3.52 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#
# Copyright (C) 2014 Alexander Zimmermann <alexander.zimmermann@netapp.com>
#
# This file is part of Flowgrind.
#
# Flowgrind is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Flowgrind is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Flowgrind. If not, see <http://www.gnu.org/licenses/>.
#
CLEANFILES = gitversion.h doc/doxyfile.stamp
CLEAN_LOCAL_FILES = doc/html doc/latex doc/html.timestamp
MR_PROPER_FILES = Makefile.in aclocal.m4 build-aux config.h.in config.h.in~ \
configure
BUILT_SOURCES = gitversion.h
bin_PROGRAMS = flowgrind flowgrind-stop
sbin_PROGRAMS = flowgrindd
noinst_HEADERS = src/common.h src/debug.h
dist_man1_MANS = man/flowgrind.1 \
man/flowgrindd.1 \
man/flowgrind-stop.1
AM_CFLAGS = -Wall -Wextra -Werror=implicit -std=gnu99 -fgnu89-inline
# flowgrind controller
flowgrind_SOURCES = src/common.h src/debug.c src/fg_error.h src/fg_error.c \
src/fg_progname.h src/fg_progname.c src/fg_socket.h \
src/fg_string.h src/fg_string.c src/fg_definitions.h \
src/fg_time.h src/fg_time.c src/flowgrind.h src/flowgrind.c \
src/fg_argparser.h src/fg_argparser.c src/fg_rpc_client.h \
src/fg_rpc_client.c src/log.h src/log.c src/fg_list.h src/fg_list.c
flowgrind_LDADD = $(LIBS) $(CURL_LDADD) $(XMLRPC_C_CLIENT_LDADD) $(GSL_LDADD)
flowgrind_CFLAGS = $(AM_CFLAGS) $(CURL_CFLAGS) $(XMLRPC_C_CLIENT_CFLAGS) $(GSL_CFLAGS)
# flowgrind daemon
flowgrindd_SOURCES = src/common.h src/daemon.h src/daemon.c src/debug.c \
src/destination.h src/destination.c src/fg_error.h \
src/fg_error.c src/fg_math.h src/fg_math.c \
src/fg_progname.h src/fg_progname.c src/fg_socket.c \
src/fg_socket.h src/fg_string.h src/fg_string.c \
src/fg_time.c src/flowgrindd.c src/log.h src/log.c \
src/source.h src/source.c src/trafgen.h src/trafgen.c \
src/fg_argparser.h src/fg_argparser.c src/fg_list.h \
src/fg_list.c src/fg_definitions.h src/fg_affinity.h \
src/fg_affinity.c src/fg_rpc_server.h src/fg_rpc_server.c
flowgrindd_LDADD = $(LIBS) $(XMLRPC_C_SERVER_LDADD) $(GSL_LDADD)
flowgrindd_CFLAGS = $(AM_CFLAGS) $(XMLRPC_C_SERVER_CFLAGS) $(UUID_CFLAGS) $(GSL_CFLAGS)
# flowgrind-stop
flowgrind_stop_SOURCES = src/fg_error.h src/fg_error.c src/fg_progname.h \
src/fg_progname.c src/flowgrind_stop.c \
src/fg_argparser.h src/fg_argparser.c \
src/fg_definitions.h src/fg_rpc_client.h \
src/fg_rpc_client.c
flowgrind_stop_LDADD = $(LIBS) $(CURL_LDADD) $(XMLRPC_C_CLIENT_LDADD)
flowgrind_stop_CFLAGS = $(AM_CFLAGS) $(CURL_FLAGS) $(XMLRPC_C_CLIENT_CFLAGS)
# configured w/ pcap
if USE_LIBPCAP
flowgrindd_SOURCES += src/fg_pcap.h src/fg_pcap.c
flowgrindd_LDADD += $(PCAP_LDADD)
flowgrindd_CFLAGS += $(PCAP_CFLAGS)
if USE_FG_PTHREAD_BARRIER
flowgrindd_SOURCES += src/fg_barrier.h src/fg_barrier.c
endif
endif
.PHONY: gitversion.h mrproper html.timestamp clean-local
gitversion.h:
$(shellL) ./scripts/make-version.sh
mrproper: maintainer-clean
-rm -rf $(MR_PROPER_FILES)
# configured w/ doxygen
if USE_DOXYGEN
html: html.timestamp
html.timestamp:
$(DOXYGEN) doc/Doxyfile
touch doc/$@
clean-local:
-rm -rf $(CLEAN_LOCAL_FILES)
endif