]>
Commit | Line | Data |
---|---|---|
822b7f52 | 1 | # Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicira, Inc. |
a14bc59f BP |
2 | # |
3 | # Copying and distribution of this file, with or without modification, | |
4 | # are permitted in any medium without royalty provided the copyright | |
5 | # notice and this notice are preserved. This file is offered as-is, | |
6 | # without warranty of any kind. | |
7 | ||
064af421 BP |
8 | noinst_LIBRARIES += lib/libopenvswitch.a |
9 | ||
10 | lib_libopenvswitch_a_SOURCES = \ | |
d918d9d1 BP |
11 | lib/aes128.c \ |
12 | lib/aes128.h \ | |
97eba8fc | 13 | lib/async-append.h \ |
064af421 BP |
14 | lib/backtrace.c \ |
15 | lib/backtrace.h \ | |
ccc09689 EJ |
16 | lib/bfd.c \ |
17 | lib/bfd.h \ | |
064af421 BP |
18 | lib/bitmap.c \ |
19 | lib/bitmap.h \ | |
f620b43a BP |
20 | lib/bond.c \ |
21 | lib/bond.h \ | |
daff3353 EJ |
22 | lib/bundle.c \ |
23 | lib/bundle.h \ | |
10a24935 | 24 | lib/byte-order.h \ |
1c617a49 BP |
25 | lib/byteq.c \ |
26 | lib/byteq.h \ | |
b31bcf60 EJ |
27 | lib/cfm.c \ |
28 | lib/cfm.h \ | |
064af421 BP |
29 | lib/classifier.c \ |
30 | lib/classifier.h \ | |
31 | lib/command-line.c \ | |
32 | lib/command-line.h \ | |
33 | lib/compiler.h \ | |
34 | lib/coverage.c \ | |
35 | lib/coverage.h \ | |
97025b23 JS |
36 | lib/crc32c.c \ |
37 | lib/crc32c.h \ | |
064af421 BP |
38 | lib/csum.c \ |
39 | lib/csum.h \ | |
40 | lib/daemon.c \ | |
41 | lib/daemon.h \ | |
195c8086 | 42 | lib/dhcp.h \ |
614c4892 BP |
43 | lib/dummy.c \ |
44 | lib/dummy.h \ | |
064af421 | 45 | lib/dhparams.h \ |
064af421 | 46 | lib/dirs.h \ |
72865317 | 47 | lib/dpif-netdev.c \ |
96fba48f BP |
48 | lib/dpif-provider.h \ |
49 | lib/dpif.c \ | |
50 | lib/dpif.h \ | |
95974447 BP |
51 | lib/heap.c \ |
52 | lib/heap.h \ | |
064af421 BP |
53 | lib/dynamic-string.c \ |
54 | lib/dynamic-string.h \ | |
e251c8d0 BP |
55 | lib/entropy.c \ |
56 | lib/entropy.h \ | |
064af421 BP |
57 | lib/fatal-signal.c \ |
58 | lib/fatal-signal.h \ | |
064af421 BP |
59 | lib/flow.c \ |
60 | lib/flow.h \ | |
05067881 BP |
61 | lib/guarded-list.c \ |
62 | lib/guarded-list.h \ | |
064af421 BP |
63 | lib/hash.c \ |
64 | lib/hash.h \ | |
822b7f52 BP |
65 | lib/hindex.c \ |
66 | lib/hindex.h \ | |
064af421 BP |
67 | lib/hmap.c \ |
68 | lib/hmap.h \ | |
f4ac3fc1 BP |
69 | lib/hmapx.c \ |
70 | lib/hmapx.h \ | |
c49d1dd1 BP |
71 | lib/jhash.c \ |
72 | lib/jhash.h \ | |
f38b84ea BP |
73 | lib/json.c \ |
74 | lib/json.h \ | |
f2129093 BP |
75 | lib/jsonrpc.c \ |
76 | lib/jsonrpc.h \ | |
6aa74308 EJ |
77 | lib/lacp.c \ |
78 | lib/lacp.h \ | |
aad84c8e BP |
79 | lib/latch.c \ |
80 | lib/latch.h \ | |
75a75043 BP |
81 | lib/learn.c \ |
82 | lib/learn.h \ | |
064af421 BP |
83 | lib/learning-switch.c \ |
84 | lib/learning-switch.h \ | |
85 | lib/list.c \ | |
86 | lib/list.h \ | |
ac718c9d BP |
87 | lib/lockfile.c \ |
88 | lib/lockfile.h \ | |
064af421 BP |
89 | lib/mac-learning.c \ |
90 | lib/mac-learning.h \ | |
81a76618 BP |
91 | lib/match.c \ |
92 | lib/match.h \ | |
0d085684 BP |
93 | lib/memory.c \ |
94 | lib/memory.h \ | |
6a885fd0 BP |
95 | lib/meta-flow.c \ |
96 | lib/meta-flow.h \ | |
53ddd40a BP |
97 | lib/multipath.c \ |
98 | lib/multipath.h \ | |
614c4892 | 99 | lib/netdev-dummy.c \ |
5146acb1 | 100 | lib/netdev-provider.h \ |
c060c4cf EJ |
101 | lib/netdev-vport.c \ |
102 | lib/netdev-vport.h \ | |
064af421 BP |
103 | lib/netdev.c \ |
104 | lib/netdev.h \ | |
9c8e276e | 105 | lib/netflow.h \ |
2fe27d5a BP |
106 | lib/netlink.c \ |
107 | lib/netlink.h \ | |
09246b99 BP |
108 | lib/nx-match.c \ |
109 | lib/nx-match.h \ | |
f094af7b SH |
110 | lib/odp-execute.c \ |
111 | lib/odp-execute.h \ | |
064af421 BP |
112 | lib/odp-util.c \ |
113 | lib/odp-util.h \ | |
f25d0cf3 BP |
114 | lib/ofp-actions.c \ |
115 | lib/ofp-actions.h \ | |
dc4762ed BP |
116 | lib/ofp-errors.c \ |
117 | lib/ofp-errors.h \ | |
982697a4 BP |
118 | lib/ofp-msgs.c \ |
119 | lib/ofp-msgs.h \ | |
f22716dc JP |
120 | lib/ofp-parse.c \ |
121 | lib/ofp-parse.h \ | |
064af421 BP |
122 | lib/ofp-print.c \ |
123 | lib/ofp-print.h \ | |
fa37b408 | 124 | lib/ofp-util.c \ |
e23ae585 | 125 | lib/ofp-util.def \ |
fa37b408 | 126 | lib/ofp-util.h \ |
020c9387 SH |
127 | lib/ofp-version-opt.h \ |
128 | lib/ofp-version-opt.c \ | |
064af421 BP |
129 | lib/ofpbuf.c \ |
130 | lib/ofpbuf.h \ | |
31a3fc6e | 131 | lib/ovs-atomic-c11.h \ |
29ab0cf7 BP |
132 | lib/ovs-atomic-clang.h \ |
133 | lib/ovs-atomic-flag-gcc4.7+.h \ | |
31a3fc6e BP |
134 | lib/ovs-atomic-gcc4+.c \ |
135 | lib/ovs-atomic-gcc4+.h \ | |
136 | lib/ovs-atomic-gcc4.7+.h \ | |
137 | lib/ovs-atomic-pthreads.c \ | |
138 | lib/ovs-atomic-pthreads.h \ | |
139 | lib/ovs-atomic.h \ | |
ec68790f BP |
140 | lib/ovs-thread.c \ |
141 | lib/ovs-thread.h \ | |
f85f8ebb BP |
142 | lib/ovsdb-data.c \ |
143 | lib/ovsdb-data.h \ | |
144 | lib/ovsdb-error.c \ | |
145 | lib/ovsdb-error.h \ | |
c3bb4bd7 BP |
146 | lib/ovsdb-idl-provider.h \ |
147 | lib/ovsdb-idl.c \ | |
148 | lib/ovsdb-idl.h \ | |
f85f8ebb BP |
149 | lib/ovsdb-parser.c \ |
150 | lib/ovsdb-parser.h \ | |
151 | lib/ovsdb-types.c \ | |
152 | lib/ovsdb-types.h \ | |
b9e8b45a | 153 | lib/packets.c \ |
064af421 | 154 | lib/packets.h \ |
2c78a3e6 SS |
155 | lib/pcap-file.c \ |
156 | lib/pcap-file.h \ | |
064af421 BP |
157 | lib/poll-loop.c \ |
158 | lib/poll-loop.h \ | |
064af421 BP |
159 | lib/process.c \ |
160 | lib/process.h \ | |
064af421 BP |
161 | lib/random.c \ |
162 | lib/random.h \ | |
163 | lib/rconn.c \ | |
164 | lib/rconn.h \ | |
3ed497fc BP |
165 | lib/reconnect.c \ |
166 | lib/reconnect.h \ | |
064af421 | 167 | lib/sat-math.h \ |
55b40355 BP |
168 | lib/seq.c \ |
169 | lib/seq.h \ | |
064af421 BP |
170 | lib/sha1.c \ |
171 | lib/sha1.h \ | |
172 | lib/shash.c \ | |
173 | lib/shash.h \ | |
44bac24b BP |
174 | lib/simap.c \ |
175 | lib/simap.h \ | |
064af421 BP |
176 | lib/signals.c \ |
177 | lib/signals.h \ | |
79f1cbe9 EJ |
178 | lib/smap.c \ |
179 | lib/smap.h \ | |
064af421 BP |
180 | lib/socket-util.c \ |
181 | lib/socket-util.h \ | |
f85f8ebb BP |
182 | lib/sort.c \ |
183 | lib/sort.h \ | |
f391294f BP |
184 | lib/sset.c \ |
185 | lib/sset.h \ | |
829a7d02 JP |
186 | lib/stp.c \ |
187 | lib/stp.h \ | |
c34b65c7 BP |
188 | lib/stream-fd.c \ |
189 | lib/stream-fd.h \ | |
190 | lib/stream-provider.h \ | |
9467fe62 | 191 | lib/stream-ssl.h \ |
c34b65c7 BP |
192 | lib/stream-tcp.c \ |
193 | lib/stream-unix.c \ | |
194 | lib/stream.c \ | |
195 | lib/stream.h \ | |
71d7c22f | 196 | lib/string.c \ |
59462465 | 197 | lib/string.h \ |
064af421 BP |
198 | lib/svec.c \ |
199 | lib/svec.h \ | |
3a3eb9da BP |
200 | lib/table.c \ |
201 | lib/table.h \ | |
8650b075 EJ |
202 | lib/timer.c \ |
203 | lib/timer.h \ | |
064af421 BP |
204 | lib/timeval.c \ |
205 | lib/timeval.h \ | |
648f4f1f BP |
206 | lib/token-bucket.c \ |
207 | lib/token-bucket.h \ | |
064af421 | 208 | lib/type-props.h \ |
afa3a931 | 209 | lib/unaligned.h \ |
f38b84ea BP |
210 | lib/unicode.c \ |
211 | lib/unicode.h \ | |
fa0361b7 GG |
212 | lib/unixctl.c \ |
213 | lib/unixctl.h \ | |
064af421 BP |
214 | lib/util.c \ |
215 | lib/util.h \ | |
fa0361b7 GG |
216 | lib/uuid.c \ |
217 | lib/uuid.h \ | |
064af421 BP |
218 | lib/valgrind.h \ |
219 | lib/vconn-provider.h \ | |
064af421 | 220 | lib/vconn-stream.c \ |
064af421 BP |
221 | lib/vconn.c \ |
222 | lib/vconn.h \ | |
0fb7b915 BP |
223 | lib/vlan-bitmap.c \ |
224 | lib/vlan-bitmap.h \ | |
025e874a BP |
225 | lib/vlandev.c \ |
226 | lib/vlandev.h \ | |
064af421 | 227 | lib/vlog.c \ |
6e037e3c EJ |
228 | lib/vlog.h \ |
229 | lib/vswitch-idl.c \ | |
92fa2e92 | 230 | lib/vswitch-idl.h |
6e037e3c | 231 | |
424d1282 BP |
232 | nodist_lib_libopenvswitch_a_SOURCES = \ |
233 | lib/dirs.c | |
234 | CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES) | |
064af421 | 235 | |
c72e245a BP |
236 | noinst_LIBRARIES += lib/libsflow.a |
237 | lib_libsflow_a_SOURCES = \ | |
238 | lib/sflow_api.h \ | |
239 | lib/sflow.h \ | |
240 | lib/sflow_agent.c \ | |
241 | lib/sflow_sampler.c \ | |
242 | lib/sflow_poller.c \ | |
243 | lib/sflow_receiver.c | |
244 | lib_libsflow_a_CFLAGS = $(AM_CFLAGS) | |
245 | if HAVE_WNO_UNUSED | |
246 | lib_libsflow_a_CFLAGS += -Wno-unused | |
247 | endif | |
52af5b99 BP |
248 | if HAVE_WNO_UNUSED_PARAMETER |
249 | lib_libsflow_a_CFLAGS += -Wno-unused-parameter | |
250 | endif | |
c72e245a | 251 | |
361906b1 | 252 | if LINUX_DATAPATH |
064af421 | 253 | lib_libopenvswitch_a_SOURCES += \ |
c83cdd30 | 254 | lib/dpif-linux.c \ |
9fe3b9a2 | 255 | lib/dpif-linux.h \ |
c83cdd30 | 256 | lib/netdev-linux.c \ |
d3980822 | 257 | lib/netdev-linux.h \ |
45c8d3a1 EJ |
258 | lib/netlink-notifier.c \ |
259 | lib/netlink-notifier.h \ | |
064af421 | 260 | lib/netlink-protocol.h \ |
2fe27d5a BP |
261 | lib/netlink-socket.c \ |
262 | lib/netlink-socket.h \ | |
21d6e22e | 263 | lib/rtnetlink-link.c \ |
ea83a2fc | 264 | lib/rtnetlink-link.h \ |
a132aa96 EJ |
265 | lib/route-table.c \ |
266 | lib/route-table.h | |
064af421 BP |
267 | endif |
268 | ||
97eba8fc BP |
269 | if HAVE_POSIX_AIO |
270 | lib_libopenvswitch_a_SOURCES += lib/async-append-aio.c | |
271 | else | |
888e0cf4 | 272 | lib_libopenvswitch_a_SOURCES += lib/async-append-null.c |
97eba8fc BP |
273 | endif |
274 | ||
361906b1 EJ |
275 | if ESX |
276 | lib_libopenvswitch_a_SOURCES += \ | |
277 | lib/route-table-stub.c | |
278 | endif | |
279 | ||
9360d9b7 EM |
280 | if HAVE_IF_DL |
281 | lib_libopenvswitch_a_SOURCES += \ | |
f6eb6b20 GL |
282 | lib/netdev-bsd.c \ |
283 | lib/rtbsd.c \ | |
284 | lib/rtbsd.h \ | |
9360d9b7 EM |
285 | lib/route-table-bsd.c |
286 | endif | |
287 | ||
064af421 | 288 | if HAVE_OPENSSL |
fe55ad15 | 289 | lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c |
424d1282 | 290 | nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c |
064af421 BP |
291 | lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem |
292 | (echo '#include "lib/dhparams.h"' && \ | |
293 | openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \ | |
294 | openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \ | |
295 | openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \ | |
296 | | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp | |
297 | mv lib/dhparams.c.tmp lib/dhparams.c | |
bf8f2167 BP |
298 | else |
299 | lib_libopenvswitch_a_SOURCES += lib/stream-nossl.c | |
064af421 BP |
300 | endif |
301 | ||
302 | EXTRA_DIST += \ | |
303 | lib/dh1024.pem \ | |
304 | lib/dh2048.pem \ | |
b43c6fe2 BP |
305 | lib/dh4096.pem \ |
306 | lib/dirs.c.in | |
064af421 | 307 | |
0027492d | 308 | MAN_FRAGMENTS += \ |
064af421 | 309 | lib/common.man \ |
f7f62235 | 310 | lib/common-syn.man \ |
a5f607bc | 311 | lib/coverage-unixctl.man \ |
064af421 | 312 | lib/daemon.man \ |
f7f62235 | 313 | lib/daemon-syn.man \ |
149ff68a | 314 | lib/memory-unixctl.man \ |
020c9387 | 315 | lib/ofp-version.man \ |
23edef9e | 316 | lib/ovs.tmac \ |
84ee7bcf | 317 | lib/ssl-bootstrap.man \ |
9467fe62 | 318 | lib/ssl-bootstrap-syn.man \ |
84ee7bcf BP |
319 | lib/ssl-peer-ca-cert.man \ |
320 | lib/ssl.man \ | |
9467fe62 | 321 | lib/ssl-syn.man \ |
3a3eb9da | 322 | lib/table.man \ |
7b38bdc8 BP |
323 | lib/unixctl.man \ |
324 | lib/unixctl-syn.man \ | |
84ee7bcf BP |
325 | lib/vconn-active.man \ |
326 | lib/vconn-passive.man \ | |
b16fdafe | 327 | lib/vlog-unixctl.man \ |
f7f62235 | 328 | lib/vlog-syn.man \ |
064af421 BP |
329 | lib/vlog.man |
330 | ||
6e037e3c EJ |
331 | # vswitch IDL |
332 | OVSIDL_BUILT += \ | |
e3a88027 EJ |
333 | $(srcdir)/lib/vswitch-idl.c \ |
334 | $(srcdir)/lib/vswitch-idl.h \ | |
335 | $(srcdir)/lib/vswitch-idl.ovsidl | |
6e037e3c | 336 | |
e3a88027 | 337 | EXTRA_DIST += $(srcdir)/lib/vswitch-idl.ann |
8c8c0f3a BP |
338 | VSWITCH_IDL_FILES = \ |
339 | $(srcdir)/vswitchd/vswitch.ovsschema \ | |
340 | $(srcdir)/lib/vswitch-idl.ann | |
e3a88027 | 341 | $(srcdir)/lib/vswitch-idl.ovsidl: $(VSWITCH_IDL_FILES) |
8c8c0f3a | 342 | $(OVSDB_IDLC) annotate $(VSWITCH_IDL_FILES) > $@.tmp |
6e037e3c EJ |
343 | mv $@.tmp $@ |
344 | ||
b43c6fe2 BP |
345 | lib/dirs.c: lib/dirs.c.in Makefile |
346 | ($(ro_c) && sed < $(srcdir)/lib/dirs.c.in \ | |
347 | -e 's,[@]srcdir[@],$(srcdir),g' \ | |
348 | -e 's,[@]LOGDIR[@],"$(LOGDIR)",g' \ | |
349 | -e 's,[@]RUNDIR[@],"$(RUNDIR)",g' \ | |
f973f2af | 350 | -e 's,[@]DBDIR[@],"$(DBDIR)",g' \ |
b43c6fe2 | 351 | -e 's,[@]bindir[@],"$(bindir)",g' \ |
2fad9ebd | 352 | -e 's,[@]sysconfdir[@],"$(sysconfdir)",g' \ |
b43c6fe2 BP |
353 | -e 's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \ |
354 | > lib/dirs.c.tmp | |
064af421 BP |
355 | mv lib/dirs.c.tmp lib/dirs.c |
356 | ||
90bf1e07 | 357 | $(srcdir)/lib/ofp-errors.inc: \ |
514887ee BP |
358 | lib/ofp-errors.h include/openflow/openflow-common.h \ |
359 | $(srcdir)/build-aux/extract-ofp-errors | |
853d1083 | 360 | $(run_python) $(srcdir)/build-aux/extract-ofp-errors \ |
514887ee BP |
361 | $(srcdir)/lib/ofp-errors.h \ |
362 | $(srcdir)/include/openflow/openflow-common.h > $@.tmp | |
363 | mv $@.tmp $@ | |
a082dd9b | 364 | $(srcdir)/lib/ofp-errors.c: $(srcdir)/lib/ofp-errors.inc |
90bf1e07 | 365 | EXTRA_DIST += build-aux/extract-ofp-errors lib/ofp-errors.inc |
dc4762ed | 366 | |
982697a4 BP |
367 | $(srcdir)/lib/ofp-msgs.inc: \ |
368 | lib/ofp-msgs.h $(srcdir)/build-aux/extract-ofp-msgs | |
369 | $(run_python) $(srcdir)/build-aux/extract-ofp-msgs \ | |
370 | $(srcdir)/lib/ofp-msgs.h $@ > $@.tmp && mv $@.tmp $@ | |
371 | $(srcdir)/lib/ofp-msgs.c: $(srcdir)/lib/ofp-msgs.inc | |
372 | EXTRA_DIST += build-aux/extract-ofp-msgs lib/ofp-msgs.inc | |
373 | ||
b2df0225 | 374 | INSTALL_DATA_LOCAL += lib-install-data-local |
99155935 | 375 | lib-install-data-local: |
064af421 BP |
376 | $(MKDIR_P) $(DESTDIR)$(RUNDIR) |
377 | $(MKDIR_P) $(DESTDIR)$(PKIDIR) | |
378 | $(MKDIR_P) $(DESTDIR)$(LOGDIR) | |
f973f2af | 379 | $(MKDIR_P) $(DESTDIR)$(DBDIR) |
064af421 | 380 | |
d76f09ea | 381 | if !USE_LINKER_SECTIONS |
611d30ce BP |
382 | # All distributed sources, with names adjust properly for referencing |
383 | # from $(builddir). | |
384 | all_sources = \ | |
385 | `for file in $(DIST_SOURCES); do \ | |
386 | if test -f $$file; then \ | |
387 | echo $$file; \ | |
388 | else \ | |
389 | echo $(VPATH)/$$file; \ | |
390 | fi; \ | |
391 | done` | |
392 | ||
d76f09ea BP |
393 | lib/coverage.$(OBJEXT): lib/coverage.def |
394 | lib/coverage.def: $(DIST_SOURCES) | |
395 | sed -n 's|^COVERAGE_DEFINE(\([_a-zA-Z0-9]\{1,\}\)).*$$|COVERAGE_COUNTER(\1)|p' $(all_sources) | LC_ALL=C sort -u > $@ | |
396 | CLEANFILES += lib/coverage.def | |
22c79496 | 397 | |
611d30ce BP |
398 | lib/vlog.$(OBJEXT): lib/vlog-modules.def |
399 | lib/vlog-modules.def: $(DIST_SOURCES) | |
400 | sed -n 's|^VLOG_DEFINE_\(THIS_\)\{0,1\}MODULE(\([_a-zA-Z0-9]\{1,\}\)).*$$|VLOG_MODULE(\2)|p' $(all_sources) | LC_ALL=C sort -u > $@ | |
401 | CLEANFILES += lib/vlog-modules.def | |
402 | endif |