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