LIBNAME= libzmdb
#
# ZMailer Router database search routine library
#
srcdir = .
SHELL= /bin/sh
CC= gcc
COPTS= -g -O2
CPPFLAGS=
CPPDEP= gcc -MM
TOPDIR= ../..
DEFS= -DHAVE_CONFIG_H
RANLIB= ranlib
LIBDB_INCL=
#
INCL= -I$(TOPDIR) -I$(TOPDIR)/include -I$(srcdir)/$(TOPDIR)/include -I$(srcdir)/$(TOPDIR)/libsh
CFLAGS= $(COPTS) $(CPPFLAGS) $(DEFS) $(INCL) $(LIBDB_INCL)
#
OBJS = bind.o dbm.o gdbm.o header.o hostsfile.o incore.o ndbm.o \
ordered.o unordered.o yp.o bsdbtree.o bsdhash.o selfmatch.o ldap.o
SOURCE = bind.c dbm.c gdbm.c header.c hostsfile.c incore.c ndbm.c \
ordered.c unordered.c yp.c bsdbtree.c bsdhash.c selfmatch.c ldap.c
$(LIBNAME).a: $(TOPDIR)/libs/$(LIBNAME).a $(TOPDIR)/include/rfc822.entry
$(TOPDIR)/libs/$(LIBNAME).a: $(OBJS)
ar rv $@ $(OBJS)
$(RANLIB) $@
#-rm -f *.o
$(OBJS):: $(TOPDIR)/include/rfc822.entry $(TOPDIR)/include/sfio.h
$(TOPDIR)/include/rfc822.entry:
cd .. ; $(MAKE) $(MFLAGS) ../include/rfc822.entry
$(TOPDIR)/include/sfio.h:
cd $(TOPDIR)/sfio; $(MAKE) $(MFLAGS)
lintlib: llib-l$(LIBNAME).ln
llib-l$(LIBNAME).ln: $(SOURCE)
lint $(INCL) -C$(LIBNAME) *.c
lint:
lint $(DEFS) $(INCL) ../llib-l*.ln $(SOURCE)
clean:
-rm -f $(LIBNAME).a make.log
-rm -f *.o *.out *.ln *~
distclean: clean
-rm -f Makefile
depend:
CPPDEP="${CPPDEP}" CPPOPT="$(CFLAGS)" $(TOPDIR)/bin/mklibdep -s $(srcdir) $(SOURCE)
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
syntax highlighted by Code2HTML, v. 0.9.1