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