forked from zrlio/urdma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
205 lines (179 loc) · 7.5 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# Makefile.am
# Userspace Software iWARP library for DPDK
#
# Authors: Patrick MacArthur <[email protected]>
#
# Copyright (c) 2016-2018, University of New Hampshire
#
# This software is available to you under a choice of one of two
# licenses. You may choose to be licensed under the terms of the GNU
# General Public License (GPL) Version 2, available from the file
# COPYING in the main directory of this source tree, or the
# BSD license below:
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# - Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# - Neither the name of IBM nor the names of its contributors may be
# used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
ACLOCAL_AMFLAGS = -I config
DISTCHECK_CONFIGURE_FLAGS = --enable-kmodinprefix
AM_CFLAGS = $(EXTRA_CFLAGS) \
-fno-strict-aliasing \
-fvisibility=hidden
EXTRA_DIST = gpl-2.0.txt config/version.sh src/urdmad/urdmad.service.in
include_HEADERS = include/urdma_kabi.h \
include/urdmad_private.h \
include/proto.h \
include/proto_memcached.h \
include/proto_trp.h \
include/kvstore_limits.h \
include/kvstore_storage.h
noinst_LTLIBRARIES = ccan/libccan.la
ccan_libccan_la_SOURCES = \
ccan/container_of/container_of.h \
ccan/check_type/check_type.h \
ccan/build_assert/build_assert.h \
ccan/list/list.c \
ccan/list/list.h \
ccan/str/str.c \
ccan/str/str_debug.h \
ccan/str/str.h
lib_LTLIBRARIES = src/liburdma/liburdma.la
EXTRA_src_liburdma_liburdma_la_SOURCES = \
rdma-core/17/infiniband/kern-abi.h \
rdma-core/17/infiniband/driver.h \
rdma-core/18/infiniband/kern-abi.h \
rdma-core/18/infiniband/driver.h
src_liburdma_liburdma_la_SOURCES = \
src/liburdma/driver.c \
src/liburdma/interface.c \
src/liburdma/interface.h \
src/liburdma/verbs.c \
src/liburdma/verbs.h \
src/util/binheap.c \
src/util/binheap.h \
src/util/config_file.c \
src/util/config_file.h \
src/util/list.h \
src/util/util.c \
src/util/util.h
src_liburdma_liburdma_la_CFLAGS = $(DPDK_CFLAGS)
src_liburdma_liburdma_la_CPPFLAGS = -Durdma_confdir='"$(sysconfdir)/rdma"' -I$(srcdir)/rdma-core/@ibverbs_pabi_version@ -I$(srcdir)/include -I$(srcdir)/src/util $(LIBNL3_CFLAGS) $(JSON_C_CFLAGS) $(DPDK_CPPFLAGS)
src_liburdma_liburdma_la_LDFLAGS = -avoid-version \
-release @IBV_DEVICE_LIBRARY_EXTENSION@ $(LDFLAGS) $(DPDK_LDFLAGS)
src_liburdma_liburdma_la_LIBADD = $(LIBNL3_LIBS) $(JSON_C_LIBS) $(DPDK_LIBS)
verbsconfdir = $(sysconfdir)/libibverbs.d
dist_verbsconf_DATA = src/liburdma/urdma.driver
bin_PROGRAMS = src/urdmad/urdmad
src_urdmad_urdmad_SOURCES = \
src/urdmad/main.c \
src/urdmad/interface.h \
src/urdmad/kni.c \
src/urdmad/kni.h \
src/util/config_file.c \
src/util/config_file.h \
src/util/list.h
src_urdmad_urdmad_CFLAGS = $(DPDK_CFLAGS)
src_urdmad_urdmad_CPPFLAGS = -Durdma_confdir='"$(sysconfdir)/rdma"' -I$(srcdir)/include -I$(srcdir)/src/util $(LIBNL3_CFLAGS) $(JSON_C_CFLAGS) $(DPDK_CPPFLAGS)
src_urdmad_urdmad_LDFLAGS = $(DPDK_LDFLAGS)
src_urdmad_urdmad_LDADD = $(LIBNL3_LIBS) $(JSON_C_LIBS) $(DPDK_LIBS)
bin_PROGRAMS += src/udp_pingpong/udp_pingpong
src_udp_pingpong_udp_pingpong_SOURCES = \
src/udp_pingpong/main.c \
src/util/util.c \
src/util/util.h
src_udp_pingpong_udp_pingpong_CFLAGS = $(DPDK_CFLAGS)
src_udp_pingpong_udp_pingpong_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/src/util $(DPDK_CPPFLAGS)
src_udp_pingpong_udp_pingpong_LDFLAGS = $(DPDK_LDFLAGS)
src_udp_pingpong_udp_pingpong_LDADD = $(DPDK_LIBS)
bin_PROGRAMS += src/mkkvstore/mkkvstore
src_mkkvstore_mkkvstore_SOURCES = \
src/mkkvstore/main.c \
src/util/util.c \
src/util/util.h
src_mkkvstore_mkkvstore_CFLAGS = $(DPDK_CFLAGS)
src_mkkvstore_mkkvstore_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/src/util $(DPDK_CPPFLAGS)
src_mkkvstore_mkkvstore_LDFLAGS = $(DPDK_LDFLAGS)
src_mkkvstore_mkkvstore_LDADD = $(DPDK_LIBS) -lm
bin_PROGRAMS += src/verbs_pingpong/verbs_pingpong
src_verbs_pingpong_verbs_pingpong_SOURCES = \
src/verbs_pingpong/main.c
src_verbs_pingpong_verbs_pingpong_CFLAGS = $(DPDK_CFLAGS)
src_verbs_pingpong_verbs_pingpong_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/src/liburdma $(DPDK_CPPFLAGS)
src_verbs_pingpong_verbs_pingpong_LDFLAGS = $(DPDK_LDFLAGS)
src_verbs_pingpong_verbs_pingpong_LDADD = $(DPDK_LIBS)
bin_PROGRAMS += src/kvstore_server/kvstore_server
src_kvstore_server_kvstore_server_SOURCES = \
src/kvstore_server/kvstore.c \
src/kvstore_server/kvstore.h \
src/kvstore_server/main.c \
src/kvstore_server/nvm.c \
src/kvstore_server/nvm.h \
src/kvstore_server/options.c \
src/kvstore_server/options.h \
src/util/util.c \
src/util/util.h
src_kvstore_server_kvstore_server_CFLAGS = $(DPDK_CFLAGS)
src_kvstore_server_kvstore_server_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/src/util -I$(srcdir)/src/liburdma $(CPPFLAGS) $(DPDK_CPPFLAGS)
src_kvstore_server_kvstore_server_LDFLAGS = $(LDFLAGS) $(DPDK_LDFLAGS)
src_kvstore_server_kvstore_server_LDADD = src/liburdma/liburdma.la $(DPDK_LIBS) -lm
bin_PROGRAMS += src/kvstore_client/kvstore_client
src_kvstore_client_kvstore_client_SOURCES = \
src/kvstore_client/main.c \
src/kvstore_client/options.c \
src/kvstore_client/options.h \
src/util/util.c \
src/util/util.h
src_kvstore_client_kvstore_client_CFLAGS = $(DPDK_CFLAGS)
src_kvstore_client_kvstore_client_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/src/util -I$(srcdir)/src/liburdma $(CPPFLAGS) $(DPDK_CPPFLAGS)
src_kvstore_client_kvstore_client_LDFLAGS = $(LDFLAGS) $(DPDK_LDFLAGS)
src_kvstore_client_kvstore_client_LDADD = src/liburdma/liburdma.la $(DPDK_LIBS) -lm
check_PROGRAMS = tests/binheap tests/list_test
tests_binheap_SOURCES = tests/binheap.c \
src/util/binheap.c \
src/util/binheap.h
tests_binheap_CPPFLAGS = -I$(srcdir)/src/util
tests_list_test_SOURCES = tests/list_test.c
tests_list_test_LDADD = ccan/libccan.la
TESTS = tests/binheap tests/list_test
dist_doc_DATA = doc/urdma-schema.json
dist_noinst_SCRIPTS = scripts/deploy_test.bash scripts/run_real.sh \
scripts/run_real_with_perf.sh
# Disable the uninstall check since the kernel build system doesn't
# provide a module uninstall target.
distuninstallcheck:
@:
dist-hook:
$(srcdir)/config/version.sh $(srcdir) >$(top_distdir)/.version
src/urdmad/urdmad.service: src/urdmad/urdmad.service.in
sed -e 's^\@bindir\@^$(bindir)^' <$^ >$@
all-local: src/urdmad/urdmad.service
MOSTLYCLEANFILES = src/urdmad/urdmad.service
install-data-hook:
$(MKDIR_P) $(DESTDIR)$(prefix)/lib/systemd/user
$(INSTALL) -m644 src/urdmad/urdmad.service $(DESTDIR)$(prefix)/lib/systemd/user
@echo You will need to reload systemd and start this service
@echo systemctl --user daemon-reload
@echo systemctl --user start urdmad
uninstall-hook:
$(RM) $(DESTDIR)$(prefix)/lib/systemd/user/urdmad.service
SUBDIRS = src/kmod