Permalink
Browse files

Import of cdr_yada-008

  • Loading branch information...
1 parent 77c2bad commit 20a4ca01cf41fbdfcfe5f58781f17a481ac30def @pruiz committed Feb 11, 2012
Showing with 3,472 additions and 0 deletions.
  1. +340 −0 COPYING
  2. +76 −0 Makefile
  3. +1,053 −0 cdr_yada.c
  4. +51 −0 cdr_yada.conf.sample
  5. +340 −0 hash/COPYING
  6. +94 −0 hash/Makefile
  7. +20 −0 hash/Makefile.am
  8. +123 −0 hash/bufkey.c
  9. +32 −0 hash/bufkey.h
  10. +296 −0 hash/hash.c
  11. +88 −0 hash/hash.h
  12. +138 −0 hash/intkey.c
  13. +32 −0 hash/intkey.h
  14. +124 −0 hash/strkey.c
  15. +32 −0 hash/strkey.h
  16. +95 −0 hash/test/Makefile
  17. +111 −0 hash/test/t_bufkey.c
  18. +111 −0 hash/test/t_strkey.c
  19. +125 −0 hash/test/t_treekey.c
  20. +159 −0 hash/treekey.c
  21. +32 −0 hash/treekey.h
View
340 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,76 @@
+
+################################################################################
+################################################################################
+# Makefile for cdr_yada
+#
+# $Id: Makefile 1037 2008-01-15 21:08:10Z grizz $
+
+################################################################################
+# variables
+
+ASTERISK_SRC=..
+YADA_PATH=/usr/local
+
+UFP_LDADD=hash/hash.o hash/bufkey.o
+
+CC=gcc
+LD=gcc -shared -Xlinker -x
+CFLAGS=-Wall -g
+CPPFLAGS=$(DEFINES) $(INCLUDES)
+LDFLAGS=-L$(YADA_PATH)/lib
+
+BUILDREV=008
+
+DEFINES=-D_GNU_SOURCE -DBUILDREV=$(BUILDREV)
+INCLUDES=-I$(ASTERISK_SRC) -I$(ASTERISK_SRC)/include -I$(YADA_PATH)/include -Ihash
+
+DISTDIR=cdr_yada-$(BUILDREV)
+DISTFILES=Makefile README COPYING cdr_yada.c cdr_yada.conf.sample hash
+
+################################################################################
+# build
+
+.PHONY : all clean dist distsign modules install
+
+all : cdr_yada.so
+
+clean :
+ -rm -rf cdr_yada.so cdr_yada.o $(DISTDIR) $(DISTDIR).tar.*
+ $(MAKE) -C hash clean
+
+install :
+ @echo
+ @echo Copy cdr_yada.so to your asterisk module directory [default
+ @echo /usr/lib/asterisk/modules].
+ @echo Copy cdr_yada.conf.sample as cdr_yada.conf into your asterisk
+ @echo config directory [default /etc/asterisk] and edit it.
+ @echo
+ @echo see the file README for details
+ @echo
+
+modules:
+ $(MAKE) -C hash CFLAGS="-fPIC $(CFLAGS)"
+
+dist : clean
+ rm -rf $(DISTDIR)
+ mkdir -p $(DISTDIR)
+ cp -r $(DISTFILES) $(DISTDIR)
+ -find $(DISTDIR) -type d -name .svn -exec rm -rf {} \;
+ tar chof - $(DISTDIR) | gzip -c > $(DISTDIR).tar.gz
+ tar chof - $(DISTDIR) | bzip2 -9 -c > $(DISTDIR).tar.bz2
+
+distsign: dist
+ gpg -b --armor $(DISTDIR).tar.gz
+ gpg -b --armor $(DISTDIR).tar.bz2
+ md5sum $(DISTDIR).tar.gz $(DISTDIR).tar.bz2
+
+cdr_yada.so : cdr_yada.o modules
+ $(LD) cdr_yada.o $(LDFLAGS) -lyada $(UFP_LDADD) -o $@
+
+cdr_yada.o : cdr_yada.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -c cdr_yada.c -o $@
+
+################################################################################
+################################################################################
+
+
Oops, something went wrong.

0 comments on commit 20a4ca0

Please sign in to comment.