]> git.proxmox.com Git - ovs.git/blame - lib/automake.mk
dpif-netlink: Support rtnetlink port creation.
[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 \
dc4762ed 152 lib/ofp-errors.c \
982697a4 153 lib/ofp-msgs.c \
f22716dc 154 lib/ofp-parse.c \
064af421 155 lib/ofp-print.c \
c5562271 156 lib/ofp-prop.c \
fa37b408 157 lib/ofp-util.c \
020c9387
SH
158 lib/ofp-version-opt.h \
159 lib/ofp-version-opt.c \
064af421 160 lib/ofpbuf.c \
31a3fc6e 161 lib/ovs-atomic-c11.h \
29ab0cf7
BP
162 lib/ovs-atomic-clang.h \
163 lib/ovs-atomic-flag-gcc4.7+.h \
31a3fc6e
BP
164 lib/ovs-atomic-gcc4+.h \
165 lib/ovs-atomic-gcc4.7+.h \
105a9298 166 lib/ovs-atomic-i586.h \
1bd2c9ed
BP
167 lib/ovs-atomic-locked.c \
168 lib/ovs-atomic-locked.h \
ec2d2b5f 169 lib/ovs-atomic-msvc.h \
31a3fc6e 170 lib/ovs-atomic-pthreads.h \
f31841d5 171 lib/ovs-atomic-x86_64.h \
31a3fc6e 172 lib/ovs-atomic.h \
be53a5c4
DF
173 lib/ovs-lldp.c \
174 lib/ovs-lldp.h \
93ce5762
DDP
175 lib/ovs-numa.c \
176 lib/ovs-numa.h \
0f2ea848
BP
177 lib/ovs-rcu.c \
178 lib/ovs-rcu.h \
2d2b28d5 179 lib/ovs-router.h \
88ffdc93 180 lib/ovs-router.c \
ec68790f
BP
181 lib/ovs-thread.c \
182 lib/ovs-thread.h \
f85f8ebb
BP
183 lib/ovsdb-data.c \
184 lib/ovsdb-data.h \
185 lib/ovsdb-error.c \
186 lib/ovsdb-error.h \
c3bb4bd7
BP
187 lib/ovsdb-idl-provider.h \
188 lib/ovsdb-idl.c \
189 lib/ovsdb-idl.h \
f199df26
EA
190 lib/ovsdb-map-op.c \
191 lib/ovsdb-map-op.h \
f1ab6e06
RM
192 lib/ovsdb-set-op.c \
193 lib/ovsdb-set-op.h \
16ebb90e
LS
194 lib/ovsdb-condition.h \
195 lib/ovsdb-condition.c \
f85f8ebb
BP
196 lib/ovsdb-parser.c \
197 lib/ovsdb-parser.h \
198 lib/ovsdb-types.c \
199 lib/ovsdb-types.h \
b9e8b45a 200 lib/packets.c \
064af421 201 lib/packets.h \
2c78a3e6
SS
202 lib/pcap-file.c \
203 lib/pcap-file.h \
619c3a42
AZ
204 lib/perf-counter.h \
205 lib/perf-counter.c \
064af421
BP
206 lib/poll-loop.c \
207 lib/poll-loop.h \
064af421
BP
208 lib/process.c \
209 lib/process.h \
fe7cfa5c
JR
210 lib/pvector.c \
211 lib/pvector.h \
064af421
BP
212 lib/random.c \
213 lib/random.h \
214 lib/rconn.c \
215 lib/rconn.h \
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 \
79f1cbe9
EJ
232 lib/smap.c \
233 lib/smap.h \
064af421
BP
234 lib/socket-util.c \
235 lib/socket-util.h \
f85f8ebb
BP
236 lib/sort.c \
237 lib/sort.h \
f391294f
BP
238 lib/sset.c \
239 lib/sset.h \
829a7d02
JP
240 lib/stp.c \
241 lib/stp.h \
c48f691f 242 lib/stream-fd.c \
c34b65c7
BP
243 lib/stream-fd.h \
244 lib/stream-provider.h \
9467fe62 245 lib/stream-ssl.h \
c34b65c7 246 lib/stream-tcp.c \
c34b65c7
BP
247 lib/stream.c \
248 lib/stream.h \
cde1c287 249 lib/stdio.c \
71d7c22f 250 lib/string.c \
064af421
BP
251 lib/svec.c \
252 lib/svec.h \
fe089c0d
AA
253 lib/syslog-direct.c \
254 lib/syslog-direct.h \
255 lib/syslog-libc.c \
256 lib/syslog-libc.h \
257 lib/syslog-provider.h \
3a3eb9da
BP
258 lib/table.c \
259 lib/table.h \
8650b075
EJ
260 lib/timer.c \
261 lib/timer.h \
064af421
BP
262 lib/timeval.c \
263 lib/timeval.h \
53902038
TLSC
264 lib/tnl-neigh-cache.c \
265 lib/tnl-neigh-cache.h \
a36de779
PS
266 lib/tnl-ports.c \
267 lib/tnl-ports.h \
6b241d64
PS
268 lib/netdev-native-tnl.c \
269 lib/netdev-native-tnl.h \
648f4f1f 270 lib/token-bucket.c \
9558d2a5 271 lib/tun-metadata.c \
6159c531 272 lib/tun-metadata.h \
afa3a931 273 lib/unaligned.h \
f38b84ea
BP
274 lib/unicode.c \
275 lib/unicode.h \
fa0361b7
GG
276 lib/unixctl.c \
277 lib/unixctl.h \
064af421
BP
278 lib/util.c \
279 lib/util.h \
fa0361b7
GG
280 lib/uuid.c \
281 lib/uuid.h \
064af421
BP
282 lib/valgrind.h \
283 lib/vconn-provider.h \
064af421 284 lib/vconn-stream.c \
064af421 285 lib/vconn.c \
44e0c35d 286 lib/versions.h \
aafee638 287 lib/vl-mff-map.h \
0fb7b915
BP
288 lib/vlan-bitmap.c \
289 lib/vlan-bitmap.h \
064af421 290 lib/vlog.c \
be53a5c4
DF
291 lib/lldp/aa-structs.h \
292 lib/lldp/lldp.c \
293 lib/lldp/lldp-const.h \
294 lib/lldp/lldp-tlv.h \
295 lib/lldp/lldpd.c \
296 lib/lldp/lldpd.h \
297 lib/lldp/lldpd-structs.c \
298 lib/lldp/lldpd-structs.h
9d0581fd 299
4ca828d7 300if WIN32
9d0581fd 301lib_libopenvswitch_la_SOURCES += \
fda546bd 302 lib/daemon-windows.c \
9d0581fd 303 lib/getopt_long.c \
1680d3d7 304 lib/getrusage-windows.c \
6500157f 305 lib/latch-windows.c \
7482ddda 306 lib/route-table-stub.c \
e21c6643 307 lib/if-notifier-stub.c \
922247c6 308 lib/stream-windows.c \
c48f691f 309 lib/strsep.c
4ca828d7 310else
9d0581fd 311lib_libopenvswitch_la_SOURCES += \
a91dc444 312 lib/daemon-unix.c \
6500157f 313 lib/latch-unix.c \
60567113
GS
314 lib/signals.c \
315 lib/signals.h \
7f1e1c7f 316 lib/socket-util-unix.c \
7ff04d92 317 lib/stream-unix.c
4ca828d7
LS
318endif
319
cde1c287
BP
320EXTRA_DIST += \
321 lib/stdio.h.in \
322 lib/string.h.in
6e037e3c 323
38b7a52b 324nodist_lib_libopenvswitch_la_SOURCES = \
90ffd534
BP
325 lib/dirs.c \
326 lib/vswitch-idl.c \
327 lib/vswitch-idl.h
38b7a52b 328CLEANFILES += $(nodist_lib_libopenvswitch_la_SOURCES)
064af421 329
38b7a52b 330lib_LTLIBRARIES += lib/libsflow.la
7f2f24e3 331lib_libsflow_la_LDFLAGS = \
cb991590 332 $(OVS_LTINFO) \
a4353e20
TG
333 -Wl,--version-script=$(top_builddir)/lib/libsflow.sym \
334 $(AM_LDFLAGS)
38b7a52b 335lib_libsflow_la_SOURCES = \
c72e245a
BP
336 lib/sflow_api.h \
337 lib/sflow.h \
338 lib/sflow_agent.c \
339 lib/sflow_sampler.c \
340 lib/sflow_poller.c \
341 lib/sflow_receiver.c
38b7a52b
HS
342lib_libsflow_la_CPPFLAGS = $(AM_CPPFLAGS)
343lib_libsflow_la_CFLAGS = $(AM_CFLAGS)
c72e245a 344if HAVE_WNO_UNUSED
38b7a52b 345lib_libsflow_la_CFLAGS += -Wno-unused
c72e245a 346endif
52af5b99 347if HAVE_WNO_UNUSED_PARAMETER
38b7a52b 348lib_libsflow_la_CFLAGS += -Wno-unused-parameter
52af5b99 349endif
c72e245a 350
5020f5f0 351if LINUX
38b7a52b 352lib_libopenvswitch_la_SOURCES += \
93451a0a
AS
353 lib/dpif-netlink.c \
354 lib/dpif-netlink.h \
c4e08753
EG
355 lib/dpif-netlink-rtnl.c \
356 lib/dpif-netlink-rtnl.h \
e21c6643
TLSC
357 lib/if-notifier.c \
358 lib/if-notifier.h \
c83cdd30 359 lib/netdev-linux.c \
d3980822 360 lib/netdev-linux.h \
6830a0c0
DDP
361 lib/netlink-conntrack.c \
362 lib/netlink-conntrack.h \
45c8d3a1
EJ
363 lib/netlink-notifier.c \
364 lib/netlink-notifier.h \
064af421 365 lib/netlink-protocol.h \
2fe27d5a
BP
366 lib/netlink-socket.c \
367 lib/netlink-socket.h \
7e9dcc0f
AW
368 lib/rtnetlink.c \
369 lib/rtnetlink.h \
a132aa96
EJ
370 lib/route-table.c \
371 lib/route-table.h
064af421
BP
372endif
373
8a9562d2
PS
374if DPDK_NETDEV
375lib_libopenvswitch_la_SOURCES += \
01961bbd
DDP
376 lib/dpdk.c \
377 lib/netdev-dpdk.c
bab69409
AC
378else
379lib_libopenvswitch_la_SOURCES += \
01961bbd 380 lib/dpdk-stub.c
8a9562d2
PS
381endif
382
d5e27716
AS
383if WIN32
384lib_libopenvswitch_la_SOURCES += \
93451a0a
AS
385 lib/dpif-netlink.c \
386 lib/dpif-netlink.h \
c4e08753 387 lib/dpif-netlink-rtnl.h \
078eedf4 388 lib/netdev-windows.c \
e0467f6d
SV
389 lib/netlink-conntrack.c \
390 lib/netlink-conntrack.h \
d5e27716
AS
391 lib/netlink-notifier.c \
392 lib/netlink-notifier.h \
393 lib/netlink-protocol.h \
394 lib/netlink-socket.c \
da467899
AS
395 lib/netlink-socket.h \
396 lib/wmi.c \
397 lib/wmi.h
d5e27716
AS
398endif
399
97eba8fc 400if HAVE_POSIX_AIO
38b7a52b 401lib_libopenvswitch_la_SOURCES += lib/async-append-aio.c
97eba8fc 402else
38b7a52b 403lib_libopenvswitch_la_SOURCES += lib/async-append-null.c
97eba8fc
BP
404endif
405
361906b1 406if ESX
38b7a52b 407lib_libopenvswitch_la_SOURCES += \
e21c6643
TLSC
408 lib/route-table-stub.c \
409 lib/if-notifier-stub.c
361906b1
EJ
410endif
411
9360d9b7 412if HAVE_IF_DL
38b7a52b 413lib_libopenvswitch_la_SOURCES += \
e21c6643 414 lib/if-notifier-bsd.c \
f6eb6b20
GL
415 lib/netdev-bsd.c \
416 lib/rtbsd.c \
417 lib/rtbsd.h \
9360d9b7
EM
418 lib/route-table-bsd.c
419endif
420
064af421 421if HAVE_OPENSSL
38b7a52b
HS
422lib_libopenvswitch_la_SOURCES += lib/stream-ssl.c
423nodist_lib_libopenvswitch_la_SOURCES += lib/dhparams.c
064af421 424lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
ef44aa50 425 $(AM_V_GEN)(echo '#include "lib/dhparams.h"' && \
064af421
BP
426 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
427 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
428 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
ef44aa50 429 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp && \
064af421 430 mv lib/dhparams.c.tmp lib/dhparams.c
bf8f2167 431else
38b7a52b 432lib_libopenvswitch_la_SOURCES += lib/stream-nossl.c
064af421
BP
433endif
434
81696de0 435pkgconfig_DATA += \
1e78e308
AC
436 lib/libopenvswitch.pc \
437 lib/libsflow.pc
81696de0 438
064af421
BP
439EXTRA_DIST += \
440 lib/dh1024.pem \
441 lib/dh2048.pem \
b43c6fe2 442 lib/dh4096.pem \
0fdc4312 443 lib/common.xml \
4acd1e87 444 lib/daemon.xml \
7ba0c32f 445 lib/dirs.c.in \
0fdc4312
BP
446 lib/db-ctl-base.xml \
447 lib/ssl.xml \
cfdaff25 448 lib/ssl-bootstrap.xml \
2b010c61 449 lib/table.xml \
0fdc4312 450 lib/vlog.xml
064af421 451
0027492d 452MAN_FRAGMENTS += \
e7019d99 453 lib/colors.man \
064af421 454 lib/common.man \
f7f62235 455 lib/common-syn.man \
a5f607bc 456 lib/coverage-unixctl.man \
064af421 457 lib/daemon.man \
f7f62235 458 lib/daemon-syn.man \
f6a2e156 459 lib/db-ctl-base.man \
fceef209 460 lib/dpctl.man \
149ff68a 461 lib/memory-unixctl.man \
020c9387 462 lib/ofp-version.man \
23edef9e 463 lib/ovs.tmac \
fda546bd
GS
464 lib/service.man \
465 lib/service-syn.man \
84ee7bcf 466 lib/ssl-bootstrap.man \
9467fe62 467 lib/ssl-bootstrap-syn.man \
84ee7bcf 468 lib/ssl-peer-ca-cert.man \
5bf6cbd6 469 lib/ssl-peer-ca-cert-syn.man \
84ee7bcf 470 lib/ssl.man \
9467fe62 471 lib/ssl-syn.man \
e18a1d08
ER
472 lib/ssl-connect.man \
473 lib/ssl-connect-syn.man \
3a3eb9da 474 lib/table.man \
7b38bdc8
BP
475 lib/unixctl.man \
476 lib/unixctl-syn.man \
84ee7bcf
BP
477 lib/vconn-active.man \
478 lib/vconn-passive.man \
b16fdafe 479 lib/vlog-unixctl.man \
f7f62235 480 lib/vlog-syn.man \
064af421
BP
481 lib/vlog.man
482
6e037e3c 483# vswitch IDL
ab70cd30 484OVSIDL_BUILT += lib/vswitch-idl.c lib/vswitch-idl.h lib/vswitch-idl.ovsidl
6e037e3c 485
ab70cd30 486EXTRA_DIST += lib/vswitch-idl.ann
1f7d1459 487lib/vswitch-idl.ovsidl: vswitchd/vswitch.ovsschema lib/vswitch-idl.ann
ab70cd30 488 $(AM_V_GEN)$(OVSDB_IDLC) annotate $(srcdir)/vswitchd/vswitch.ovsschema $(srcdir)/lib/vswitch-idl.ann > $@.tmp && mv $@.tmp $@
6e037e3c 489
b43c6fe2 490lib/dirs.c: lib/dirs.c.in Makefile
ef44aa50 491 $(AM_V_GEN)($(ro_c) && sed < $(srcdir)/lib/dirs.c.in \
b43c6fe2
BP
492 -e 's,[@]srcdir[@],$(srcdir),g' \
493 -e 's,[@]LOGDIR[@],"$(LOGDIR)",g' \
494 -e 's,[@]RUNDIR[@],"$(RUNDIR)",g' \
f973f2af 495 -e 's,[@]DBDIR[@],"$(DBDIR)",g' \
b43c6fe2 496 -e 's,[@]bindir[@],"$(bindir)",g' \
2fad9ebd 497 -e 's,[@]sysconfdir[@],"$(sysconfdir)",g' \
b43c6fe2 498 -e 's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
ef44aa50 499 > lib/dirs.c.tmp && \
064af421
BP
500 mv lib/dirs.c.tmp lib/dirs.c
501
064d7f84 502lib/meta-flow.inc: $(srcdir)/build-aux/extract-ofp-fields include/openvswitch/meta-flow.h
96fee5e0
BP
503 $(AM_V_GEN)$(run_python) $< meta-flow $(srcdir)/include/openvswitch/meta-flow.h > $@.tmp
504 $(AM_V_at)mv $@.tmp $@
a4ce8b25 505lib/meta-flow.lo: lib/meta-flow.inc
96fee5e0
BP
506lib/nx-match.inc: $(srcdir)/build-aux/extract-ofp-fields include/openvswitch/meta-flow.h
507 $(AM_V_GEN)$(run_python) $< nx-match $(srcdir)/include/openvswitch/meta-flow.h > $@.tmp
508 $(AM_V_at)mv $@.tmp $@
178742f9
BP
509lib/nx-match.lo: lib/nx-match.inc
510CLEANFILES += lib/meta-flow.inc lib/nx-match.inc
a4ce8b25
BP
511EXTRA_DIST += build-aux/extract-ofp-fields
512
c2d936a4 513lib/ofp-actions.inc1: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c
ef44aa50 514 $(AM_V_GEN)$(run_python) $^ --prototypes > $@.tmp && mv $@.tmp $@
c2d936a4 515lib/ofp-actions.inc2: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c
ef44aa50 516 $(AM_V_GEN)$(run_python) $^ --definitions > $@.tmp && mv $@.tmp $@
c2d936a4 517lib/ofp-actions.lo: lib/ofp-actions.inc1 lib/ofp-actions.inc2
07ba3dbd 518CLEANFILES += lib/ofp-actions.inc1 lib/ofp-actions.inc2
a4ce8b25 519EXTRA_DIST += build-aux/extract-ofp-actions
c2d936a4 520
e03c096d 521lib/ofp-errors.inc: include/openvswitch/ofp-errors.h include/openflow/openflow-common.h \
514887ee 522 $(srcdir)/build-aux/extract-ofp-errors
ef44aa50 523 $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-errors \
e03c096d 524 $(srcdir)/include/openvswitch/ofp-errors.h \
ef44aa50 525 $(srcdir)/include/openflow/openflow-common.h > $@.tmp && \
514887ee 526 mv $@.tmp $@
5b3c194f 527lib/ofp-errors.lo: lib/ofp-errors.inc
1f7d1459 528CLEANFILES += lib/ofp-errors.inc
ab70cd30 529EXTRA_DIST += build-aux/extract-ofp-errors
dc4762ed 530
d271907f 531lib/ofp-msgs.inc: include/openvswitch/ofp-msgs.h $(srcdir)/build-aux/extract-ofp-msgs
ef44aa50 532 $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-msgs \
d271907f 533 $(srcdir)/include/openvswitch/ofp-msgs.h $@ > $@.tmp && mv $@.tmp $@
5b3c194f 534lib/ofp-msgs.lo: lib/ofp-msgs.inc
1f7d1459 535CLEANFILES += lib/ofp-msgs.inc
ab70cd30 536EXTRA_DIST += build-aux/extract-ofp-msgs
982697a4 537
b2df0225 538INSTALL_DATA_LOCAL += lib-install-data-local
99155935 539lib-install-data-local:
064af421 540 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
26a7a70c 541 $(MKDIR_P) $(DESTDIR)$(sysconfdir)/openvswitch
96fee5e0
BP
542
543man_MANS += lib/ovs-fields.7
4d73b2c4 544CLEANFILES += lib/ovs-fields.7
96fee5e0
BP
545lib/ovs-fields.7: $(srcdir)/build-aux/extract-ofp-fields include/openvswitch/meta-flow.h lib/meta-flow.xml
546 $(AM_V_GEN)PYTHONIOENCODING=utf8 $(run_python) $< \
547 --ovs-version=$(VERSION) ovs-fields \
548 $(srcdir)/include/openvswitch/meta-flow.h \
6e06e050 549 $(srcdir)/lib/meta-flow.xml > $@.tmp
96fee5e0
BP
550 $(AM_V_at)mv $@.tmp $@
551EXTRA_DIST += lib/meta-flow.xml