]> git.proxmox.com Git - mirror_ovs.git/blame - lib/automake.mk
docs: Fix some manpage syntax errors found with "groff".
[mirror_ovs.git] / lib / automake.mk
CommitLineData
254f2dc8 1# Copyright (C) 2009, 2010, 2011 Nicira Networks, 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
064af421
BP
8noinst_LIBRARIES += lib/libopenvswitch.a
9
10lib_libopenvswitch_a_SOURCES = \
d918d9d1
BP
11 lib/aes128.c \
12 lib/aes128.h \
3b6a2571
EJ
13 lib/autopath.c \
14 lib/autopath.h \
064af421
BP
15 lib/backtrace.c \
16 lib/backtrace.h \
17 lib/bitmap.c \
18 lib/bitmap.h \
f620b43a
BP
19 lib/bond.c \
20 lib/bond.h \
daff3353
EJ
21 lib/bundle.c \
22 lib/bundle.h \
10a24935 23 lib/byte-order.h \
1c617a49
BP
24 lib/byteq.c \
25 lib/byteq.h \
b31bcf60
EJ
26 lib/cfm.c \
27 lib/cfm.h \
064af421
BP
28 lib/classifier.c \
29 lib/classifier.h \
30 lib/command-line.c \
31 lib/command-line.h \
32 lib/compiler.h \
33 lib/coverage.c \
34 lib/coverage.h \
064af421
BP
35 lib/csum.c \
36 lib/csum.h \
37 lib/daemon.c \
38 lib/daemon.h \
195c8086 39 lib/dhcp.h \
614c4892
BP
40 lib/dummy.c \
41 lib/dummy.h \
064af421 42 lib/dhparams.h \
064af421 43 lib/dirs.h \
72865317 44 lib/dpif-netdev.c \
96fba48f
BP
45 lib/dpif-provider.h \
46 lib/dpif.c \
47 lib/dpif.h \
064af421
BP
48 lib/dynamic-string.c \
49 lib/dynamic-string.h \
e251c8d0
BP
50 lib/entropy.c \
51 lib/entropy.h \
064af421
BP
52 lib/fatal-signal.c \
53 lib/fatal-signal.h \
064af421
BP
54 lib/flow.c \
55 lib/flow.h \
56 lib/hash.c \
57 lib/hash.h \
58 lib/hmap.c \
59 lib/hmap.h \
f4ac3fc1
BP
60 lib/hmapx.c \
61 lib/hmapx.h \
f38b84ea
BP
62 lib/json.c \
63 lib/json.h \
f2129093
BP
64 lib/jsonrpc.c \
65 lib/jsonrpc.h \
6aa74308
EJ
66 lib/lacp.c \
67 lib/lacp.h \
064af421
BP
68 lib/leak-checker.c \
69 lib/leak-checker.h \
70 lib/learning-switch.c \
71 lib/learning-switch.h \
72 lib/list.c \
73 lib/list.h \
ac718c9d
BP
74 lib/lockfile.c \
75 lib/lockfile.h \
064af421
BP
76 lib/mac-learning.c \
77 lib/mac-learning.h \
53ddd40a
BP
78 lib/multipath.c \
79 lib/multipath.h \
614c4892 80 lib/netdev-dummy.c \
5146acb1 81 lib/netdev-provider.h \
064af421
BP
82 lib/netdev.c \
83 lib/netdev.h \
2fe27d5a
BP
84 lib/netlink.c \
85 lib/netlink.h \
09246b99 86 lib/nx-match.c \
f1b1754d 87 lib/nx-match.def \
09246b99 88 lib/nx-match.h \
064af421
BP
89 lib/odp-util.c \
90 lib/odp-util.h \
dc4762ed
BP
91 lib/ofp-errors.c \
92 lib/ofp-errors.h \
f22716dc
JP
93 lib/ofp-parse.c \
94 lib/ofp-parse.h \
064af421
BP
95 lib/ofp-print.c \
96 lib/ofp-print.h \
fa37b408
BP
97 lib/ofp-util.c \
98 lib/ofp-util.h \
064af421
BP
99 lib/ofpbuf.c \
100 lib/ofpbuf.h \
f85f8ebb
BP
101 lib/ovsdb-data.c \
102 lib/ovsdb-data.h \
103 lib/ovsdb-error.c \
104 lib/ovsdb-error.h \
c3bb4bd7
BP
105 lib/ovsdb-idl-provider.h \
106 lib/ovsdb-idl.c \
107 lib/ovsdb-idl.h \
f85f8ebb
BP
108 lib/ovsdb-parser.c \
109 lib/ovsdb-parser.h \
110 lib/ovsdb-types.c \
111 lib/ovsdb-types.h \
b9e8b45a 112 lib/packets.c \
064af421
BP
113 lib/packets.h \
114 lib/pcap.c \
115 lib/pcap.h \
116 lib/poll-loop.c \
117 lib/poll-loop.h \
064af421
BP
118 lib/process.c \
119 lib/process.h \
064af421
BP
120 lib/random.c \
121 lib/random.h \
122 lib/rconn.c \
123 lib/rconn.h \
3ed497fc
BP
124 lib/reconnect.c \
125 lib/reconnect.h \
064af421
BP
126 lib/sat-math.h \
127 lib/sha1.c \
128 lib/sha1.h \
129 lib/shash.c \
130 lib/shash.h \
131 lib/signals.c \
132 lib/signals.h \
133 lib/socket-util.c \
134 lib/socket-util.h \
f85f8ebb
BP
135 lib/sort.c \
136 lib/sort.h \
f391294f
BP
137 lib/sset.c \
138 lib/sset.h \
c34b65c7
BP
139 lib/stream-fd.c \
140 lib/stream-fd.h \
141 lib/stream-provider.h \
9467fe62 142 lib/stream-ssl.h \
c34b65c7
BP
143 lib/stream-tcp.c \
144 lib/stream-unix.c \
145 lib/stream.c \
146 lib/stream.h \
cc01d0bb
BP
147 lib/stress.c \
148 lib/stress.h \
71d7c22f 149 lib/string.c \
59462465 150 lib/string.h \
064af421
BP
151 lib/svec.c \
152 lib/svec.h \
3a3eb9da
BP
153 lib/table.c \
154 lib/table.h \
064af421
BP
155 lib/tag.c \
156 lib/tag.h \
8650b075
EJ
157 lib/timer.c \
158 lib/timer.h \
064af421
BP
159 lib/timeval.c \
160 lib/timeval.h \
161 lib/type-props.h \
afa3a931 162 lib/unaligned.h \
f38b84ea
BP
163 lib/unicode.c \
164 lib/unicode.h \
fa0361b7
GG
165 lib/unixctl.c \
166 lib/unixctl.h \
064af421
BP
167 lib/util.c \
168 lib/util.h \
fa0361b7
GG
169 lib/uuid.c \
170 lib/uuid.h \
064af421
BP
171 lib/valgrind.h \
172 lib/vconn-provider.h \
064af421 173 lib/vconn-stream.c \
064af421
BP
174 lib/vconn.c \
175 lib/vconn.h \
0fb7b915
BP
176 lib/vlan-bitmap.c \
177 lib/vlan-bitmap.h \
064af421 178 lib/vlog.c \
10a24935 179 lib/vlog.h
424d1282
BP
180nodist_lib_libopenvswitch_a_SOURCES = \
181 lib/dirs.c
182CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
064af421 183
c72e245a
BP
184noinst_LIBRARIES += lib/libsflow.a
185lib_libsflow_a_SOURCES = \
186 lib/sflow_api.h \
187 lib/sflow.h \
188 lib/sflow_agent.c \
189 lib/sflow_sampler.c \
190 lib/sflow_poller.c \
191 lib/sflow_receiver.c
192lib_libsflow_a_CFLAGS = $(AM_CFLAGS)
193if HAVE_WNO_UNUSED
194lib_libsflow_a_CFLAGS += -Wno-unused
195endif
52af5b99
BP
196if HAVE_WNO_UNUSED_PARAMETER
197lib_libsflow_a_CFLAGS += -Wno-unused-parameter
198endif
c72e245a 199
064af421
BP
200if HAVE_NETLINK
201lib_libopenvswitch_a_SOURCES += \
c83cdd30 202 lib/dpif-linux.c \
9fe3b9a2 203 lib/dpif-linux.h \
c83cdd30 204 lib/netdev-linux.c \
d3980822 205 lib/netdev-linux.h \
c83cdd30
BP
206 lib/netdev-vport.c \
207 lib/netdev-vport.h \
064af421 208 lib/netlink-protocol.h \
2fe27d5a
BP
209 lib/netlink-socket.c \
210 lib/netlink-socket.h \
c83cdd30 211 lib/rtnetlink.c \
21d6e22e
EJ
212 lib/rtnetlink.h \
213 lib/rtnetlink-link.c \
ea83a2fc 214 lib/rtnetlink-link.h \
a132aa96
EJ
215 lib/route-table.c \
216 lib/route-table.h
064af421
BP
217endif
218
219if HAVE_OPENSSL
fe55ad15 220lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c
424d1282 221nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
064af421
BP
222lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
223 (echo '#include "lib/dhparams.h"' && \
224 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
225 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
226 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
227 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
228 mv lib/dhparams.c.tmp lib/dhparams.c
bf8f2167
BP
229else
230lib_libopenvswitch_a_SOURCES += lib/stream-nossl.c
064af421
BP
231endif
232
233EXTRA_DIST += \
234 lib/dh1024.pem \
235 lib/dh2048.pem \
b43c6fe2
BP
236 lib/dh4096.pem \
237 lib/dirs.c.in
064af421
BP
238
239EXTRA_DIST += \
240 lib/common.man \
f7f62235 241 lib/common-syn.man \
064af421 242 lib/daemon.man \
f7f62235 243 lib/daemon-syn.man \
064af421 244 lib/leak-checker.man \
84ee7bcf 245 lib/ssl-bootstrap.man \
9467fe62 246 lib/ssl-bootstrap-syn.man \
84ee7bcf
BP
247 lib/ssl-peer-ca-cert.man \
248 lib/ssl.man \
9467fe62 249 lib/ssl-syn.man \
cc01d0bb 250 lib/stress-unixctl.man \
3a3eb9da 251 lib/table.man \
7b38bdc8
BP
252 lib/unixctl.man \
253 lib/unixctl-syn.man \
84ee7bcf
BP
254 lib/vconn-active.man \
255 lib/vconn-passive.man \
b16fdafe 256 lib/vlog-unixctl.man \
f7f62235 257 lib/vlog-syn.man \
064af421
BP
258 lib/vlog.man
259
b43c6fe2
BP
260lib/dirs.c: lib/dirs.c.in Makefile
261 ($(ro_c) && sed < $(srcdir)/lib/dirs.c.in \
262 -e 's,[@]srcdir[@],$(srcdir),g' \
263 -e 's,[@]LOGDIR[@],"$(LOGDIR)",g' \
264 -e 's,[@]RUNDIR[@],"$(RUNDIR)",g' \
265 -e 's,[@]bindir[@],"$(bindir)",g' \
2fad9ebd 266 -e 's,[@]sysconfdir[@],"$(sysconfdir)",g' \
b43c6fe2
BP
267 -e 's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
268 > lib/dirs.c.tmp
064af421
BP
269 mv lib/dirs.c.tmp lib/dirs.c
270
dc4762ed
BP
271$(srcdir)/lib/ofp-errors.c: \
272 include/openflow/openflow.h include/openflow/nicira-ext.h \
273 build-aux/extract-ofp-errors
274 cd $(srcdir)/include && \
275 $(PYTHON) ../build-aux/extract-ofp-errors \
276 openflow/openflow.h openflow/nicira-ext.h > ../lib/ofp-errors.c
277EXTRA_DIST += build-aux/extract-ofp-errors
278
b2df0225 279INSTALL_DATA_LOCAL += lib-install-data-local
99155935 280lib-install-data-local:
064af421
BP
281 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
282 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
283 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
284
d76f09ea 285if !USE_LINKER_SECTIONS
611d30ce
BP
286# All distributed sources, with names adjust properly for referencing
287# from $(builddir).
288all_sources = \
289 `for file in $(DIST_SOURCES); do \
290 if test -f $$file; then \
291 echo $$file; \
292 else \
293 echo $(VPATH)/$$file; \
294 fi; \
295 done`
296
d76f09ea
BP
297lib/coverage.$(OBJEXT): lib/coverage.def
298lib/coverage.def: $(DIST_SOURCES)
299 sed -n 's|^COVERAGE_DEFINE(\([_a-zA-Z0-9]\{1,\}\)).*$$|COVERAGE_COUNTER(\1)|p' $(all_sources) | LC_ALL=C sort -u > $@
300CLEANFILES += lib/coverage.def
22c79496 301
cc01d0bb
BP
302lib/stress.$(OBJEXT): lib/stress.def
303lib/stress.def: $(DIST_SOURCES)
304 sed -n '/^STRESS_OPTION(/,/);$$/{s/);$$/)/;p}' $(all_sources) > $@
305CLEANFILES += lib/stress.def
306
611d30ce
BP
307lib/vlog.$(OBJEXT): lib/vlog-modules.def
308lib/vlog-modules.def: $(DIST_SOURCES)
309 sed -n 's|^VLOG_DEFINE_\(THIS_\)\{0,1\}MODULE(\([_a-zA-Z0-9]\{1,\}\)).*$$|VLOG_MODULE(\2)|p' $(all_sources) | LC_ALL=C sort -u > $@
310CLEANFILES += lib/vlog-modules.def
311endif