Skip to content

Commit

Permalink
import of trickle 1.07
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusae committed Jun 24, 2013
0 parents commit a2aeb9f
Show file tree
Hide file tree
Showing 57 changed files with 66,100 additions and 0 deletions.
26 changes: 26 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright (c) 2002-2004 Marius Aamodt Eriksen <[email protected]>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The names of the copyright holders may not be used to endorse or
promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45 changes: 45 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
include $(top_srcdir)/Makefile.am.inc

TRICKLEOVERLOADFILES = @LTLIBOBJS@ trickle-overload.lo bwstat.lo trickledu.lo \
atomicio.lo xdr.lo
trickle-overload.so: $(TRICKLEOVERLOADFILES)
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la \
-rpath $(libdir)/trickle $(TRICKLEOVERLOADFILES) $(LIBS) \
$(LDFLAGS) -module -avoid-version -nostdlib @LIBDL@
@rm -f libtmp$@.la tmp$@.so* $@
@cp .libs/libtmp$@.so $@
@rm -f .libs/libtmp$@.*

trickleoverloaddir = $(libdir)/trickle
trickleoverload_DATA = trickle-overload.so

man_MANS = trickle.1 trickled.8 trickled.conf.5

bin_PROGRAMS = trickle trickled tricklectl

trickle_DEPENDENCIES = @ERRO@ @LIBOBJS@
trickle_SOURCES = trickle.c util.c getopt.c
trickle_LDADD = @ERRO@ @LIBOBJS@

trickled_SOURCES = trickled.c atomicio.c print.c bwstat.c client.c conf.c \
util.c cleanup.c getopt.c xdr.c
trickled_LDADD = @EVENTLIB@ @LIBOBJS@

tricklectl_SOURCES = tricklectl.c trickledu.c atomicio.c xdr.c
tricklectl_LDADD = @ERRO@ @LIBOBJS@

AM_CFLAGS += -Wall -Icompat @EVENTINC@

overloaddir = $(libdir)
overload_DATA = libtrickle.so

libtrickle.so: trickle-overload.c atomicio.c
$(overload_DATA):

CLEANFILES = *.so

EXTRA_DIST = LICENSE README strlcat.c strlcpy.c err.c Makefile.am.inc \
compat/sys/queue.h compat/sys/tree.h trickle.1 trickled.8 \
trickled.conf.5 trickle-overload.c trickledu.c cleanup.h \
conf.h message.h trickle.h util.h bwstat.h client.h \
print.h trickledu.h xdr.h
3 changes: 3 additions & 0 deletions Makefile.am.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
AUTOMAKE_OPTIONS = foreign no-dependencies

DISTCLEANFILES = *~
Loading

0 comments on commit a2aeb9f

Please sign in to comment.