]>
Commit | Line | Data |
---|---|---|
b8e67377 | 1 | # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 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 | ||
38b7a52b | 8 | lib_LTLIBRARIES += lib/libopenvswitch.la |
064af421 | 9 | |
38b7a52b | 10 | lib_libopenvswitch_la_LIBADD = $(SSL_LIBS) |
94887cf4 GS |
11 | |
12 | if WIN32 | |
13 | lib_libopenvswitch_la_LIBADD += ${PTHREAD_LIBS} | |
14 | endif | |
15 | ||
7f2f24e3 SM |
16 | lib_libopenvswitch_la_LDFLAGS = \ |
17 | -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ | |
a4353e20 TG |
18 | -Wl,--version-script=$(top_builddir)/lib/libopenvswitch.sym \ |
19 | $(AM_LDFLAGS) | |
38b7a52b HS |
20 | |
21 | lib_libopenvswitch_la_SOURCES = \ | |
d918d9d1 BP |
22 | lib/aes128.c \ |
23 | lib/aes128.h \ | |
97eba8fc | 24 | lib/async-append.h \ |
064af421 BP |
25 | lib/backtrace.c \ |
26 | lib/backtrace.h \ | |
ccc09689 EJ |
27 | lib/bfd.c \ |
28 | lib/bfd.h \ | |
064af421 | 29 | lib/bitmap.h \ |
daff3353 EJ |
30 | lib/bundle.c \ |
31 | lib/bundle.h \ | |
10a24935 | 32 | lib/byte-order.h \ |
1c617a49 BP |
33 | lib/byteq.c \ |
34 | lib/byteq.h \ | |
b31bcf60 EJ |
35 | lib/cfm.c \ |
36 | lib/cfm.h \ | |
064af421 BP |
37 | lib/classifier.c \ |
38 | lib/classifier.h \ | |
38c449e0 | 39 | lib/classifier-private.h \ |
0e666160 BP |
40 | lib/cmap.c \ |
41 | lib/cmap.h \ | |
064af421 BP |
42 | lib/command-line.c \ |
43 | lib/command-line.h \ | |
44 | lib/compiler.h \ | |
da4a6191 JS |
45 | lib/connectivity.c \ |
46 | lib/connectivity.h \ | |
064af421 BP |
47 | lib/coverage.c \ |
48 | lib/coverage.h \ | |
97025b23 JS |
49 | lib/crc32c.c \ |
50 | lib/crc32c.h \ | |
064af421 BP |
51 | lib/csum.c \ |
52 | lib/csum.h \ | |
d6bc33f3 | 53 | lib/daemon.c \ |
064af421 | 54 | lib/daemon.h \ |
3834bcf2 | 55 | lib/daemon-private.h \ |
195c8086 | 56 | lib/dhcp.h \ |
614c4892 BP |
57 | lib/dummy.c \ |
58 | lib/dummy.h \ | |
064af421 | 59 | lib/dhparams.h \ |
064af421 | 60 | lib/dirs.h \ |
fceef209 DDP |
61 | lib/dpctl.c \ |
62 | lib/dpctl.h \ | |
72865317 | 63 | lib/dpif-netdev.c \ |
df1e5a3b | 64 | lib/dpif-netdev.h \ |
96fba48f BP |
65 | lib/dpif-provider.h \ |
66 | lib/dpif.c \ | |
67 | lib/dpif.h \ | |
95974447 BP |
68 | lib/heap.c \ |
69 | lib/heap.h \ | |
064af421 BP |
70 | lib/dynamic-string.c \ |
71 | lib/dynamic-string.h \ | |
e251c8d0 BP |
72 | lib/entropy.c \ |
73 | lib/entropy.h \ | |
b8e67377 BP |
74 | lib/fat-rwlock.c \ |
75 | lib/fat-rwlock.h \ | |
064af421 BP |
76 | lib/fatal-signal.c \ |
77 | lib/fatal-signal.h \ | |
064af421 BP |
78 | lib/flow.c \ |
79 | lib/flow.h \ | |
05067881 BP |
80 | lib/guarded-list.c \ |
81 | lib/guarded-list.h \ | |
064af421 BP |
82 | lib/hash.c \ |
83 | lib/hash.h \ | |
822b7f52 BP |
84 | lib/hindex.c \ |
85 | lib/hindex.h \ | |
064af421 BP |
86 | lib/hmap.c \ |
87 | lib/hmap.h \ | |
f4ac3fc1 BP |
88 | lib/hmapx.c \ |
89 | lib/hmapx.h \ | |
c3bd4bfc SH |
90 | lib/id-pool.c \ |
91 | lib/id-pool.h \ | |
c49d1dd1 BP |
92 | lib/jhash.c \ |
93 | lib/jhash.h \ | |
f38b84ea BP |
94 | lib/json.c \ |
95 | lib/json.h \ | |
f2129093 BP |
96 | lib/jsonrpc.c \ |
97 | lib/jsonrpc.h \ | |
6aa74308 EJ |
98 | lib/lacp.c \ |
99 | lib/lacp.h \ | |
aad84c8e | 100 | lib/latch.h \ |
75a75043 BP |
101 | lib/learn.c \ |
102 | lib/learn.h \ | |
064af421 BP |
103 | lib/learning-switch.c \ |
104 | lib/learning-switch.h \ | |
064af421 | 105 | lib/list.h \ |
ac718c9d BP |
106 | lib/lockfile.c \ |
107 | lib/lockfile.h \ | |
064af421 BP |
108 | lib/mac-learning.c \ |
109 | lib/mac-learning.h \ | |
81a76618 BP |
110 | lib/match.c \ |
111 | lib/match.h \ | |
4a95091d FL |
112 | lib/mcast-snooping.c \ |
113 | lib/mcast-snooping.h \ | |
0d085684 BP |
114 | lib/memory.c \ |
115 | lib/memory.h \ | |
6a885fd0 BP |
116 | lib/meta-flow.c \ |
117 | lib/meta-flow.h \ | |
53ddd40a BP |
118 | lib/multipath.c \ |
119 | lib/multipath.h \ | |
614c4892 | 120 | lib/netdev-dummy.c \ |
5146acb1 | 121 | lib/netdev-provider.h \ |
c060c4cf EJ |
122 | lib/netdev-vport.c \ |
123 | lib/netdev-vport.h \ | |
064af421 BP |
124 | lib/netdev.c \ |
125 | lib/netdev.h \ | |
9c8e276e | 126 | lib/netflow.h \ |
2fe27d5a BP |
127 | lib/netlink.c \ |
128 | lib/netlink.h \ | |
09246b99 BP |
129 | lib/nx-match.c \ |
130 | lib/nx-match.h \ | |
f094af7b SH |
131 | lib/odp-execute.c \ |
132 | lib/odp-execute.h \ | |
064af421 BP |
133 | lib/odp-util.c \ |
134 | lib/odp-util.h \ | |
f25d0cf3 BP |
135 | lib/ofp-actions.c \ |
136 | lib/ofp-actions.h \ | |
dc4762ed BP |
137 | lib/ofp-errors.c \ |
138 | lib/ofp-errors.h \ | |
982697a4 BP |
139 | lib/ofp-msgs.c \ |
140 | lib/ofp-msgs.h \ | |
f22716dc JP |
141 | lib/ofp-parse.c \ |
142 | lib/ofp-parse.h \ | |
064af421 BP |
143 | lib/ofp-print.c \ |
144 | lib/ofp-print.h \ | |
fa37b408 BP |
145 | lib/ofp-util.c \ |
146 | lib/ofp-util.h \ | |
020c9387 SH |
147 | lib/ofp-version-opt.h \ |
148 | lib/ofp-version-opt.c \ | |
064af421 BP |
149 | lib/ofpbuf.c \ |
150 | lib/ofpbuf.h \ | |
31a3fc6e | 151 | lib/ovs-atomic-c11.h \ |
29ab0cf7 BP |
152 | lib/ovs-atomic-clang.h \ |
153 | lib/ovs-atomic-flag-gcc4.7+.h \ | |
31a3fc6e BP |
154 | lib/ovs-atomic-gcc4+.h \ |
155 | lib/ovs-atomic-gcc4.7+.h \ | |
105a9298 | 156 | lib/ovs-atomic-i586.h \ |
1bd2c9ed BP |
157 | lib/ovs-atomic-locked.c \ |
158 | lib/ovs-atomic-locked.h \ | |
ec2d2b5f | 159 | lib/ovs-atomic-msvc.h \ |
31a3fc6e | 160 | lib/ovs-atomic-pthreads.h \ |
f31841d5 | 161 | lib/ovs-atomic-x86_64.h \ |
31a3fc6e | 162 | lib/ovs-atomic.h \ |
0f2ea848 BP |
163 | lib/ovs-rcu.c \ |
164 | lib/ovs-rcu.h \ | |
2d2b28d5 | 165 | lib/ovs-router.h \ |
ec68790f BP |
166 | lib/ovs-thread.c \ |
167 | lib/ovs-thread.h \ | |
f85f8ebb BP |
168 | lib/ovsdb-data.c \ |
169 | lib/ovsdb-data.h \ | |
170 | lib/ovsdb-error.c \ | |
171 | lib/ovsdb-error.h \ | |
c3bb4bd7 BP |
172 | lib/ovsdb-idl-provider.h \ |
173 | lib/ovsdb-idl.c \ | |
174 | lib/ovsdb-idl.h \ | |
f85f8ebb BP |
175 | lib/ovsdb-parser.c \ |
176 | lib/ovsdb-parser.h \ | |
177 | lib/ovsdb-types.c \ | |
178 | lib/ovsdb-types.h \ | |
91088554 DDP |
179 | lib/packet-dpif.c \ |
180 | lib/packet-dpif.h \ | |
b9e8b45a | 181 | lib/packets.c \ |
064af421 | 182 | lib/packets.h \ |
2c78a3e6 SS |
183 | lib/pcap-file.c \ |
184 | lib/pcap-file.h \ | |
064af421 BP |
185 | lib/poll-loop.c \ |
186 | lib/poll-loop.h \ | |
064af421 BP |
187 | lib/process.c \ |
188 | lib/process.h \ | |
fe7cfa5c JR |
189 | lib/pvector.c \ |
190 | lib/pvector.h \ | |
064af421 BP |
191 | lib/random.c \ |
192 | lib/random.h \ | |
193 | lib/rconn.c \ | |
194 | lib/rconn.h \ | |
9f22b0cf JR |
195 | lib/rculist.c \ |
196 | lib/rculist.h \ | |
3ed497fc BP |
197 | lib/reconnect.c \ |
198 | lib/reconnect.h \ | |
9efd308e DV |
199 | lib/rstp.c \ |
200 | lib/rstp.h \ | |
201 | lib/rstp-common.h \ | |
202 | lib/rstp-state-machines.c \ | |
203 | lib/rstp-state-machines.h \ | |
064af421 | 204 | lib/sat-math.h \ |
55b40355 BP |
205 | lib/seq.c \ |
206 | lib/seq.h \ | |
064af421 BP |
207 | lib/sha1.c \ |
208 | lib/sha1.h \ | |
209 | lib/shash.c \ | |
210 | lib/shash.h \ | |
44bac24b BP |
211 | lib/simap.c \ |
212 | lib/simap.h \ | |
79f1cbe9 EJ |
213 | lib/smap.c \ |
214 | lib/smap.h \ | |
064af421 BP |
215 | lib/socket-util.c \ |
216 | lib/socket-util.h \ | |
f85f8ebb BP |
217 | lib/sort.c \ |
218 | lib/sort.h \ | |
f391294f BP |
219 | lib/sset.c \ |
220 | lib/sset.h \ | |
829a7d02 JP |
221 | lib/stp.c \ |
222 | lib/stp.h \ | |
c48f691f | 223 | lib/stream-fd.c \ |
c34b65c7 BP |
224 | lib/stream-fd.h \ |
225 | lib/stream-provider.h \ | |
9467fe62 | 226 | lib/stream-ssl.h \ |
c34b65c7 | 227 | lib/stream-tcp.c \ |
c34b65c7 BP |
228 | lib/stream.c \ |
229 | lib/stream.h \ | |
cde1c287 | 230 | lib/stdio.c \ |
71d7c22f | 231 | lib/string.c \ |
064af421 BP |
232 | lib/svec.c \ |
233 | lib/svec.h \ | |
3a3eb9da BP |
234 | lib/table.c \ |
235 | lib/table.h \ | |
b63e3bbc BP |
236 | lib/tag.c \ |
237 | lib/tag.h \ | |
8650b075 EJ |
238 | lib/timer.c \ |
239 | lib/timer.h \ | |
064af421 BP |
240 | lib/timeval.c \ |
241 | lib/timeval.h \ | |
648f4f1f BP |
242 | lib/token-bucket.c \ |
243 | lib/token-bucket.h \ | |
064af421 | 244 | lib/type-props.h \ |
afa3a931 | 245 | lib/unaligned.h \ |
f38b84ea BP |
246 | lib/unicode.c \ |
247 | lib/unicode.h \ | |
fa0361b7 GG |
248 | lib/unixctl.c \ |
249 | lib/unixctl.h \ | |
064af421 BP |
250 | lib/util.c \ |
251 | lib/util.h \ | |
fa0361b7 GG |
252 | lib/uuid.c \ |
253 | lib/uuid.h \ | |
064af421 BP |
254 | lib/valgrind.h \ |
255 | lib/vconn-provider.h \ | |
064af421 | 256 | lib/vconn-stream.c \ |
064af421 BP |
257 | lib/vconn.c \ |
258 | lib/vconn.h \ | |
0fb7b915 BP |
259 | lib/vlan-bitmap.c \ |
260 | lib/vlan-bitmap.h \ | |
025e874a BP |
261 | lib/vlandev.c \ |
262 | lib/vlandev.h \ | |
064af421 | 263 | lib/vlog.c \ |
6e037e3c EJ |
264 | lib/vlog.h \ |
265 | lib/vswitch-idl.c \ | |
add17b69 BD |
266 | lib/vswitch-idl.h \ |
267 | lib/vtep-idl.c \ | |
268 | lib/vtep-idl.h | |
9d0581fd | 269 | |
4ca828d7 | 270 | if WIN32 |
9d0581fd | 271 | lib_libopenvswitch_la_SOURCES += \ |
fda546bd | 272 | lib/daemon-windows.c \ |
9d0581fd | 273 | lib/getopt_long.c \ |
1680d3d7 | 274 | lib/getrusage-windows.c \ |
6500157f | 275 | lib/latch-windows.c \ |
7482ddda | 276 | lib/route-table-stub.c \ |
c48f691f | 277 | lib/strsep.c |
4ca828d7 | 278 | else |
9d0581fd | 279 | lib_libopenvswitch_la_SOURCES += \ |
a91dc444 | 280 | lib/daemon-unix.c \ |
6500157f | 281 | lib/latch-unix.c \ |
60567113 GS |
282 | lib/signals.c \ |
283 | lib/signals.h \ | |
7f1e1c7f | 284 | lib/socket-util-unix.c \ |
7ff04d92 | 285 | lib/stream-unix.c |
4ca828d7 LS |
286 | endif |
287 | ||
cde1c287 BP |
288 | EXTRA_DIST += \ |
289 | lib/stdio.h.in \ | |
290 | lib/string.h.in | |
6e037e3c | 291 | |
38b7a52b | 292 | nodist_lib_libopenvswitch_la_SOURCES = \ |
424d1282 | 293 | lib/dirs.c |
38b7a52b | 294 | CLEANFILES += $(nodist_lib_libopenvswitch_la_SOURCES) |
064af421 | 295 | |
38b7a52b | 296 | lib_LTLIBRARIES += lib/libsflow.la |
7f2f24e3 SM |
297 | lib_libsflow_la_LDFLAGS = \ |
298 | -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ | |
a4353e20 TG |
299 | -Wl,--version-script=$(top_builddir)/lib/libsflow.sym \ |
300 | $(AM_LDFLAGS) | |
38b7a52b | 301 | lib_libsflow_la_SOURCES = \ |
c72e245a BP |
302 | lib/sflow_api.h \ |
303 | lib/sflow.h \ | |
304 | lib/sflow_agent.c \ | |
305 | lib/sflow_sampler.c \ | |
306 | lib/sflow_poller.c \ | |
307 | lib/sflow_receiver.c | |
38b7a52b HS |
308 | lib_libsflow_la_CPPFLAGS = $(AM_CPPFLAGS) |
309 | lib_libsflow_la_CFLAGS = $(AM_CFLAGS) | |
c72e245a | 310 | if HAVE_WNO_UNUSED |
38b7a52b | 311 | lib_libsflow_la_CFLAGS += -Wno-unused |
c72e245a | 312 | endif |
52af5b99 | 313 | if HAVE_WNO_UNUSED_PARAMETER |
38b7a52b | 314 | lib_libsflow_la_CFLAGS += -Wno-unused-parameter |
52af5b99 | 315 | endif |
c72e245a | 316 | |
5020f5f0 | 317 | if LINUX |
38b7a52b | 318 | lib_libopenvswitch_la_SOURCES += \ |
93451a0a AS |
319 | lib/dpif-netlink.c \ |
320 | lib/dpif-netlink.h \ | |
c83cdd30 | 321 | lib/netdev-linux.c \ |
d3980822 | 322 | lib/netdev-linux.h \ |
45c8d3a1 EJ |
323 | lib/netlink-notifier.c \ |
324 | lib/netlink-notifier.h \ | |
064af421 | 325 | lib/netlink-protocol.h \ |
2fe27d5a BP |
326 | lib/netlink-socket.c \ |
327 | lib/netlink-socket.h \ | |
7c5a3bbf AW |
328 | lib/ovs-numa.c \ |
329 | lib/ovs-numa.h \ | |
d9b4ebc5 | 330 | lib/ovs-router.c \ |
2d2b28d5 | 331 | lib/ovs-router-linux.h \ |
21d6e22e | 332 | lib/rtnetlink-link.c \ |
ea83a2fc | 333 | lib/rtnetlink-link.h \ |
a132aa96 EJ |
334 | lib/route-table.c \ |
335 | lib/route-table.h | |
064af421 BP |
336 | endif |
337 | ||
8a9562d2 PS |
338 | if DPDK_NETDEV |
339 | lib_libopenvswitch_la_SOURCES += \ | |
340 | lib/netdev-dpdk.c \ | |
341 | lib/netdev-dpdk.h | |
342 | endif | |
343 | ||
d5e27716 AS |
344 | if WIN32 |
345 | lib_libopenvswitch_la_SOURCES += \ | |
93451a0a AS |
346 | lib/dpif-netlink.c \ |
347 | lib/dpif-netlink.h \ | |
078eedf4 | 348 | lib/netdev-windows.c \ |
d5e27716 AS |
349 | lib/netlink-notifier.c \ |
350 | lib/netlink-notifier.h \ | |
351 | lib/netlink-protocol.h \ | |
352 | lib/netlink-socket.c \ | |
353 | lib/netlink-socket.h | |
354 | endif | |
355 | ||
97eba8fc | 356 | if HAVE_POSIX_AIO |
38b7a52b | 357 | lib_libopenvswitch_la_SOURCES += lib/async-append-aio.c |
97eba8fc | 358 | else |
38b7a52b | 359 | lib_libopenvswitch_la_SOURCES += lib/async-append-null.c |
97eba8fc BP |
360 | endif |
361 | ||
361906b1 | 362 | if ESX |
38b7a52b | 363 | lib_libopenvswitch_la_SOURCES += \ |
361906b1 EJ |
364 | lib/route-table-stub.c |
365 | endif | |
366 | ||
9360d9b7 | 367 | if HAVE_IF_DL |
38b7a52b | 368 | lib_libopenvswitch_la_SOURCES += \ |
f6eb6b20 GL |
369 | lib/netdev-bsd.c \ |
370 | lib/rtbsd.c \ | |
371 | lib/rtbsd.h \ | |
9360d9b7 EM |
372 | lib/route-table-bsd.c |
373 | endif | |
374 | ||
064af421 | 375 | if HAVE_OPENSSL |
38b7a52b HS |
376 | lib_libopenvswitch_la_SOURCES += lib/stream-ssl.c |
377 | nodist_lib_libopenvswitch_la_SOURCES += lib/dhparams.c | |
064af421 | 378 | lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem |
ef44aa50 | 379 | $(AM_V_GEN)(echo '#include "lib/dhparams.h"' && \ |
064af421 BP |
380 | openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \ |
381 | openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \ | |
382 | openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \ | |
ef44aa50 | 383 | | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp && \ |
064af421 | 384 | mv lib/dhparams.c.tmp lib/dhparams.c |
bf8f2167 | 385 | else |
38b7a52b | 386 | lib_libopenvswitch_la_SOURCES += lib/stream-nossl.c |
064af421 BP |
387 | endif |
388 | ||
389 | EXTRA_DIST += \ | |
390 | lib/dh1024.pem \ | |
391 | lib/dh2048.pem \ | |
b43c6fe2 BP |
392 | lib/dh4096.pem \ |
393 | lib/dirs.c.in | |
064af421 | 394 | |
0027492d | 395 | MAN_FRAGMENTS += \ |
064af421 | 396 | lib/common.man \ |
f7f62235 | 397 | lib/common-syn.man \ |
a5f607bc | 398 | lib/coverage-unixctl.man \ |
064af421 | 399 | lib/daemon.man \ |
f7f62235 | 400 | lib/daemon-syn.man \ |
fceef209 | 401 | lib/dpctl.man \ |
149ff68a | 402 | lib/memory-unixctl.man \ |
020c9387 | 403 | lib/ofp-version.man \ |
23edef9e | 404 | lib/ovs.tmac \ |
fda546bd GS |
405 | lib/service.man \ |
406 | lib/service-syn.man \ | |
84ee7bcf | 407 | lib/ssl-bootstrap.man \ |
9467fe62 | 408 | lib/ssl-bootstrap-syn.man \ |
84ee7bcf BP |
409 | lib/ssl-peer-ca-cert.man \ |
410 | lib/ssl.man \ | |
9467fe62 | 411 | lib/ssl-syn.man \ |
3a3eb9da | 412 | lib/table.man \ |
7b38bdc8 BP |
413 | lib/unixctl.man \ |
414 | lib/unixctl-syn.man \ | |
84ee7bcf BP |
415 | lib/vconn-active.man \ |
416 | lib/vconn-passive.man \ | |
b16fdafe | 417 | lib/vlog-unixctl.man \ |
f7f62235 | 418 | lib/vlog-syn.man \ |
064af421 BP |
419 | lib/vlog.man |
420 | ||
6e037e3c EJ |
421 | # vswitch IDL |
422 | OVSIDL_BUILT += \ | |
e3a88027 EJ |
423 | $(srcdir)/lib/vswitch-idl.c \ |
424 | $(srcdir)/lib/vswitch-idl.h \ | |
add17b69 BD |
425 | $(srcdir)/lib/vswitch-idl.ovsidl \ |
426 | $(srcdir)/lib/vtep-idl.c \ | |
427 | $(srcdir)/lib/vtep-idl.h \ | |
428 | $(srcdir)/lib/vtep-idl.ovsidl | |
6e037e3c | 429 | |
e3a88027 | 430 | EXTRA_DIST += $(srcdir)/lib/vswitch-idl.ann |
8c8c0f3a BP |
431 | VSWITCH_IDL_FILES = \ |
432 | $(srcdir)/vswitchd/vswitch.ovsschema \ | |
433 | $(srcdir)/lib/vswitch-idl.ann | |
e3a88027 | 434 | $(srcdir)/lib/vswitch-idl.ovsidl: $(VSWITCH_IDL_FILES) |
ef44aa50 | 435 | $(AM_V_GEN)$(OVSDB_IDLC) annotate $(VSWITCH_IDL_FILES) > $@.tmp && \ |
6e037e3c EJ |
436 | mv $@.tmp $@ |
437 | ||
add17b69 BD |
438 | EXTRA_DIST += $(srcdir)/lib/vtep-idl.ann |
439 | VTEP_IDL_FILES = \ | |
440 | $(srcdir)/vtep/vtep.ovsschema \ | |
441 | $(srcdir)/lib/vtep-idl.ann | |
442 | $(srcdir)/lib/vtep-idl.ovsidl: $(VTEP_IDL_FILES) | |
ef44aa50 | 443 | $(AM_V_GEN)$(OVSDB_IDLC) annotate $(VTEP_IDL_FILES) > $@.tmp && \ |
add17b69 BD |
444 | mv $@.tmp $@ |
445 | ||
b43c6fe2 | 446 | lib/dirs.c: lib/dirs.c.in Makefile |
ef44aa50 | 447 | $(AM_V_GEN)($(ro_c) && sed < $(srcdir)/lib/dirs.c.in \ |
b43c6fe2 BP |
448 | -e 's,[@]srcdir[@],$(srcdir),g' \ |
449 | -e 's,[@]LOGDIR[@],"$(LOGDIR)",g' \ | |
450 | -e 's,[@]RUNDIR[@],"$(RUNDIR)",g' \ | |
f973f2af | 451 | -e 's,[@]DBDIR[@],"$(DBDIR)",g' \ |
b43c6fe2 | 452 | -e 's,[@]bindir[@],"$(bindir)",g' \ |
2fad9ebd | 453 | -e 's,[@]sysconfdir[@],"$(sysconfdir)",g' \ |
b43c6fe2 | 454 | -e 's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \ |
ef44aa50 | 455 | > lib/dirs.c.tmp && \ |
064af421 BP |
456 | mv lib/dirs.c.tmp lib/dirs.c |
457 | ||
a4ce8b25 | 458 | lib/meta-flow.inc: $(srcdir)/build-aux/extract-ofp-fields lib/meta-flow.h |
178742f9 | 459 | $(AM_V_GEN)$(run_python) $^ --meta-flow > $@.tmp && mv $@.tmp $@ |
a4ce8b25 | 460 | lib/meta-flow.lo: lib/meta-flow.inc |
178742f9 BP |
461 | lib/nx-match.inc: $(srcdir)/build-aux/extract-ofp-fields lib/meta-flow.h |
462 | $(AM_V_GEN)$(run_python) $^ --nx-match > $@.tmp && mv $@.tmp $@ | |
463 | lib/nx-match.lo: lib/nx-match.inc | |
464 | CLEANFILES += lib/meta-flow.inc lib/nx-match.inc | |
a4ce8b25 BP |
465 | EXTRA_DIST += build-aux/extract-ofp-fields |
466 | ||
c2d936a4 | 467 | lib/ofp-actions.inc1: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c |
ef44aa50 | 468 | $(AM_V_GEN)$(run_python) $^ --prototypes > $@.tmp && mv $@.tmp $@ |
c2d936a4 | 469 | lib/ofp-actions.inc2: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c |
ef44aa50 | 470 | $(AM_V_GEN)$(run_python) $^ --definitions > $@.tmp && mv $@.tmp $@ |
c2d936a4 | 471 | lib/ofp-actions.lo: lib/ofp-actions.inc1 lib/ofp-actions.inc2 |
07ba3dbd | 472 | CLEANFILES += lib/ofp-actions.inc1 lib/ofp-actions.inc2 |
a4ce8b25 | 473 | EXTRA_DIST += build-aux/extract-ofp-actions |
c2d936a4 | 474 | |
90bf1e07 | 475 | $(srcdir)/lib/ofp-errors.inc: \ |
514887ee BP |
476 | lib/ofp-errors.h include/openflow/openflow-common.h \ |
477 | $(srcdir)/build-aux/extract-ofp-errors | |
ef44aa50 | 478 | $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-errors \ |
514887ee | 479 | $(srcdir)/lib/ofp-errors.h \ |
ef44aa50 | 480 | $(srcdir)/include/openflow/openflow-common.h > $@.tmp && \ |
514887ee | 481 | mv $@.tmp $@ |
a082dd9b | 482 | $(srcdir)/lib/ofp-errors.c: $(srcdir)/lib/ofp-errors.inc |
90bf1e07 | 483 | EXTRA_DIST += build-aux/extract-ofp-errors lib/ofp-errors.inc |
dc4762ed | 484 | |
982697a4 BP |
485 | $(srcdir)/lib/ofp-msgs.inc: \ |
486 | lib/ofp-msgs.h $(srcdir)/build-aux/extract-ofp-msgs | |
ef44aa50 | 487 | $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-msgs \ |
982697a4 BP |
488 | $(srcdir)/lib/ofp-msgs.h $@ > $@.tmp && mv $@.tmp $@ |
489 | $(srcdir)/lib/ofp-msgs.c: $(srcdir)/lib/ofp-msgs.inc | |
490 | EXTRA_DIST += build-aux/extract-ofp-msgs lib/ofp-msgs.inc | |
491 | ||
b2df0225 | 492 | INSTALL_DATA_LOCAL += lib-install-data-local |
99155935 | 493 | lib-install-data-local: |
064af421 BP |
494 | $(MKDIR_P) $(DESTDIR)$(RUNDIR) |
495 | $(MKDIR_P) $(DESTDIR)$(PKIDIR) | |
496 | $(MKDIR_P) $(DESTDIR)$(LOGDIR) | |
f973f2af | 497 | $(MKDIR_P) $(DESTDIR)$(DBDIR) |
064af421 | 498 |