]>
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 \ | |
ec68790f BP |
162 | lib/ovs-thread.c \ |
163 | lib/ovs-thread.h \ | |
f85f8ebb BP |
164 | lib/ovsdb-data.c \ |
165 | lib/ovsdb-data.h \ | |
166 | lib/ovsdb-error.c \ | |
167 | lib/ovsdb-error.h \ | |
c3bb4bd7 BP |
168 | lib/ovsdb-idl-provider.h \ |
169 | lib/ovsdb-idl.c \ | |
170 | lib/ovsdb-idl.h \ | |
f85f8ebb BP |
171 | lib/ovsdb-parser.c \ |
172 | lib/ovsdb-parser.h \ | |
173 | lib/ovsdb-types.c \ | |
174 | lib/ovsdb-types.h \ | |
91088554 DDP |
175 | lib/packet-dpif.c \ |
176 | lib/packet-dpif.h \ | |
b9e8b45a | 177 | lib/packets.c \ |
064af421 | 178 | lib/packets.h \ |
2c78a3e6 SS |
179 | lib/pcap-file.c \ |
180 | lib/pcap-file.h \ | |
064af421 BP |
181 | lib/poll-loop.c \ |
182 | lib/poll-loop.h \ | |
064af421 BP |
183 | lib/process.c \ |
184 | lib/process.h \ | |
fe7cfa5c JR |
185 | lib/pvector.c \ |
186 | lib/pvector.h \ | |
064af421 BP |
187 | lib/random.c \ |
188 | lib/random.h \ | |
189 | lib/rconn.c \ | |
190 | lib/rconn.h \ | |
9f22b0cf JR |
191 | lib/rculist.c \ |
192 | lib/rculist.h \ | |
3ed497fc BP |
193 | lib/reconnect.c \ |
194 | lib/reconnect.h \ | |
9efd308e DV |
195 | lib/rstp.c \ |
196 | lib/rstp.h \ | |
197 | lib/rstp-common.h \ | |
198 | lib/rstp-state-machines.c \ | |
199 | lib/rstp-state-machines.h \ | |
064af421 | 200 | lib/sat-math.h \ |
55b40355 BP |
201 | lib/seq.c \ |
202 | lib/seq.h \ | |
064af421 BP |
203 | lib/sha1.c \ |
204 | lib/sha1.h \ | |
205 | lib/shash.c \ | |
206 | lib/shash.h \ | |
44bac24b BP |
207 | lib/simap.c \ |
208 | lib/simap.h \ | |
79f1cbe9 EJ |
209 | lib/smap.c \ |
210 | lib/smap.h \ | |
064af421 BP |
211 | lib/socket-util.c \ |
212 | lib/socket-util.h \ | |
f85f8ebb BP |
213 | lib/sort.c \ |
214 | lib/sort.h \ | |
f391294f BP |
215 | lib/sset.c \ |
216 | lib/sset.h \ | |
829a7d02 JP |
217 | lib/stp.c \ |
218 | lib/stp.h \ | |
c48f691f | 219 | lib/stream-fd.c \ |
c34b65c7 BP |
220 | lib/stream-fd.h \ |
221 | lib/stream-provider.h \ | |
9467fe62 | 222 | lib/stream-ssl.h \ |
c34b65c7 | 223 | lib/stream-tcp.c \ |
c34b65c7 BP |
224 | lib/stream.c \ |
225 | lib/stream.h \ | |
cde1c287 | 226 | lib/stdio.c \ |
71d7c22f | 227 | lib/string.c \ |
064af421 BP |
228 | lib/svec.c \ |
229 | lib/svec.h \ | |
3a3eb9da BP |
230 | lib/table.c \ |
231 | lib/table.h \ | |
b63e3bbc BP |
232 | lib/tag.c \ |
233 | lib/tag.h \ | |
8650b075 EJ |
234 | lib/timer.c \ |
235 | lib/timer.h \ | |
064af421 BP |
236 | lib/timeval.c \ |
237 | lib/timeval.h \ | |
648f4f1f BP |
238 | lib/token-bucket.c \ |
239 | lib/token-bucket.h \ | |
064af421 | 240 | lib/type-props.h \ |
afa3a931 | 241 | lib/unaligned.h \ |
f38b84ea BP |
242 | lib/unicode.c \ |
243 | lib/unicode.h \ | |
fa0361b7 GG |
244 | lib/unixctl.c \ |
245 | lib/unixctl.h \ | |
064af421 BP |
246 | lib/util.c \ |
247 | lib/util.h \ | |
fa0361b7 GG |
248 | lib/uuid.c \ |
249 | lib/uuid.h \ | |
064af421 BP |
250 | lib/valgrind.h \ |
251 | lib/vconn-provider.h \ | |
064af421 | 252 | lib/vconn-stream.c \ |
064af421 BP |
253 | lib/vconn.c \ |
254 | lib/vconn.h \ | |
0fb7b915 BP |
255 | lib/vlan-bitmap.c \ |
256 | lib/vlan-bitmap.h \ | |
025e874a BP |
257 | lib/vlandev.c \ |
258 | lib/vlandev.h \ | |
064af421 | 259 | lib/vlog.c \ |
6e037e3c EJ |
260 | lib/vlog.h \ |
261 | lib/vswitch-idl.c \ | |
add17b69 BD |
262 | lib/vswitch-idl.h \ |
263 | lib/vtep-idl.c \ | |
264 | lib/vtep-idl.h | |
9d0581fd | 265 | |
4ca828d7 | 266 | if WIN32 |
9d0581fd | 267 | lib_libopenvswitch_la_SOURCES += \ |
fda546bd | 268 | lib/daemon-windows.c \ |
9d0581fd | 269 | lib/getopt_long.c \ |
1680d3d7 | 270 | lib/getrusage-windows.c \ |
6500157f | 271 | lib/latch-windows.c \ |
7482ddda | 272 | lib/route-table-stub.c \ |
c48f691f | 273 | lib/strsep.c |
4ca828d7 | 274 | else |
9d0581fd | 275 | lib_libopenvswitch_la_SOURCES += \ |
a91dc444 | 276 | lib/daemon-unix.c \ |
6500157f | 277 | lib/latch-unix.c \ |
60567113 GS |
278 | lib/signals.c \ |
279 | lib/signals.h \ | |
7f1e1c7f | 280 | lib/socket-util-unix.c \ |
7ff04d92 | 281 | lib/stream-unix.c |
4ca828d7 LS |
282 | endif |
283 | ||
cde1c287 BP |
284 | EXTRA_DIST += \ |
285 | lib/stdio.h.in \ | |
286 | lib/string.h.in | |
6e037e3c | 287 | |
38b7a52b | 288 | nodist_lib_libopenvswitch_la_SOURCES = \ |
424d1282 | 289 | lib/dirs.c |
38b7a52b | 290 | CLEANFILES += $(nodist_lib_libopenvswitch_la_SOURCES) |
064af421 | 291 | |
38b7a52b HS |
292 | lib_LTLIBRARIES += lib/libsflow.la |
293 | lib_libsflow_la_LDFLAGS = -release $(VERSION) | |
294 | lib_libsflow_la_SOURCES = \ | |
c72e245a BP |
295 | lib/sflow_api.h \ |
296 | lib/sflow.h \ | |
297 | lib/sflow_agent.c \ | |
298 | lib/sflow_sampler.c \ | |
299 | lib/sflow_poller.c \ | |
300 | lib/sflow_receiver.c | |
38b7a52b HS |
301 | lib_libsflow_la_CPPFLAGS = $(AM_CPPFLAGS) |
302 | lib_libsflow_la_CFLAGS = $(AM_CFLAGS) | |
c72e245a | 303 | if HAVE_WNO_UNUSED |
38b7a52b | 304 | lib_libsflow_la_CFLAGS += -Wno-unused |
c72e245a | 305 | endif |
52af5b99 | 306 | if HAVE_WNO_UNUSED_PARAMETER |
38b7a52b | 307 | lib_libsflow_la_CFLAGS += -Wno-unused-parameter |
52af5b99 | 308 | endif |
c72e245a | 309 | |
5020f5f0 | 310 | if LINUX |
38b7a52b | 311 | lib_libopenvswitch_la_SOURCES += \ |
93451a0a AS |
312 | lib/dpif-netlink.c \ |
313 | lib/dpif-netlink.h \ | |
c83cdd30 | 314 | lib/netdev-linux.c \ |
d3980822 | 315 | lib/netdev-linux.h \ |
45c8d3a1 EJ |
316 | lib/netlink-notifier.c \ |
317 | lib/netlink-notifier.h \ | |
064af421 | 318 | lib/netlink-protocol.h \ |
2fe27d5a BP |
319 | lib/netlink-socket.c \ |
320 | lib/netlink-socket.h \ | |
7c5a3bbf AW |
321 | lib/ovs-numa.c \ |
322 | lib/ovs-numa.h \ | |
d9b4ebc5 PS |
323 | lib/ovs-router.c \ |
324 | lib/ovs-router.h \ | |
21d6e22e | 325 | lib/rtnetlink-link.c \ |
ea83a2fc | 326 | lib/rtnetlink-link.h \ |
a132aa96 EJ |
327 | lib/route-table.c \ |
328 | lib/route-table.h | |
064af421 BP |
329 | endif |
330 | ||
8a9562d2 PS |
331 | if DPDK_NETDEV |
332 | lib_libopenvswitch_la_SOURCES += \ | |
333 | lib/netdev-dpdk.c \ | |
334 | lib/netdev-dpdk.h | |
335 | endif | |
336 | ||
d5e27716 AS |
337 | if WIN32 |
338 | lib_libopenvswitch_la_SOURCES += \ | |
93451a0a AS |
339 | lib/dpif-netlink.c \ |
340 | lib/dpif-netlink.h \ | |
078eedf4 | 341 | lib/netdev-windows.c \ |
d5e27716 AS |
342 | lib/netlink-notifier.c \ |
343 | lib/netlink-notifier.h \ | |
344 | lib/netlink-protocol.h \ | |
345 | lib/netlink-socket.c \ | |
346 | lib/netlink-socket.h | |
347 | endif | |
348 | ||
97eba8fc | 349 | if HAVE_POSIX_AIO |
38b7a52b | 350 | lib_libopenvswitch_la_SOURCES += lib/async-append-aio.c |
97eba8fc | 351 | else |
38b7a52b | 352 | lib_libopenvswitch_la_SOURCES += lib/async-append-null.c |
97eba8fc BP |
353 | endif |
354 | ||
361906b1 | 355 | if ESX |
38b7a52b | 356 | lib_libopenvswitch_la_SOURCES += \ |
361906b1 EJ |
357 | lib/route-table-stub.c |
358 | endif | |
359 | ||
9360d9b7 | 360 | if HAVE_IF_DL |
38b7a52b | 361 | lib_libopenvswitch_la_SOURCES += \ |
f6eb6b20 GL |
362 | lib/netdev-bsd.c \ |
363 | lib/rtbsd.c \ | |
364 | lib/rtbsd.h \ | |
9360d9b7 EM |
365 | lib/route-table-bsd.c |
366 | endif | |
367 | ||
064af421 | 368 | if HAVE_OPENSSL |
38b7a52b HS |
369 | lib_libopenvswitch_la_SOURCES += lib/stream-ssl.c |
370 | nodist_lib_libopenvswitch_la_SOURCES += lib/dhparams.c | |
064af421 | 371 | lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem |
ef44aa50 | 372 | $(AM_V_GEN)(echo '#include "lib/dhparams.h"' && \ |
064af421 BP |
373 | openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \ |
374 | openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \ | |
375 | openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \ | |
ef44aa50 | 376 | | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp && \ |
064af421 | 377 | mv lib/dhparams.c.tmp lib/dhparams.c |
bf8f2167 | 378 | else |
38b7a52b | 379 | lib_libopenvswitch_la_SOURCES += lib/stream-nossl.c |
064af421 BP |
380 | endif |
381 | ||
382 | EXTRA_DIST += \ | |
383 | lib/dh1024.pem \ | |
384 | lib/dh2048.pem \ | |
b43c6fe2 BP |
385 | lib/dh4096.pem \ |
386 | lib/dirs.c.in | |
064af421 | 387 | |
0027492d | 388 | MAN_FRAGMENTS += \ |
064af421 | 389 | lib/common.man \ |
f7f62235 | 390 | lib/common-syn.man \ |
a5f607bc | 391 | lib/coverage-unixctl.man \ |
064af421 | 392 | lib/daemon.man \ |
f7f62235 | 393 | lib/daemon-syn.man \ |
fceef209 | 394 | lib/dpctl.man \ |
149ff68a | 395 | lib/memory-unixctl.man \ |
020c9387 | 396 | lib/ofp-version.man \ |
23edef9e | 397 | lib/ovs.tmac \ |
fda546bd GS |
398 | lib/service.man \ |
399 | lib/service-syn.man \ | |
84ee7bcf | 400 | lib/ssl-bootstrap.man \ |
9467fe62 | 401 | lib/ssl-bootstrap-syn.man \ |
84ee7bcf BP |
402 | lib/ssl-peer-ca-cert.man \ |
403 | lib/ssl.man \ | |
9467fe62 | 404 | lib/ssl-syn.man \ |
3a3eb9da | 405 | lib/table.man \ |
7b38bdc8 BP |
406 | lib/unixctl.man \ |
407 | lib/unixctl-syn.man \ | |
84ee7bcf BP |
408 | lib/vconn-active.man \ |
409 | lib/vconn-passive.man \ | |
b16fdafe | 410 | lib/vlog-unixctl.man \ |
f7f62235 | 411 | lib/vlog-syn.man \ |
064af421 BP |
412 | lib/vlog.man |
413 | ||
6e037e3c EJ |
414 | # vswitch IDL |
415 | OVSIDL_BUILT += \ | |
e3a88027 EJ |
416 | $(srcdir)/lib/vswitch-idl.c \ |
417 | $(srcdir)/lib/vswitch-idl.h \ | |
add17b69 BD |
418 | $(srcdir)/lib/vswitch-idl.ovsidl \ |
419 | $(srcdir)/lib/vtep-idl.c \ | |
420 | $(srcdir)/lib/vtep-idl.h \ | |
421 | $(srcdir)/lib/vtep-idl.ovsidl | |
6e037e3c | 422 | |
e3a88027 | 423 | EXTRA_DIST += $(srcdir)/lib/vswitch-idl.ann |
8c8c0f3a BP |
424 | VSWITCH_IDL_FILES = \ |
425 | $(srcdir)/vswitchd/vswitch.ovsschema \ | |
426 | $(srcdir)/lib/vswitch-idl.ann | |
e3a88027 | 427 | $(srcdir)/lib/vswitch-idl.ovsidl: $(VSWITCH_IDL_FILES) |
ef44aa50 | 428 | $(AM_V_GEN)$(OVSDB_IDLC) annotate $(VSWITCH_IDL_FILES) > $@.tmp && \ |
6e037e3c EJ |
429 | mv $@.tmp $@ |
430 | ||
add17b69 BD |
431 | EXTRA_DIST += $(srcdir)/lib/vtep-idl.ann |
432 | VTEP_IDL_FILES = \ | |
433 | $(srcdir)/vtep/vtep.ovsschema \ | |
434 | $(srcdir)/lib/vtep-idl.ann | |
435 | $(srcdir)/lib/vtep-idl.ovsidl: $(VTEP_IDL_FILES) | |
ef44aa50 | 436 | $(AM_V_GEN)$(OVSDB_IDLC) annotate $(VTEP_IDL_FILES) > $@.tmp && \ |
add17b69 BD |
437 | mv $@.tmp $@ |
438 | ||
b43c6fe2 | 439 | lib/dirs.c: lib/dirs.c.in Makefile |
ef44aa50 | 440 | $(AM_V_GEN)($(ro_c) && sed < $(srcdir)/lib/dirs.c.in \ |
b43c6fe2 BP |
441 | -e 's,[@]srcdir[@],$(srcdir),g' \ |
442 | -e 's,[@]LOGDIR[@],"$(LOGDIR)",g' \ | |
443 | -e 's,[@]RUNDIR[@],"$(RUNDIR)",g' \ | |
f973f2af | 444 | -e 's,[@]DBDIR[@],"$(DBDIR)",g' \ |
b43c6fe2 | 445 | -e 's,[@]bindir[@],"$(bindir)",g' \ |
2fad9ebd | 446 | -e 's,[@]sysconfdir[@],"$(sysconfdir)",g' \ |
b43c6fe2 | 447 | -e 's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \ |
ef44aa50 | 448 | > lib/dirs.c.tmp && \ |
064af421 BP |
449 | mv lib/dirs.c.tmp lib/dirs.c |
450 | ||
a4ce8b25 | 451 | lib/meta-flow.inc: $(srcdir)/build-aux/extract-ofp-fields lib/meta-flow.h |
178742f9 | 452 | $(AM_V_GEN)$(run_python) $^ --meta-flow > $@.tmp && mv $@.tmp $@ |
a4ce8b25 | 453 | lib/meta-flow.lo: lib/meta-flow.inc |
178742f9 BP |
454 | lib/nx-match.inc: $(srcdir)/build-aux/extract-ofp-fields lib/meta-flow.h |
455 | $(AM_V_GEN)$(run_python) $^ --nx-match > $@.tmp && mv $@.tmp $@ | |
456 | lib/nx-match.lo: lib/nx-match.inc | |
457 | CLEANFILES += lib/meta-flow.inc lib/nx-match.inc | |
a4ce8b25 BP |
458 | EXTRA_DIST += build-aux/extract-ofp-fields |
459 | ||
c2d936a4 | 460 | lib/ofp-actions.inc1: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c |
ef44aa50 | 461 | $(AM_V_GEN)$(run_python) $^ --prototypes > $@.tmp && mv $@.tmp $@ |
c2d936a4 | 462 | lib/ofp-actions.inc2: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c |
ef44aa50 | 463 | $(AM_V_GEN)$(run_python) $^ --definitions > $@.tmp && mv $@.tmp $@ |
c2d936a4 | 464 | lib/ofp-actions.lo: lib/ofp-actions.inc1 lib/ofp-actions.inc2 |
07ba3dbd | 465 | CLEANFILES += lib/ofp-actions.inc1 lib/ofp-actions.inc2 |
a4ce8b25 | 466 | EXTRA_DIST += build-aux/extract-ofp-actions |
c2d936a4 | 467 | |
90bf1e07 | 468 | $(srcdir)/lib/ofp-errors.inc: \ |
514887ee BP |
469 | lib/ofp-errors.h include/openflow/openflow-common.h \ |
470 | $(srcdir)/build-aux/extract-ofp-errors | |
ef44aa50 | 471 | $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-errors \ |
514887ee | 472 | $(srcdir)/lib/ofp-errors.h \ |
ef44aa50 | 473 | $(srcdir)/include/openflow/openflow-common.h > $@.tmp && \ |
514887ee | 474 | mv $@.tmp $@ |
a082dd9b | 475 | $(srcdir)/lib/ofp-errors.c: $(srcdir)/lib/ofp-errors.inc |
90bf1e07 | 476 | EXTRA_DIST += build-aux/extract-ofp-errors lib/ofp-errors.inc |
dc4762ed | 477 | |
982697a4 BP |
478 | $(srcdir)/lib/ofp-msgs.inc: \ |
479 | lib/ofp-msgs.h $(srcdir)/build-aux/extract-ofp-msgs | |
ef44aa50 | 480 | $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-msgs \ |
982697a4 BP |
481 | $(srcdir)/lib/ofp-msgs.h $@ > $@.tmp && mv $@.tmp $@ |
482 | $(srcdir)/lib/ofp-msgs.c: $(srcdir)/lib/ofp-msgs.inc | |
483 | EXTRA_DIST += build-aux/extract-ofp-msgs lib/ofp-msgs.inc | |
484 | ||
b2df0225 | 485 | INSTALL_DATA_LOCAL += lib-install-data-local |
99155935 | 486 | lib-install-data-local: |
064af421 BP |
487 | $(MKDIR_P) $(DESTDIR)$(RUNDIR) |
488 | $(MKDIR_P) $(DESTDIR)$(PKIDIR) | |
489 | $(MKDIR_P) $(DESTDIR)$(LOGDIR) | |
f973f2af | 490 | $(MKDIR_P) $(DESTDIR)$(DBDIR) |
064af421 | 491 |