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