]> git.proxmox.com Git - mirror_ovs.git/blob - lib/automake.mk
Rename "secchan" to "ofproto" (library) and "ovs-openflowd" (program).
[mirror_ovs.git] / lib / automake.mk
1 # Copyright (C) 2009 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/backtrace.c \
12 lib/backtrace.h \
13 lib/bitmap.c \
14 lib/bitmap.h \
15 lib/cfg.c \
16 lib/cfg.h \
17 lib/classifier.c \
18 lib/classifier.h \
19 lib/command-line.c \
20 lib/command-line.h \
21 lib/compiler.h \
22 lib/coverage.c \
23 lib/coverage.h \
24 lib/coverage-counters.h \
25 lib/csum.c \
26 lib/csum.h \
27 lib/daemon.c \
28 lib/daemon.h \
29 lib/dhcp-client.c \
30 lib/dhcp-client.h \
31 lib/dhcp.c \
32 lib/dhcp.h \
33 lib/dhparams.h \
34 lib/dirs.h \
35 lib/dpif-linux.c \
36 lib/dpif-netdev.c \
37 lib/dpif-provider.h \
38 lib/dpif.c \
39 lib/dpif.h \
40 lib/dynamic-string.c \
41 lib/dynamic-string.h \
42 lib/fatal-signal.c \
43 lib/fatal-signal.h \
44 lib/fault.c \
45 lib/fault.h \
46 lib/flow.c \
47 lib/flow.h \
48 lib/hash.c \
49 lib/hash.h \
50 lib/hmap.c \
51 lib/hmap.h \
52 lib/leak-checker.c \
53 lib/leak-checker.h \
54 lib/learning-switch.c \
55 lib/learning-switch.h \
56 lib/list.c \
57 lib/list.h \
58 lib/mac-learning.c \
59 lib/mac-learning.h \
60 lib/netdev-linux.c \
61 lib/netdev-linux.h \
62 lib/netdev.c \
63 lib/netdev.h \
64 lib/odp-util.c \
65 lib/odp-util.h \
66 lib/ofp-print.c \
67 lib/ofp-print.h \
68 lib/ofpbuf.c \
69 lib/ofpbuf.h \
70 lib/packets.h \
71 lib/pcap.c \
72 lib/pcap.h \
73 lib/poll-loop.c \
74 lib/poll-loop.h \
75 lib/port-array.c \
76 lib/port-array.h \
77 lib/process.c \
78 lib/process.h \
79 lib/queue.c \
80 lib/queue.h \
81 lib/random.c \
82 lib/random.h \
83 lib/rconn.c \
84 lib/rconn.h \
85 lib/sat-math.h \
86 lib/sha1.c \
87 lib/sha1.h \
88 lib/shash.c \
89 lib/shash.h \
90 lib/signals.c \
91 lib/signals.h \
92 lib/socket-util.c \
93 lib/socket-util.h \
94 lib/stp.c \
95 lib/stp.h \
96 lib/svec.c \
97 lib/svec.h \
98 lib/tag.c \
99 lib/tag.h \
100 lib/timeval.c \
101 lib/timeval.h \
102 lib/type-props.h \
103 lib/unixctl.c \
104 lib/unixctl.h \
105 lib/util.c \
106 lib/util.h \
107 lib/valgrind.h \
108 lib/vconn-provider.h \
109 lib/vconn-ssl.h \
110 lib/vconn-stream.c \
111 lib/vconn-stream.h \
112 lib/vconn-tcp.c \
113 lib/vconn-unix.c \
114 lib/vconn.c \
115 lib/vconn.h \
116 lib/vlog-modules.def \
117 lib/vlog.c \
118 lib/vlog.h \
119 lib/xtoxll.h
120 nodist_lib_libopenvswitch_a_SOURCES = \
121 lib/coverage-counters.c \
122 lib/dirs.c
123 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
124
125 if HAVE_NETLINK
126 lib_libopenvswitch_a_SOURCES += \
127 lib/netlink-protocol.h \
128 lib/netlink.c \
129 lib/netlink.h
130 endif
131
132 if HAVE_OPENSSL
133 lib_libopenvswitch_a_SOURCES += \
134 lib/vconn-ssl.c
135 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
136 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
137 (echo '#include "lib/dhparams.h"' && \
138 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
139 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
140 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
141 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
142 mv lib/dhparams.c.tmp lib/dhparams.c
143 endif
144
145 EXTRA_DIST += \
146 lib/dh1024.pem \
147 lib/dh2048.pem \
148 lib/dh4096.pem \
149 lib/dhparams.h
150
151 EXTRA_DIST += \
152 lib/common.man \
153 lib/daemon.man \
154 lib/dpif.man \
155 lib/leak-checker.man \
156 lib/vlog.man
157
158
159 lib/dirs.c: Makefile
160 ($(ro_c) && \
161 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
162 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
163 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
164 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
165 mv lib/dirs.c.tmp lib/dirs.c
166
167 install-data-local:
168 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
169 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
170 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
171
172 # All the source files that have coverage counters.
173 COVERAGE_FILES = \
174 lib/cfg.c \
175 lib/dpif.c \
176 lib/flow.c \
177 lib/hmap.c \
178 lib/mac-learning.c \
179 lib/netdev.c \
180 lib/netdev-linux.c \
181 lib/netlink.c \
182 lib/odp-util.c \
183 lib/poll-loop.c \
184 lib/process.c \
185 lib/rconn.c \
186 lib/timeval.c \
187 lib/unixctl.c \
188 lib/util.c \
189 lib/vconn.c \
190 ofproto/ofproto.c \
191 ofproto/pktbuf.c \
192 vswitchd/bridge.c \
193 vswitchd/mgmt.c \
194 vswitchd/ovs-brcompatd.c
195 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
196 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
197 mv $@.tmp $@
198 EXTRA_DIST += lib/coverage-scan.pl