1# 2# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# cmd/ldap/Makefile 6 7include ../Makefile.cmd 8 9SUBDIRS= $(MACH) 10POFILE= ldapcmd.po 11NS_FILES= ldapclient ldaplist mapping printResult ldapaddent ldapaddrbac \ 12 standalone 13COMM_FILES= ldapsearch ldapmodify ldapmodrdn ldapdelete common \ 14 fileurl ldaptool-sasl 15NS_POFILES= $(NS_FILES:%=ns_ldap/%.po) 16POFILES= $(NS_POFILES) $(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$(NS_POFILES) := CSTD = $(CSTD_GNU99) 34 35.KEEP_STATE: 36 37all clobber delete install lint catalog package: $(SUBDIRS) 38 39clean: $(SUBDIRS) 40 $(RM) $(POFILES) $(POFILE) 41 42# install rule for install_h target 43 44# install: $(SUBDIRS) 45# -$(RM) $(ROOTUSRBIN) 46 47check: $(CHECKHDRS) 48 49$(MACH) : FRC 50 @cd $@; pwd; $(MAKE) $(TARGET) 51 52$(POFILE): $(POFILES) 53 $(RM) $@ 54 cat $(POFILES) > $@ 55 56FRC: 57 58include ../Makefile.targ 59