]> git.sur5r.net Git - openldap/commitdiff
Add Makefile templates for libraries.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 17 Sep 1998 09:46:56 +0000 (09:46 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 17 Sep 1998 09:46:56 +0000 (09:46 +0000)
libraries/libavl/Makefile.in [new file with mode: 0644]
libraries/liblber/Makefile.in [new file with mode: 0644]
libraries/libldap/Makefile.in [new file with mode: 0644]
libraries/libldbm/Makefile.in [new file with mode: 0644]
libraries/libldif/Makefile.in [new file with mode: 0644]
libraries/liblthread/Makefile.in [new file with mode: 0644]
libraries/liblutil/Makefile.in [new file with mode: 0644]

diff --git a/libraries/libavl/Makefile.in b/libraries/libavl/Makefile.in
new file mode 100644 (file)
index 0000000..367a178
--- /dev/null
@@ -0,0 +1,12 @@
+##
+## LIBAVL
+##
+
+SRCS = avl.c testavl.c
+XSRCS = version.c
+OBJS = avl.o
+
+LIBRARY = libavl.a
+XPROGRAMS      = testavl
+
+testavl:       $(LIBRARY) testavl.o
diff --git a/libraries/liblber/Makefile.in b/libraries/liblber/Makefile.in
new file mode 100644 (file)
index 0000000..fe4f007
--- /dev/null
@@ -0,0 +1,15 @@
+##
+## LIBLBER
+##
+
+SRCS = decode.c encode.c io.c bprint.c
+OBJS = decode.o encode.o io.o bprint.o
+XSRCS = version.c
+
+LIBRARY = liblber.a
+
+install: $(LIBRARY) FORCE
+       -$(MKDIR) -p $(libdir)
+       $(INSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(libdir)
+       @(cd /tmp; $(RANLIB) $(libdir)/$(LIBRARY))
+       
diff --git a/libraries/libldap/Makefile.in b/libraries/libldap/Makefile.in
new file mode 100644 (file)
index 0000000..7804052
--- /dev/null
@@ -0,0 +1,38 @@
+##
+## Makefile.in for LDAP -lldap
+##
+LIBRARY = libldap.a
+PROGRAMS = ltest ttest
+
+SRCS   = bind.c open.c result.c error.c compare.c search.c \
+       modify.c add.c modrdn.c delete.c abandon.c ufn.c cache.c \
+       getfilter.c sbind.c kbind.c unbind.c friendly.c cldap.c \
+       free.c disptmpl.c srchpref.c dsparse.c tmplout.c sort.c \
+       getdn.c getentry.c getattr.c getvalues.c addentry.c \
+       request.c getdxbyname.c os-ip.c url.c charset.c
+OBJS   = bind.o open.o result.o error.o compare.o search.o \
+       modify.o add.o modrdn.o delete.o abandon.o ufn.o cache.o \
+       getfilter.o sbind.o kbind.o unbind.o friendly.o cldap.o \
+       free.o disptmpl.o srchpref.o dsparse.o tmplout.o sort.o \
+       getdn.o getentry.o getattr.o getvalues.o addentry.o \
+       request.o getdxbyname.o os-ip.o url.o charset.o
+
+LIBS = -L. -L../liblber -lldap -llber $(AC_LIBS)
+LIBLBER = ../liblber/liblber.a
+
+ltest: $(LIBRARY) test.o $(LIBLBER)
+       $(CC) $(LDFLAGS) -o $@ test.o $(LIBS)
+ttest: $(LIBRARY) tmpltest.o $(LIBLBER)
+       $(CC) $(LDFLAGS) -o $@ test.o $(LIBS)
+
+CFFILES= ldapfilter.conf ldapfriendly ldaptemplates.conf ldapsearchprefs.conf
+install: $(LIBRARY) $(CFFILES) FORCE
+       -$(MKDIR) -p $(libdir)
+       $(INSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(libdir)
+       @(cd /tmp; $(RANLIB) $(libdir)/$(LIBRARY))
+       -$(MKDIR) -p $(sysconfdir)
+       @for i in $(CFFILES); do \
+               echo "installing $$i in $(sysconfdir)"; \
+               $(MV) $(sysconfdir)/$$i $(sysconfdir)/$$i- ; \
+               $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir) ; \
+       done
diff --git a/libraries/libldbm/Makefile.in b/libraries/libldbm/Makefile.in
new file mode 100644 (file)
index 0000000..ffc9d96
--- /dev/null
@@ -0,0 +1,11 @@
+##
+## Makefile for -lldbm
+##
+LIBRARY                = libldbm.a
+XPROGRAMS      = testldbm
+SRCS           = ldbm.c
+OBJS           = ldbm.o
+
+LIBS = -L$(LDAP_LIBDIR) -lavl $(AC_LIBS)
+testldbm:      libldbm.a testldbm.o
+       $(CC) $(LDFLAGS) -o $@ testldbm.o $(LIBS)
diff --git a/libraries/libldif/Makefile.in b/libraries/libldif/Makefile.in
new file mode 100644 (file)
index 0000000..8478ad2
--- /dev/null
@@ -0,0 +1,6 @@
+##
+## Makefile for -lldif
+##
+LIBRARY        = libldif.a
+SRCS   = line64.c
+OBJS   = line64.o
diff --git a/libraries/liblthread/Makefile.in b/libraries/liblthread/Makefile.in
new file mode 100644 (file)
index 0000000..762b6ba
--- /dev/null
@@ -0,0 +1,7 @@
+##
+## Makefile for -llthread
+##
+LIBRARY        = liblthread.a
+XSRCS  = version.c
+SRCS   = thread.c stack.c
+OBJS   = thread.o stack.o
diff --git a/libraries/liblutil/Makefile.in b/libraries/liblutil/Makefile.in
new file mode 100644 (file)
index 0000000..125db2a
--- /dev/null
@@ -0,0 +1,6 @@
+##
+## Makefile for -lutil
+##
+LIBRARY        = liblutil.a
+SRCS   = base64.c md5.c sha1.c
+OBJS   = base64.o md5.o sha1.o