xref: /onnv-gate/usr/src/lib/libldap5/Makefile (revision 2522:79989c8fe091)
10Sstevel@tonic-gate#
2*2522Sraf# CDDL HEADER START
3*2522Sraf#
4*2522Sraf# The contents of this file are subject to the terms of the
5*2522Sraf# Common Development and Distribution License (the "License").
6*2522Sraf# You may not use this file except in compliance with the License.
7*2522Sraf#
8*2522Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2522Sraf# or http://www.opensolaris.org/os/licensing.
10*2522Sraf# See the License for the specific language governing permissions
11*2522Sraf# and limitations under the License.
12*2522Sraf#
13*2522Sraf# When distributing Covered Code, include this CDDL HEADER in each
14*2522Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2522Sraf# If applicable, add the following below this CDDL HEADER, with the
16*2522Sraf# fields enclosed by brackets "[]" replaced with your own identifying
17*2522Sraf# information: Portions Copyright [yyyy] [name of copyright owner]
18*2522Sraf#
19*2522Sraf# CDDL HEADER END
20*2522Sraf#
21*2522Sraf#
22*2522Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
270Sstevel@tonic-gate
280Sstevel@tonic-gateinclude			../Makefile.lib
290Sstevel@tonic-gate
300Sstevel@tonic-gateSUBDIRS =	$(MACH)
310Sstevel@tonic-gate$(BUILD64)SUBDIRS += $(MACH64)
320Sstevel@tonic-gate
330Sstevel@tonic-gateall :=		TARGET= all
340Sstevel@tonic-gateclean :=	TARGET= clean
350Sstevel@tonic-gateclobber :=	TARGET= clobber
360Sstevel@tonic-gateinstall :=	TARGET= install
370Sstevel@tonic-gatelint :=		TARGET= lint
380Sstevel@tonic-gate_msg :=		TARGET= _msg
390Sstevel@tonic-gate
400Sstevel@tonic-gateLIBRARY=        libldap.a
410Sstevel@tonic-gateTEXT_DOMAIN =   SUNW_OST_OSLIB
420Sstevel@tonic-gateXGETFLAGS=
430Sstevel@tonic-gatePOFILE=         $(LIBRARY:.a=.po)
440Sstevel@tonic-gatePOFILES=        generic.po
450Sstevel@tonic-gate
460Sstevel@tonic-gate.KEEP_STATE:
470Sstevel@tonic-gate
48*2522Srafall clean clobber install: $(SUBDIRS)
490Sstevel@tonic-gate
500Sstevel@tonic-gatelint:
510Sstevel@tonic-gate	@ $(ECHO) "usr/src/lib/libldap5 is third-party code that"
520Sstevel@tonic-gate	@ $(ECHO) "will never be made lint-clean: skipping"
530Sstevel@tonic-gate
540Sstevel@tonic-gate# install rule for install_h target
550Sstevel@tonic-gate$(ROOTHDRDIR)/%: %
560Sstevel@tonic-gate	$(INS.file)
570Sstevel@tonic-gate
580Sstevel@tonic-gateinstall_h: $(ROOTHDRS)
590Sstevel@tonic-gate
600Sstevel@tonic-gatecheck: $(CHECKHDRS)
610Sstevel@tonic-gate
620Sstevel@tonic-gate_msg:   $(MSGDOMAIN) $(POFILE)
630Sstevel@tonic-gate	$(RM) $(MSGDOMAIN)/$(POFILE)
640Sstevel@tonic-gate	$(RM) generic.po
650Sstevel@tonic-gate	$(CP) $(POFILE) $(MSGDOMAIN)
660Sstevel@tonic-gate
670Sstevel@tonic-gate$(POFILE): $(POFILES)
680Sstevel@tonic-gate	$(RM) $@
690Sstevel@tonic-gate	$(CAT) $(POFILES) > $@
700Sstevel@tonic-gate
710Sstevel@tonic-gate$(MSGDOMAIN):
720Sstevel@tonic-gate	$(INS.dir)
730Sstevel@tonic-gate
740Sstevel@tonic-gate$(POFILES):
750Sstevel@tonic-gate	$(RM) messages.po
760Sstevel@tonic-gate	$(XGETTEXT) $(XGETFLAGS)  sources/ldap/*/*.[ch]*
770Sstevel@tonic-gate	sed "/^domain/d" < messages.po  > $@
780Sstevel@tonic-gate	$(RM) messages.po
790Sstevel@tonic-gate
80*2522Sraf$(SUBDIRS): FRC
810Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
820Sstevel@tonic-gate
830Sstevel@tonic-gateFRC:
84