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 \
63 lib/vconn-provider.h \
71 lib/vlog-modules.def \
79 lib_libopenflow_a_SOURCES += \
82 lib/netlink-protocol.h \
89 lib_libopenflow_a_SOURCES += \
91 nodist_lib_libopenflow_a_SOURCES = lib/dhparams.c
92 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
93 (echo '#include "lib/dhparams.h"' && \
94 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
95 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
96 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
97 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
98 mv lib/dhparams.c.tmp lib/dhparams.c
107 CLEANFILES += lib/dirs.c
110 echo 'const char ofp_pkgdatadir[] = "$(pkgdatadir$)";' && \
111 echo 'const char ofp_rundir[] = "@RUNDIR@";' && \
112 echo 'const char ofp_logdir[] = "@LOGDIR@";') > lib/dirs.c.tmp
113 mv lib/dirs.c.tmp lib/dirs.c
116 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
117 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
118 $(MKDIR_P) $(DESTDIR)$(LOGDIR)