xref: /titanic_41/usr/src/cmd/ldap/Makefile (revision e1dd0a2f3a26050d1f183c1cafae42c4e3a0b57e)
1#
2# Copyright 2008 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 \
14		standalone
15COMM_FILES=	ldapsearch ldapmodify ldapmodrdn ldapdelete common  \
16		fileurl ldaptool-sasl
17NS_POFILES=	$(NS_FILES:%=ns_ldap/%.po)
18POFILES=	$(NS_POFILES) $(COMM_FILES:%=common/%.po)
19
20all :=		TARGET= all
21clean :=	TARGET= clean
22clobber :=	TARGET= clobber
23delete :=	TARGET= delete
24install :=	TARGET= install
25lint :=		TARGET= lint
26catalog :=	TARGET= catalog
27_msg :=		TARGET= _msg
28package :=	TARGET= package
29$(POFILES) :=	CFLAGS += -I ../../lib/libldap5/include/ldap \
30			-I ../../lib/libsldap/common \
31			-I ../../lib/libnsl/include/rpcsvc \
32			-DNO_LIBLCACHE -DLDAP_REFERRALS -DNET_SSL \
33			-DLDAPSSLIO -DHAVE_SASL_OPTIONS \
34			-DSOLARIS_LDAP_CMD
35$(NS_POFILES) := C99MODE = $(C99_ENABLE)
36
37.KEEP_STATE:
38
39all clobber delete install lint catalog package: $(SUBDIRS)
40
41clean:	$(SUBDIRS)
42	$(RM) $(POFILES) $(POFILE)
43
44# install rule for install_h target
45
46# install: $(SUBDIRS)
47# 	-$(RM) $(ROOTUSRBIN)
48
49check: $(CHECKHDRS)
50
51$(MACH) :	FRC
52	@cd $@; pwd; $(MAKE) $(TARGET)
53
54$(POFILE): $(POFILES)
55	$(RM) $@
56	cat $(POFILES) > $@
57
58FRC:
59
60include ../Makefile.targ
61