# man pages are put under MANDIR
# programs end-users will run are put in BINDIR
#
-INSTROOT=/usr/local
-ETCDIR= $(INSTROOT)/etc
+PREFIX?=/usr/local
+INSTROOT=${PREFIX}
+ETCDIR= $(INSTROOT)/etc/ldap
INCLUDEDIR= $(INSTROOT)/include
LIBDIR= $(INSTROOT)/lib
MANDIR= $(INSTROOT)/man
#############################################################################
# Passed to every compile (cc or gcc). This is where you put -O or -g, etc.
#EXTRACFLAGS=-g
+EXTRACFLAGS=-O
# Passed to every link (ld). Include -g here if you did in EXTRACFLAGS.
#EXTRALDFLAGS=-g
# four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
#
# berkeley db btree package
-#LDBMBACKEND=-DLDBM_USE_DBBTREE
-#LDBMINCLUDE=-I/usr/local/db/include
+LDBMBACKEND=-DLDBM_USE_DBBTREE
+LDBMINCLUDE=-I/usr/include
#LDBMLIB=-ldb
# berkeley db hash package
#LDBMBACKEND=-DLDBM_USE_DBHASH
#LDBMINCLUDE=-I/usr/local/gdbm/include
#LDBMLIB=-lgdbm
# standard unix ndbm
-LDBMBACKEND=-DLDBM_USE_NDBM
+#LDBMBACKEND=-DLDBM_USE_NDBM
#
# if you want to use a non-default threads package change these lines
#THREADS=-DNO_THREADS
all: FORCE
@echo "making all in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) all"; \
( cd $$i; $(MAKE) $(MFLAGS) all ); \
fi; \
install: FORCE
@echo "making install in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) install"; \
( cd $$i; $(MAKE) $(MFLAGS) install ); \
fi; \
clean: FORCE
@echo "making clean in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) clean"; \
( cd $$i; $(MAKE) $(MFLAGS) clean ); \
fi; \
depend: FORCE
@echo "making depend in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) depend"; \
( cd $$i; $(MAKE) $(MFLAGS) depend ); \
fi; \
links:
@echo "making links in `$(PWD)`"; \
for i in .src/*; do \
- if [ -d $$i -a $$i != ".src/RCS" ]; then \
+ if [ -d $$i -a $$i != ".src/CVS" ]; then \
d=`basename $$i`; \
( $(MKDIR) $$d; cd $$d; $(LN) ../.src/$$d .src; \
$(LN) ../.src/$$d/Make-template . ; \
all: FORCE
@echo "making all in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) all"; \
( cd $$i; $(MAKE) $(MFLAGS) all ); \
fi; \
install: FORCE
@echo "making install in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) install"; \
( cd $$i; $(MAKE) $(MFLAGS) install ); \
fi; \
clean: FORCE
@echo "making clean in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) clean"; \
( cd $$i; $(MAKE) $(MFLAGS) clean ); \
fi; \
depend: FORCE
@echo "making depend in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) depend"; \
( cd $$i; $(MAKE) $(MFLAGS) depend ); \
fi; \
lint: FORCE
@echo "making lint in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) lint"; \
( cd $$i; $(MAKE) $(MFLAGS) lint ); \
fi; \
5lint: FORCE
@echo "making 5lint in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) 5lint"; \
( cd $$i; $(MAKE) $(MFLAGS) 5lint ); \
fi; \
links:
@echo "making links in `$(PWD)`"; \
for i in .src/*; do \
- if [ -d $$i -a $$i != ".src/RCS" ]; then \
+ if [ -d $$i -a $$i != ".src/CVS" ]; then \
d=`basename $$i`; \
( $(MKDIR) $$d; cd $$d; $(LN) ../.src/$$d .src; \
$(LN) ../.src/$$d/Make-template . ; \
all: FORCE
@echo "making all in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) all"; \
( cd $$i; $(MAKE) $(MFLAGS) all ); \
fi; \
install: FORCE
@echo "making install in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) install"; \
( cd $$i; $(MAKE) $(MFLAGS) install ); \
fi; \
clean: FORCE
@echo "making clean in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) clean"; \
( cd $$i; $(MAKE) $(MFLAGS) clean ); \
fi; \
depend: FORCE
@echo "making depend in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) depend"; \
( cd $$i; $(MAKE) $(MFLAGS) depend ); \
fi; \
links:
@echo "making links in `$(PWD)`"; \
for i in .src/*; do \
- if [ -d $$i -a $$i != ".src/RCS" ]; then \
+ if [ -d $$i -a $$i != ".src/CVS" ]; then \
d=`basename $$i`; \
( $(MKDIR) $$d; cd $$d; $(LN) ../.src/$$d .src; \
$(LN) ../.src/$$d/Make-template . ; \
all: FORCE
@echo "making all in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) all"; \
( cd $$i; $(MAKE) $(MFLAGS) all ); \
fi; \
install: FORCE
@echo "making install in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) install"; \
( cd $$i; $(MAKE) $(MFLAGS) install ); \
fi; \
clean: FORCE
@echo "making clean in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) clean"; \
( cd $$i; $(MAKE) $(MFLAGS) clean ); \
fi; \
depend: FORCE
@echo "making depend in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) depend"; \
( cd $$i; $(MAKE) $(MFLAGS) depend ); \
fi; \
links:
@echo "making links in `$(PWD)`"; \
for i in .src/*; do \
- if [ -d $$i -a $$i != ".src/RCS" ]; then \
+ if [ -d $$i -a $$i != ".src/CVS" ]; then \
d=`basename $$i`; \
( $(MKDIR) $$d; cd $$d; $(LN) ../.src/$$d .src; \
$(LN) ../.src/$$d/Make-template . ; \
all: FORCE
@echo "making all in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo " cd $$i; $(MAKE) $(MFLAGS) all"; \
( cd $$i; $(MAKE) $(MFLAGS) all ); \
fi; \
install: FORCE
@echo "making install in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo " cd $$i; $(MAKE) $(MFLAGS) install"; \
( cd $$i; $(MAKE) $(MFLAGS) install ); \
fi; \
clean: FORCE
@echo "making clean in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo " cd $$i; $(MAKE) $(MFLAGS) clean"; \
( cd $$i; $(MAKE) $(MFLAGS) clean ); \
fi; \
depend: FORCE
@echo "making depend in `$(PWD)`"
@for i in *; do \
- if [ -d $$i -a $$i != "RCS" ]; then \
+ if [ -d $$i -a $$i != "CVS" ]; then \
echo " cd $$i; $(MAKE) $(MFLAGS) depend"; \
( cd $$i; $(MAKE) $(MFLAGS) depend ); \
fi; \
links:
@echo "making links in `$(PWD)`"; \
for i in .src/*; do \
- if [ -d $$i -a $$i != ".src/RCS" ]; then \
+ if [ -d $$i -a $$i != ".src/CVS" ]; then \
d=`basename $$i`; \
( $(MKDIR) $$d; cd $$d; $(LN) ../.src/$$d .src; \
$(LN) ../.src/$$d/Make-template . ; \
extern char *str_getline( char **next );
extern void ch_free( char *p );
+#if !(defined(BSD) && (BSD >= 199306))
extern char *sys_errlist[];
+#endif
/* Forward references */
static Rh *get_repl_hosts( char *, int *, char ** );
extern void Re_dump();
#endif /* NEEDPROTOS */
-
+#if !(defined(BSD) && (BSD >= 199306))
extern char *sys_errlist[];
-
+#endif
/*
* Lock the replication queue.
depend: FORCE
clean: FORCE
- $(RM) test-db/* test-repl/*
+ $(RM) test-db/[a-z]* test-repl/[a-z]*
veryclean: clean