]> git.proxmox.com Git - ovs.git/blob - lib/automake.mk
ovs: Implement 802.1ag Connectivity Fault Management
[ovs.git] / lib / automake.mk
1 # Copyright (C) 2009, 2010 Nicira Networks, Inc.
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
8 noinst_LIBRARIES += lib/libopenvswitch.a
9
10 lib_libopenvswitch_a_SOURCES = \
11 lib/aes128.c \
12 lib/aes128.h \
13 lib/backtrace.c \
14 lib/backtrace.h \
15 lib/bitmap.c \
16 lib/bitmap.h \
17 lib/byte-order.h \
18 lib/byteq.c \
19 lib/byteq.h \
20 lib/cfm.c \
21 lib/cfm.h \
22 lib/classifier.c \
23 lib/classifier.h \
24 lib/command-line.c \
25 lib/command-line.h \
26 lib/compiler.h \
27 lib/coverage.c \
28 lib/coverage.h \
29 lib/coverage-counters.h \
30 lib/csum.c \
31 lib/csum.h \
32 lib/daemon.c \
33 lib/daemon.h \
34 lib/dhcp-client.c \
35 lib/dhcp-client.h \
36 lib/dhcp.c \
37 lib/dhcp.h \
38 lib/dhparams.h \
39 lib/dirs.h \
40 lib/dpif-netdev.c \
41 lib/dpif-provider.h \
42 lib/dpif.c \
43 lib/dpif.h \
44 lib/dynamic-string.c \
45 lib/dynamic-string.h \
46 lib/entropy.c \
47 lib/entropy.h \
48 lib/fatal-signal.c \
49 lib/fatal-signal.h \
50 lib/flow.c \
51 lib/flow.h \
52 lib/hash.c \
53 lib/hash.h \
54 lib/hmap.c \
55 lib/hmap.h \
56 lib/json.c \
57 lib/json.h \
58 lib/jsonrpc.c \
59 lib/jsonrpc.h \
60 lib/leak-checker.c \
61 lib/leak-checker.h \
62 lib/learning-switch.c \
63 lib/learning-switch.h \
64 lib/list.c \
65 lib/list.h \
66 lib/lockfile.c \
67 lib/lockfile.h \
68 lib/mac-learning.c \
69 lib/mac-learning.h \
70 lib/netdev-provider.h \
71 lib/netdev.c \
72 lib/netdev.h \
73 lib/nx-match.c \
74 lib/nx-match.def \
75 lib/nx-match.h \
76 lib/odp-util.c \
77 lib/odp-util.h \
78 lib/ofp-parse.c \
79 lib/ofp-parse.h \
80 lib/ofp-print.c \
81 lib/ofp-print.h \
82 lib/ofp-util.c \
83 lib/ofp-util.h \
84 lib/ofpbuf.c \
85 lib/ofpbuf.h \
86 lib/ovsdb-data.c \
87 lib/ovsdb-data.h \
88 lib/ovsdb-error.c \
89 lib/ovsdb-error.h \
90 lib/ovsdb-idl-provider.h \
91 lib/ovsdb-idl.c \
92 lib/ovsdb-idl.h \
93 lib/ovsdb-parser.c \
94 lib/ovsdb-parser.h \
95 lib/ovsdb-types.c \
96 lib/ovsdb-types.h \
97 lib/packets.c \
98 lib/packets.h \
99 lib/pcap.c \
100 lib/pcap.h \
101 lib/poll-loop.c \
102 lib/poll-loop.h \
103 lib/port-array.c \
104 lib/port-array.h \
105 lib/process.c \
106 lib/process.h \
107 lib/queue.c \
108 lib/queue.h \
109 lib/random.c \
110 lib/random.h \
111 lib/rconn.c \
112 lib/rconn.h \
113 lib/reconnect.c \
114 lib/reconnect.h \
115 lib/sat-math.h \
116 lib/sha1.c \
117 lib/sha1.h \
118 lib/shash.c \
119 lib/shash.h \
120 lib/signals.c \
121 lib/signals.h \
122 lib/socket-util.c \
123 lib/socket-util.h \
124 lib/sort.c \
125 lib/sort.h \
126 lib/stream-fd.c \
127 lib/stream-fd.h \
128 lib/stream-provider.h \
129 lib/stream-ssl.h \
130 lib/stream-tcp.c \
131 lib/stream-unix.c \
132 lib/stream.c \
133 lib/stream.h \
134 lib/string.h \
135 lib/svec.c \
136 lib/svec.h \
137 lib/tag.c \
138 lib/tag.h \
139 lib/timeval.c \
140 lib/timeval.h \
141 lib/type-props.h \
142 lib/unaligned.h \
143 lib/unicode.c \
144 lib/unicode.h \
145 lib/unixctl.c \
146 lib/unixctl.h \
147 lib/util.c \
148 lib/util.h \
149 lib/uuid.c \
150 lib/uuid.h \
151 lib/valgrind.h \
152 lib/vconn-provider.h \
153 lib/vconn-stream.c \
154 lib/vconn.c \
155 lib/vconn.h \
156 lib/vlog-modules.def \
157 lib/vlog.c \
158 lib/vlog.h
159 nodist_lib_libopenvswitch_a_SOURCES = \
160 lib/coverage-counters.c \
161 lib/dirs.c
162 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
163
164 noinst_LIBRARIES += lib/libsflow.a
165 lib_libsflow_a_SOURCES = \
166 lib/sflow_api.h \
167 lib/sflow.h \
168 lib/sflow_agent.c \
169 lib/sflow_sampler.c \
170 lib/sflow_poller.c \
171 lib/sflow_receiver.c
172 lib_libsflow_a_CFLAGS = $(AM_CFLAGS)
173 if HAVE_WNO_UNUSED
174 lib_libsflow_a_CFLAGS += -Wno-unused
175 endif
176 if HAVE_WNO_UNUSED_PARAMETER
177 lib_libsflow_a_CFLAGS += -Wno-unused-parameter
178 endif
179
180 if HAVE_NETLINK
181 lib_libopenvswitch_a_SOURCES += \
182 lib/dpif-linux.c \
183 lib/netdev-linux.c \
184 lib/netdev-vport.c \
185 lib/netdev-vport.h \
186 lib/netlink-protocol.h \
187 lib/netlink.c \
188 lib/netlink.h \
189 lib/rtnetlink.c \
190 lib/rtnetlink.h
191 endif
192
193 if HAVE_OPENSSL
194 lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c
195 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
196 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
197 (echo '#include "lib/dhparams.h"' && \
198 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
199 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
200 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
201 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
202 mv lib/dhparams.c.tmp lib/dhparams.c
203 endif
204
205 EXTRA_DIST += \
206 lib/dh1024.pem \
207 lib/dh2048.pem \
208 lib/dh4096.pem
209
210 EXTRA_DIST += \
211 lib/common.man \
212 lib/common-syn.man \
213 lib/daemon.man \
214 lib/daemon-syn.man \
215 lib/dpif.man \
216 lib/leak-checker.man \
217 lib/ssl-bootstrap.man \
218 lib/ssl-bootstrap-syn.man \
219 lib/ssl-peer-ca-cert.man \
220 lib/ssl.man \
221 lib/ssl-syn.man \
222 lib/unixctl.man \
223 lib/unixctl-syn.man \
224 lib/vconn-active.man \
225 lib/vconn-passive.man \
226 lib/vlog-unixctl.man \
227 lib/vlog-syn.man \
228 lib/vlog.man
229
230 lib/dirs.c: Makefile
231 ($(ro_c) && \
232 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
233 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
234 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
235 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
236 mv lib/dirs.c.tmp lib/dirs.c
237
238 install-data-local: lib-install-data-local
239 lib-install-data-local:
240 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
241 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
242 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
243
244 # All the source files that have coverage counters.
245 COVERAGE_FILES = \
246 lib/dpif.c \
247 lib/flow.c \
248 lib/lockfile.c \
249 lib/hmap.c \
250 lib/mac-learning.c \
251 lib/netdev.c \
252 lib/netdev-linux.c \
253 lib/netlink.c \
254 lib/odp-util.c \
255 lib/poll-loop.c \
256 lib/process.c \
257 lib/rconn.c \
258 lib/rtnetlink.c \
259 lib/stream.c \
260 lib/stream-ssl.c \
261 lib/timeval.c \
262 lib/unixctl.c \
263 lib/util.c \
264 lib/vconn.c \
265 ofproto/ofproto.c \
266 ofproto/pktbuf.c \
267 vswitchd/bridge.c \
268 vswitchd/ovs-brcompatd.c
269 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
270 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
271 mv $@.tmp $@
272 EXTRA_DIST += lib/coverage-scan.pl
273
274 ALL_LOCAL += check-vlog-modules
275 check-vlog-modules:
276 cd $(srcdir) && build-aux/check-vlog-modules
277 .PHONY: check-vlog-modules
278 EXTRA_DIST += build-aux/check-vlog-modules