1 # Copyright (C) 2009 Nicira Networks, Inc.
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.
8 noinst_LIBRARIES
+= lib
/libopenvswitch.a
10 lib_libopenvswitch_a_SOURCES
= \
28 lib
/coverage-counters.h \
44 lib
/dynamic-string.c \
45 lib
/dynamic-string.h \
62 lib
/learning-switch.c \
63 lib
/learning-switch.h \
71 lib
/netdev-provider.h \
84 lib
/ovsdb-idl-provider.h \
126 lib
/stream-provider.h \
147 lib
/vconn-provider.h \
155 lib
/vlog-modules.def \
159 nodist_lib_libopenvswitch_a_SOURCES
= \
160 lib
/coverage-counters.c \
162 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
165 lib_libopenvswitch_a_SOURCES
+= \
166 lib
/netlink-protocol.h \
172 lib_libopenvswitch_a_SOURCES
+= \
174 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
175 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
176 (echo
'#include "lib/dhparams.h"' && \
177 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
178 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
179 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
180 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
181 mv lib
/dhparams.c.tmp lib
/dhparams.c
196 lib
/leak-checker.man \
197 lib
/vlog-unixctl.man \
204 echo
'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
205 echo
'const char ovs_rundir[] = "@RUNDIR@";' && \
206 echo
'const char ovs_logdir[] = "@LOGDIR@";' && \
207 echo
'const char ovs_bindir[] = "$(bindir)";') > lib
/dirs.c.tmp
208 mv lib
/dirs.c.tmp lib
/dirs.c
211 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
212 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
213 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
215 # All the source files that have coverage counters.
238 vswitchd
/ovs-brcompatd.c
239 lib
/coverage-counters.c
: $(COVERAGE_FILES
) lib
/coverage-scan.pl
240 (cd
$(srcdir) && $(PERL
) lib
/coverage-scan.pl
$(COVERAGE_FILES
)) > $@.tmp
242 EXTRA_DIST
+= lib
/coverage-scan.pl