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