1 noinst_LIBRARIES += lib/libopenflow.a
3 lib_libopenflow_a_SOURCES = \
18 lib/dynamic-string.c \
19 lib/dynamic-string.h \
28 lib/learning-switch.c \
29 lib/learning-switch.h \
65 lib/vconn-provider.h \
73 lib/vlog-modules.def \
81 lib_libopenflow_a_SOURCES += \
84 lib/netlink-protocol.h \
91 lib_libopenflow_a_SOURCES += \
93 nodist_lib_libopenflow_a_SOURCES = lib/dhparams.c
94 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
95 (echo '#include "lib/dhparams.h"' && \
96 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
97 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
98 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
99 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
100 mv lib/dhparams.c.tmp lib/dhparams.c
109 CLEANFILES += lib/dirs.c
112 echo 'const char ofp_pkgdatadir[] = "$(pkgdatadir$)";' && \
113 echo 'const char ofp_rundir[] = "@RUNDIR@";' && \
114 echo 'const char ofp_logdir[] = "@LOGDIR@";') > lib/dirs.c.tmp
115 mv lib/dirs.c.tmp lib/dirs.c
118 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
119 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
120 $(MKDIR_P) $(DESTDIR)$(LOGDIR)