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 \
61 lib/vconn-provider.h \
69 lib/vlog-modules.def \
77 lib_libopenflow_a_SOURCES += \
80 lib/netlink-protocol.h \
87 lib_libopenflow_a_SOURCES += \
89 nodist_lib_libopenflow_a_SOURCES = lib/dhparams.c
90 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
91 (echo '#include "lib/dhparams.h"' && \
92 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
93 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
94 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
95 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
96 mv lib/dhparams.c.tmp lib/dhparams.c
105 CLEANFILES += lib/dirs.c
108 echo 'const char ofp_pkgdatadir[] = "$(pkgdatadir$)";' && \
109 echo 'const char ofp_rundir[] = "@RUNDIR@";' && \
110 echo 'const char ofp_logdir[] = "@LOGDIR@";') > lib/dirs.c.tmp
111 mv lib/dirs.c.tmp lib/dirs.c
114 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
115 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
116 $(MKDIR_P) $(DESTDIR)$(LOGDIR)