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