xref: /titanic_41/usr/src/cmd/ldap/Makefile (revision e1dd0a2f3a26050d1f183c1cafae42c4e3a0b57e)
17c478bd9Sstevel@tonic-gate#
2*e1dd0a2fSth160488# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
57c478bd9Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
67c478bd9Sstevel@tonic-gate#
77c478bd9Sstevel@tonic-gate# cmd/ldap/Makefile
87c478bd9Sstevel@tonic-gate
97c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd
107c478bd9Sstevel@tonic-gate
117c478bd9Sstevel@tonic-gateSUBDIRS=	$(MACH)
127c478bd9Sstevel@tonic-gatePOFILE=		ldapcmd.po
13*e1dd0a2fSth160488NS_FILES=	ldapclient ldaplist mapping printResult ldapaddent ldapaddrbac \
14*e1dd0a2fSth160488		standalone
157c478bd9Sstevel@tonic-gateCOMM_FILES=	ldapsearch ldapmodify ldapmodrdn ldapdelete common  \
167c478bd9Sstevel@tonic-gate		fileurl ldaptool-sasl
17*e1dd0a2fSth160488NS_POFILES=	$(NS_FILES:%=ns_ldap/%.po)
18*e1dd0a2fSth160488POFILES=	$(NS_POFILES) $(COMM_FILES:%=common/%.po)
197c478bd9Sstevel@tonic-gate
207c478bd9Sstevel@tonic-gateall :=		TARGET= all
217c478bd9Sstevel@tonic-gateclean :=	TARGET= clean
227c478bd9Sstevel@tonic-gateclobber :=	TARGET= clobber
237c478bd9Sstevel@tonic-gatedelete :=	TARGET= delete
247c478bd9Sstevel@tonic-gateinstall :=	TARGET= install
257c478bd9Sstevel@tonic-gatelint :=		TARGET= lint
267c478bd9Sstevel@tonic-gatecatalog :=	TARGET= catalog
277c478bd9Sstevel@tonic-gate_msg :=		TARGET= _msg
287c478bd9Sstevel@tonic-gatepackage :=	TARGET= package
297c478bd9Sstevel@tonic-gate$(POFILES) :=	CFLAGS += -I ../../lib/libldap5/include/ldap \
307c478bd9Sstevel@tonic-gate			-I ../../lib/libsldap/common \
317c478bd9Sstevel@tonic-gate			-I ../../lib/libnsl/include/rpcsvc \
327c478bd9Sstevel@tonic-gate			-DNO_LIBLCACHE -DLDAP_REFERRALS -DNET_SSL \
337c478bd9Sstevel@tonic-gate			-DLDAPSSLIO -DHAVE_SASL_OPTIONS \
347c478bd9Sstevel@tonic-gate			-DSOLARIS_LDAP_CMD
35*e1dd0a2fSth160488$(NS_POFILES) := C99MODE = $(C99_ENABLE)
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gate.KEEP_STATE:
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateall clobber delete install lint catalog package: $(SUBDIRS)
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gateclean:	$(SUBDIRS)
427c478bd9Sstevel@tonic-gate	$(RM) $(POFILES) $(POFILE)
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gate# install rule for install_h target
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate# install: $(SUBDIRS)
477c478bd9Sstevel@tonic-gate# 	-$(RM) $(ROOTUSRBIN)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS)
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gate$(MACH) :	FRC
527c478bd9Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gate$(POFILE): $(POFILES)
557c478bd9Sstevel@tonic-gate	$(RM) $@
567c478bd9Sstevel@tonic-gate	cat $(POFILES) > $@
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gateFRC:
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gateinclude ../Makefile.targ
61