Don't explicitly link against libdl.
[sliver-openvswitch.git] / switch / Makefile.am
index 727d1be..a20188a 100644 (file)
@@ -1,26 +1,25 @@
 include ../Make.vars
 
 bin_PROGRAMS = switch
+man_MANS = switch.8
 
 switch_SOURCES = \
        chain.c \
        chain.h \
-       controller.c \
-       controller.h \
        crc32.c \
        crc32.h \
        datapath.c \
        datapath.h \
-       forward.c \
-       forward.h \
-       netdev.c \
-       netdev.h \
        switch.c \
        switch-flow.c \
        switch-flow.h \
        table.h \
        table-hash.c \
-       table-linear.c \
-       table-mac.c 
+       table-linear.c
 
-switch_LDADD = ../lib/libopenflow.la -ldl
+switch_LDADD = ../lib/libopenflow.la $(SSL_LIBS)
+
+EXTRA_DIST = switch.8.in
+DISTCLEANFILES = switch.8
+switch.8: switch.8.in Makefile
+       ($(do_subst) && $(ro_man)) < $(srcdir)/switch.8.in > switch.8