X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fautomake.mk;h=6b2af618cc54ec14808a5264e973b4ee5e65e93b;hb=f08cf794c81c3a363b940459ff98963e74a44fa4;hp=ee8eb348d0a51ea52ade630ac988084eac6dda34;hpb=1f5d2de06585322076ce24b2891b0c9c590c8ebf;p=sliver-openvswitch.git diff --git a/lib/automake.mk b/lib/automake.mk index ee8eb348d..6b2af618c 100644 --- a/lib/automake.mk +++ b/lib/automake.mk @@ -2,41 +2,84 @@ noinst_LIBRARIES += lib/libopenflow.a lib_libopenflow_a_SOURCES = \ lib/command-line.c \ + lib/command-line.h \ + lib/compiler.h \ lib/csum.c \ + lib/csum.h \ lib/daemon.c \ + lib/daemon.h \ lib/dhcp-client.c \ + lib/dhcp-client.h \ lib/dhcp.c \ + lib/dhcp.h \ + lib/dhparams.h \ + lib/dirs.c \ + lib/dirs.h \ lib/dynamic-string.c \ + lib/dynamic-string.h \ lib/fatal-signal.c \ + lib/fatal-signal.h \ lib/fault.c \ + lib/fault.h \ lib/flow.c \ + lib/flow.h \ lib/hash.c \ + lib/hash.h \ lib/learning-switch.c \ + lib/learning-switch.h \ lib/list.c \ + lib/list.h \ lib/mac-learning.c \ + lib/mac-learning.h \ lib/netdev.c \ - lib/ofpbuf.c \ + lib/netdev.h \ lib/ofp-print.c \ + lib/ofp-print.h \ + lib/ofpbuf.c \ + lib/ofpbuf.h \ + lib/packets.h \ lib/poll-loop.c \ + lib/poll-loop.h \ lib/port-array.c \ + lib/port-array.h \ lib/queue.c \ + lib/queue.h \ lib/random.c \ + lib/random.h \ lib/rconn.c \ + lib/rconn.h \ + lib/sat-math.h \ lib/socket-util.c \ - lib/timeval.c \ + lib/socket-util.h \ lib/stp.c \ + lib/stp.h \ + lib/timeval.c \ + lib/timeval.h \ + lib/type-props.h \ lib/util.c \ + lib/util.h \ + lib/vconn-provider.h \ + lib/vconn-ssl.h \ + lib/vconn-stream.c \ + lib/vconn-stream.h \ lib/vconn-tcp.c \ lib/vconn-unix.c \ - lib/vconn-stream.c \ lib/vconn.c \ + lib/vconn.h \ + lib/vlog-modules.def \ lib/vlog-socket.c \ - lib/vlog.c + lib/vlog-socket.h \ + lib/vlog.c \ + lib/vlog.h \ + lib/xtoxll.h if HAVE_NETLINK lib_libopenflow_a_SOURCES += \ lib/dpif.c \ + lib/dpif.h \ + lib/netlink-protocol.h \ lib/netlink.c \ + lib/netlink.h \ lib/vconn-netlink.c endif @@ -58,3 +101,16 @@ EXTRA_DIST += \ lib/dh2048.pem \ lib/dh4096.pem \ lib/dhparams.h + +CLEANFILES += lib/dirs.c +lib/dirs.c: Makefile + ($(ro_c) && \ + echo 'const char ofp_pkgdatadir[] = "$(pkgdatadir$)";' && \ + echo 'const char ofp_rundir[] = "@RUNDIR@";' && \ + echo 'const char ofp_logdir[] = "@LOGDIR@";') > lib/dirs.c.tmp + mv lib/dirs.c.tmp lib/dirs.c + +install-data-local: + $(MKDIR_P) $(DESTDIR)$(RUNDIR) + $(MKDIR_P) $(DESTDIR)$(PKIDIR) + $(MKDIR_P) $(DESTDIR)$(LOGDIR)