#----------------------------------------------------------------------------- # Copyright (c) 1995 Regents of the University of Michigan. # All rights reserved. # # Redistribution and use in source and binary forms are permitted # provided that this notice is preserved and that due credit is given # to the University of Michigan at Ann Arbor. The name of the University # may not be used to endorse or promote products derived from this # software without specific prior written permission. This software # is provided ``as is'' without express or implied warranty. # # shell backend to stand-alone LDAP server makefile # #----------------------------------------------------------------------------- LDAPSRC = ../../.. HDIR = $(LDAPSRC)/include LDIR = $(LDAPSRC)/libraries VERSIONFILE = $(LDAPSRC)/build/version SRCS = init.c config.c fork.c search.c bind.c unbind.c add.c delete.c \ modify.c modrdn.c compare.c abandon.c result.c OBJS = init.o config.o fork.o search.o bind.o unbind.o add.o delete.o \ modify.o modrdn.o compare.o abandon.o result.o INCLUDES= -I. -I.. -I$(HDIR) DEFINES = $(DEFS) $(THREADS) CFLAGS = $(INCLUDES) $(THREADSINCLUDE) $(DEFINES) $(ACFLAGS) all: FORCE -@echo "$(SLAPD_BACKENDS)" | grep LDAP_SHELL 2>&1 > /dev/null; \ if [ $$? = 0 ]; then \ $(MAKE) $(MFLAGS) CC=$(CC) libback-shell.a; \ else \ echo "Include -DLDAP_SHELL in SLAPD_BACKENDS in the"; \ echo "Make-common file to build the shell backend"; \ fi libback-shell.a: version.o $(AR) ruv $@ $(OBJS) version.o @if [ ! -z "$(RANLIB)" ]; then \ $(RANLIB) $@; \ fi @touch ../.backend version.c: $(OBJS) $(RM) $@ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \ -e "s|%VERSION%|$${v}|" \ < Version.c > $@) install: FORCE lint: FORCE $(LINT) $(INCLUDES) $(DEFINES) $(SRCS) 5lint: FORCE $(5LINT) $(INCLUDES) $(DEFINES) $(SRCS) clean: FORCE $(RM) libback-shell.a *.o core a.out version.c depend: FORCE $(MKDEP) $(INCLUDES) $(DEFINES) $(SRCS) links: @$(LN) .src/*.[ch] . # DO NOT DELETE THIS LINE -- mkdep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. init.o: init.c ../slap.h ../../../include/avl.h ../../../include/lber.h init.o: ../../../include/ldap.h ../../../include/lthread.h init.o: ../../../include/ldif.h shell.h config.o: config.c ../slap.h ../../../include/avl.h ../../../include/lber.h config.o: ../../../include/ldap.h ../../../include/lthread.h config.o: ../../../include/ldif.h shell.h fork.o: fork.c ../slap.h ../../../include/avl.h ../../../include/lber.h fork.o: ../../../include/ldap.h ../../../include/lthread.h fork.o: ../../../include/ldif.h search.o: search.c ../slap.h ../../../include/avl.h ../../../include/lber.h search.o: ../../../include/ldap.h ../../../include/lthread.h search.o: ../../../include/ldif.h shell.h bind.o: bind.c ../slap.h ../../../include/avl.h ../../../include/lber.h bind.o: ../../../include/ldap.h ../../../include/lthread.h bind.o: ../../../include/ldif.h shell.h unbind.o: unbind.c ../slap.h ../../../include/avl.h ../../../include/lber.h unbind.o: ../../../include/ldap.h ../../../include/lthread.h unbind.o: ../../../include/ldif.h shell.h add.o: add.c ../slap.h ../../../include/avl.h ../../../include/lber.h add.o: ../../../include/ldap.h ../../../include/lthread.h add.o: ../../../include/ldif.h shell.h delete.o: delete.c ../slap.h ../../../include/avl.h ../../../include/lber.h delete.o: ../../../include/ldap.h ../../../include/lthread.h delete.o: ../../../include/ldif.h shell.h modify.o: modify.c ../slap.h ../../../include/avl.h ../../../include/lber.h modify.o: ../../../include/ldap.h ../../../include/lthread.h modify.o: ../../../include/ldif.h shell.h modrdn.o: modrdn.c ../slap.h ../../../include/avl.h ../../../include/lber.h modrdn.o: ../../../include/ldap.h ../../../include/lthread.h modrdn.o: ../../../include/ldif.h shell.h compare.o: compare.c ../slap.h ../../../include/avl.h ../../../include/lber.h compare.o: ../../../include/ldap.h ../../../include/lthread.h compare.o: ../../../include/ldif.h shell.h abandon.o: abandon.c ../slap.h ../../../include/avl.h ../../../include/lber.h abandon.o: ../../../include/ldap.h ../../../include/lthread.h abandon.o: ../../../include/ldif.h shell.h result.o: result.c ../slap.h ../../../include/avl.h ../../../include/lber.h result.o: ../../../include/ldap.h ../../../include/lthread.h result.o: ../../../include/ldif.h shell.h # IF YOU PUT ANYTHING HERE IT WILL GO AWAY