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