X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2FMakefile.am;h=1ef8bd03e29a666116df58b8d99a075a170e03af;hb=cf6207b610f15e73984e94c6c84ee07730ec746b;hp=d9a490c5feb246b60245e0eed2a668fad5786ea7;hpb=9df2b7bb71e50e05f63789658c91a73c175b6787;p=openvswitch diff --git a/lib/Makefile.am b/lib/Makefile.am index d9a490c5..1ef8bd03 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -25,3 +25,17 @@ libopenflow_la_SOURCES += \ netlink.c \ vconn-netlink.c endif + +if HAVE_OPENSSL +libopenflow_la_SOURCES += \ + vconn-ssl.c \ + dhparams.c +dhparams.c: dh512.pem dh1024.pem dh2048.pem dh4096.pem + (echo '#include "dhparams.h"' && \ + openssl dhparam -C -in $(srcdir)/dh512.pem -noout && \ + openssl dhparam -C -in $(srcdir)/dh1024.pem -noout && \ + openssl dhparam -C -in $(srcdir)/dh2048.pem -noout && \ + openssl dhparam -C -in $(srcdir)/dh4096.pem -noout) \ + | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > dhparams.c.tmp + mv dhparams.c.tmp dhparams.c +endif