diff options
author | cvsadm <cvsadm> | 2005-01-21 00:44:34 +0000 |
---|---|---|
committer | cvsadm <cvsadm> | 2005-01-21 00:44:34 +0000 |
commit | b2093e3016027d6b5cf06b3f91f30769bfc099e2 (patch) | |
tree | cf58939393a9032182c4fbc4441164a9456e82f8 /ldap/Makefile | |
download | ds-b2093e3016027d6b5cf06b3f91f30769bfc099e2.tar.gz ds-b2093e3016027d6b5cf06b3f91f30769bfc099e2.tar.xz ds-b2093e3016027d6b5cf06b3f91f30769bfc099e2.zip |
Moving NSCP Directory Server from DirectoryBranch to TRUNK, initial drop. (foxworth)ldapserver7x
Diffstat (limited to 'ldap/Makefile')
-rw-r--r-- | ldap/Makefile | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/ldap/Makefile b/ldap/Makefile new file mode 100644 index 00000000..61c3f57b --- /dev/null +++ b/ldap/Makefile @@ -0,0 +1,95 @@ +# +# BEGIN COPYRIGHT BLOCK +# Copyright 2001 Sun Microsystems, Inc. +# Portions copyright 1999, 2001-2003 Netscape Communications Corporation. +# All rights reserved. +# END COPYRIGHT BLOCK +# + +# GNU Makefile for Directory Server and Ldap SDK +# + +MCOM_ROOT = ../.. +LDAP_SRC = $(MCOM_ROOT)/ldapserver/ldap + +NOSTDCLEAN=true # don't let nsconfig.mk define target clean +NOSTDSTRIP=true # don't let nsconfig.mk define target strip +NSPR20=true # probably should be defined somewhere else (not sure where) + +include $(MCOM_ROOT)/ldapserver/nsdefs.mk +include $(MCOM_ROOT)/ldapserver/nsconfig.mk +include $(LDAP_SRC)/nsldap.mk + +all: $(LDAP_LIBDIR) $(LDAP_BINDIR) $(LDAP_OBJDIR) ldapprogs ldapdocs + +ldapprogs: + cd include; $(MAKE) $(MFLAGS) all + cd libraries; $(MAKE) $(MFLAGS) buildDirectory + cd servers; $(MAKE) $(MFLAGS) all +ifneq ($(ARCH), WINNT) + cd systools; $(MAKE) $(MFLAGS) all + # new unix installer + cd cm/newinst; $(MAKE) $(MFLAGS) all +ifeq ($(USE_64),1) + # In 64-bit builds, we build the installer 32-bit, which has the side-effect that the uninstaller and ns-update scripts + # get copied into the 32-bit output directory by the makefile above. However, we later want to package them and expect + # to see them in the 64-bit output directory. So, here we copy them over. + $(CP) $(RELDIR_32)/bin/slapd/admin/bin/ns-update $(LDAP_ADMIN_BIN_RELDIR) + $(CP) $(RELDIR_32)/bin/slapd/admin/bin/uninstall $(LDAP_ADMIN_BIN_RELDIR) +endif +else + cd cm/newinstnt; $(MAKE) $(MFLAGS) all +endif + cd admin; $(MAKE) $(MFLAGS) all + +ldapdocs: + if [ -d docs ]; then cd docs/dirhlp; $(MAKE) $(MFLAGS) ; fi + if [ -d docs ]; then cd docs/dirhlp/ag; $(MAKE) $(MFLAGS) ; fi + if [ -d docs ]; then cd docs/dirhlp/deploy; $(MAKE) $(MFLAGS) ; fi + if [ -d docs ]; then cd docs/dirhlp/cli; $(MAKE) $(MFLAGS) ; fi + if [ -d docs ]; then cd docs/dirhlp/schema; $(MAKE) $(MFLAGS) ; fi + if [ -d docs ]; then cd docs/dirhlp/install; $(MAKE) $(MFLAGS) ; fi + if [ -d docs ]; then cd docs/dirhlp/gwcust; $(MAKE) $(MFLAGS) ; fi + if [ -d docs ]; then cd docs/dirhlp/plugin; $(MAKE) $(MFLAGS) ; fi + if [ -d docs ]; then cd docs/dirhlp/orgchart; $(MAKE) $(MFLAGS) ; fi + if [ -d docs ]; then cd docs/dirhlp/dsmlgw; $(MAKE) $(MFLAGS) ; fi + +clientSDK: $(LDAP_LIBDIR) $(LDAP_BINDIR) $(LDAP_OBJDIR) + cd include; $(MAKE) $(MFLAGS) clientSDK +ifeq ($(ARCH), WINNT) + cd servers/slapd/ntmsgdll; $(MAKE) $(MFLAGS) all +endif + cd libraries; $(MAKE) $(MFLAGS) clientSDK + cd clients/tools; $(MAKE) $(MFLAGS) clientSDK + +clean: + cd include; $(MAKE) $(MFLAGS) clean + cd libraries; $(MAKE) $(MFLAGS) clean + cd servers; $(MAKE) $(MFLAGS) clean + cd admin; $(MAKE) $(MFLAGS) clean +ifneq ($(ARCH), WINNT) # new unix installer + cd systools; $(MAKE) $(MFLAGS) clean + cd cm/newinst; $(MAKE) $(MFLAGS) clean +else + cd cm/newinstnt; $(MAKE) $(MFLAGS) clean +endif + +cleanSDK: + cd include; $(MAKE) $(MFLAGS) clean +ifeq ($(ARCH), WINNT) + cd servers/slapd/ntmsgdll; $(MAKE) $(MFLAGS) clean +endif + cd libraries; $(MAKE) $(MFLAGS) clean + cd clients/tools; $(MAKE) $(MFLAGS) clean + +veryclean: clean + +$(LDAP_LIBDIR): + $(MKDIR) $(LDAP_LIBDIR) + +$(LDAP_BINDIR): + $(MKDIR) $(LDAP_BINDIR) + +$(LDAP_OBJDIR): + $(MKDIR) $(LDAP_OBJDIR) + |