1 # Copyright (C) 2009, 2010 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
= \
24 lib
/coverage-counters.h \
40 lib
/dynamic-string.c \
41 lib
/dynamic-string.h \
54 lib
/learning-switch.c \
55 lib
/learning-switch.h \
61 lib
/netdev-provider.h \
112 lib
/vconn-provider.h \
120 lib
/vlog-modules.def \
124 nodist_lib_libopenvswitch_a_SOURCES
= \
125 lib
/coverage-counters.c \
127 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
129 noinst_LIBRARIES
+= lib
/libsflow.a
130 lib_libsflow_a_SOURCES
= \
134 lib
/sflow_sampler.c \
137 lib_libsflow_a_CFLAGS
= $(AM_CFLAGS
)
139 lib_libsflow_a_CFLAGS
+= -Wno-unused
143 lib_libopenvswitch_a_SOURCES
+= \
144 lib
/netlink-protocol.h \
150 lib_libopenvswitch_a_SOURCES
+= \
152 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
153 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
154 (echo
'#include "lib/dhparams.h"' && \
155 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
156 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
157 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
158 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
159 mv lib
/dhparams.c.tmp lib
/dhparams.c
172 lib
/leak-checker.man \
173 lib
/vlog-unixctl.man \
179 echo
'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
180 echo
'const char ovs_rundir[] = "@RUNDIR@";' && \
181 echo
'const char ovs_logdir[] = "@LOGDIR@";' && \
182 echo
'const char ovs_bindir[] = "$(bindir)";') > lib
/dirs.c.tmp
183 mv lib
/dirs.c.tmp lib
/dirs.c
186 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
187 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
188 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
190 # All the source files that have coverage counters.
213 vswitchd
/ovs-brcompatd.c
214 lib
/coverage-counters.c
: $(COVERAGE_FILES
) lib
/coverage-scan.pl
215 (cd
$(srcdir) && $(PERL
) lib
/coverage-scan.pl
$(COVERAGE_FILES
)) > $@.tmp
217 EXTRA_DIST
+= lib
/coverage-scan.pl