1# 2# Copyright 2003 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5#pragma ident "%Z%%M% %I% %E% SMI" 6# 7# cmd/ldap/Makefile 8 9include ../Makefile.cmd 10 11SUBDIRS= $(MACH) 12POFILE= ldapcmd.po 13NS_FILES= ldapclient ldaplist mapping printResult ldapaddent ldapaddrbac 14COMM_FILES= ldapsearch ldapmodify ldapmodrdn ldapdelete common \ 15 fileurl ldaptool-sasl 16POFILES= $(NS_FILES:%=ns_ldap/%.po) $(COMM_FILES:%=common/%.po) 17 18all := TARGET= all 19clean := TARGET= clean 20clobber := TARGET= clobber 21delete := TARGET= delete 22install := TARGET= install 23lint := TARGET= lint 24catalog := TARGET= catalog 25_msg := TARGET= _msg 26package := TARGET= package 27$(POFILES) := CFLAGS += -I ../../lib/libldap5/include/ldap \ 28 -I ../../lib/libsldap/common \ 29 -I ../../lib/libnsl/include/rpcsvc \ 30 -DNO_LIBLCACHE -DLDAP_REFERRALS -DNET_SSL \ 31 -DLDAPSSLIO -DHAVE_SASL_OPTIONS \ 32 -DSOLARIS_LDAP_CMD 33 34.KEEP_STATE: 35 36all clobber delete install lint catalog package: $(SUBDIRS) 37 38clean: $(SUBDIRS) 39 $(RM) $(POFILES) $(POFILE) 40 41# install rule for install_h target 42 43# install: $(SUBDIRS) 44# -$(RM) $(ROOTUSRBIN) 45 46check: $(CHECKHDRS) 47 48$(MACH) : FRC 49 @cd $@; pwd; $(MAKE) $(TARGET) 50 51$(POFILE): $(POFILES) 52 $(RM) $@ 53 cat $(POFILES) > $@ 54 55FRC: 56 57include ../Makefile.targ 58