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