rconn: Be pickier about what constitutes a successful connection.
[sliver-openvswitch.git] / lib / Makefile.am
1 include ../Make.vars
2
3 noinst_LIBRARIES = libopenflow.a
4
5 libopenflow_a_SOURCES = \
6         command-line.c \
7         csum.c \
8         daemon.c \
9         dhcp-client.c \
10         dhcp.c \
11         dynamic-string.c \
12         fatal-signal.c \
13         fault.c \
14         flow.c \
15         hash.c \
16         learning-switch.c \
17         list.c \
18         mac-learning.c \
19         netdev.c \
20         ofpbuf.c \
21         ofp-print.c \
22         poll-loop.c \
23         queue.c \
24         random.c \
25         rconn.c \
26         socket-util.c \
27         timeval.c \
28         stp.c \
29         util.c \
30         vconn-tcp.c \
31         vconn-unix.c \
32         vconn-stream.c \
33         vconn.c \
34         vlog-socket.c \
35         vlog.c
36
37 if HAVE_NETLINK
38 libopenflow_a_SOURCES += \
39         dpif.c \
40         netlink.c \
41         vconn-netlink.c
42 endif
43
44 if HAVE_OPENSSL
45 libopenflow_a_SOURCES += \
46         vconn-ssl.c 
47 nodist_libopenflow_a_SOURCES = dhparams.c
48 dhparams.c: dh1024.pem dh2048.pem dh4096.pem
49         (echo '#include "dhparams.h"' &&                        \
50          openssl dhparam -C -in $(srcdir)/dh1024.pem -noout &&  \
51          openssl dhparam -C -in $(srcdir)/dh2048.pem -noout &&  \
52          openssl dhparam -C -in $(srcdir)/dh4096.pem -noout)    \
53         | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > dhparams.c.tmp
54         mv dhparams.c.tmp dhparams.c
55 endif
56
57 EXTRA_DIST = dh1024.pem dh2048.pem dh4096.pem dhparams.h