clean: FORCE
@echo "making clean in `pwd`"
@for i in *; do \
- if [ -d $$i -a $$i != "CVS" ]; then \
+ if [ -d $$i -a $$i != "CVS" -a -f $$i/Makefile ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) clean"; \
( cd $$i; $(MAKE) $(MFLAGS) clean ); \
fi; \
veryclean: FORCE
@echo "making veryclean in `pwd`"
@for i in *; do \
- if [ -d $$i -a -f $$i/Makefile ]; then \
+ if [ -d $$i -a $$i != "CVS" -a -f $$i/Makefile ]; then \
echo; echo " cd $$i; $(MAKE) $(MFLAGS) veryclean"; \
( cd $$i; $(MAKE) $(MFLAGS) veryclean ); \
fi; \
PREFIX?=/usr/local
INSTROOT=${PREFIX}
ETCDIR= $(INSTROOT)/etc/ldap
-EXTRACFLAGS=-O -DLDAP_DEBUG
+EXTRACFLAGS=-O
LDBMBACKEND=-DLDBM_USE_DBBTREE
LDBMINCLUDE=-I/usr/include
#
# This means that the implicit-yield threading is topologically
# equivalent to preemptive threading.
#
-THREADS= -D_THREAD_SAFE -DPOSIX_THREADS -DPTHREAD_PREEMPTIVE
+THREADS= -DPOSIX_THREADS -D_THREAD_SAFE -DPTHREAD_PREEMPTIVE
+
+# use special gcc flag to include libc_r.a
THREADSLIB= -pthread
#THREADSLIB= -lc_r
-# we need to link in the V3 library to get sigset()
-PLATFORMLIBS= -lcrypt
+# crypt(3) is in a separate library
+LDAP_CRYPT_LIB= -lcrypt
#
# -------------------------------------------------------------------------
# you will probably not need to edit anything below this point
# -------------------------------------------------------------------------
CC = gcc
-
PLATFORMCFLAGS= -Dfreebsd
-