1 noinst_LIBRARIES += lib/libopenflow.a
3 lib_libopenflow_a_SOURCES = \
14 lib/learning-switch.c \
38 lib_libopenflow_a_SOURCES += \
45 lib_libopenflow_a_SOURCES += \
47 nodist_lib_libopenflow_a_SOURCES = lib/dhparams.c
48 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
49 (echo '#include "lib/dhparams.h"' && \
50 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
51 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
52 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
53 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
54 mv lib/dhparams.c.tmp lib/dhparams.c
63 CLEANFILES += lib/dirs.c
66 echo 'const char ofp_rundir[] = "@RUNDIR@";' && \
67 echo 'const char ofp_logdir[] = "@LOGDIR@";') > lib/dirs.c.tmp
68 mv lib/dirs.c.tmp lib/dirs.c
71 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
72 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
73 $(MKDIR_P) $(DESTDIR)$(LOGDIR)