Add utility functions for generating random numbers, and use where appropriate.
[sliver-openvswitch.git] / lib / Makefile.am
1 include ../Make.vars
2
3 noinst_LTLIBRARIES = libopenflow.la
4
5 libopenflow_la_SOURCES = \
6         buffer.c \
7         command-line.c \
8         daemon.c \
9         dynamic-string.c \
10         fatal-signal.c \
11         fault.c \
12         flow.c \
13         hash.c \
14         learning-switch.c \
15         list.c \
16         mac-learning.c \
17         netdev.c \
18         ofp-print.c \
19         poll-loop.c \
20         queue.c \
21         random.c \
22         rconn.c \
23         socket-util.c \
24         util.c \
25         vconn-tcp.c \
26         vconn.c \
27         vlog-socket.c \
28         vlog.c
29
30 if HAVE_NETLINK
31 libopenflow_la_SOURCES += \
32         dpif.c \
33         netlink.c \
34         vconn-netlink.c
35 endif
36
37 if HAVE_OPENSSL
38 libopenflow_la_SOURCES += \
39         vconn-ssl.c 
40 nodist_libopenflow_la_SOURCES = dhparams.c
41 dhparams.c: dh1024.pem dh2048.pem dh4096.pem
42         (echo '#include "dhparams.h"' &&                        \
43          openssl dhparam -C -in $(srcdir)/dh1024.pem -noout &&  \
44          openssl dhparam -C -in $(srcdir)/dh2048.pem -noout &&  \
45          openssl dhparam -C -in $(srcdir)/dh4096.pem -noout)    \
46         | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > dhparams.c.tmp
47         mv dhparams.c.tmp dhparams.c
48 endif
49
50 EXTRA_DIST = dh1024.pem dh2048.pem dh4096.pem dhparams.h