xref: /onnv-gate/usr/src/lib/libsldap/Makefile (revision 4604:5989fb2cb1d5)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
52522Sraf# Common Development and Distribution License (the "License").
62522Sraf# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*4604Sstevel# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
232522Sraf# Use is subject to license terms.
240Sstevel@tonic-gate#
252522Sraf# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
270Sstevel@tonic-gate
280Sstevel@tonic-gateinclude			../Makefile.lib
290Sstevel@tonic-gate
302522SrafSUBDIRS =	$(MACH)
312522Sraf$(BUILD64)SUBDIRS += $(MACH64)
320Sstevel@tonic-gate
330Sstevel@tonic-gateall :=		TARGET= all
340Sstevel@tonic-gateclean :=	TARGET= clean
350Sstevel@tonic-gateclobber :=	TARGET= clobber
360Sstevel@tonic-gatedelete :=	TARGET= delete
370Sstevel@tonic-gateinstall :=	TARGET= install
380Sstevel@tonic-gatelint :=		TARGET= lint
390Sstevel@tonic-gatecatalog :=	TARGET= catalog
400Sstevel@tonic-gate_msg :=		TARGET= _msg
410Sstevel@tonic-gatepackage :=	TARGET= package
420Sstevel@tonic-gate
430Sstevel@tonic-gateLIBRARY=	libsldap.a
440Sstevel@tonic-gateTEXT_DOMAIN =	SUNW_OST_OSLIB
450Sstevel@tonic-gateXGETFLAGS=
460Sstevel@tonic-gatePOFILE=		$(LIBRARY:.a=.po)
470Sstevel@tonic-gatePOFILES=	generic.po
480Sstevel@tonic-gate
490Sstevel@tonic-gate.KEEP_STATE:
500Sstevel@tonic-gate
510Sstevel@tonic-gateall clean clobber delete install lint catalog package: $(SUBDIRS)
520Sstevel@tonic-gate
530Sstevel@tonic-gate# install rule for install_h target
540Sstevel@tonic-gate$(ROOTHDRDIR)/%: %
550Sstevel@tonic-gate	$(INS.file)
560Sstevel@tonic-gate
572522Sraf$(SUBDIRS):	FRC
580Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
590Sstevel@tonic-gate
600Sstevel@tonic-gate_msg:	$(MSGDOMAIN) $(POFILE)
610Sstevel@tonic-gate	$(RM) $(MSGDOMAIN)/$(POFILE)
620Sstevel@tonic-gate	$(RM) generic.po
630Sstevel@tonic-gate	cp $(POFILE) $(MSGDOMAIN)
640Sstevel@tonic-gate
650Sstevel@tonic-gate$(POFILE): $(POFILES)
660Sstevel@tonic-gate	$(RM) $@
670Sstevel@tonic-gate	$(CAT) $(POFILES) > $@
680Sstevel@tonic-gate
690Sstevel@tonic-gate$(MSGDOMAIN):
700Sstevel@tonic-gate	$(INS.dir)
710Sstevel@tonic-gate
720Sstevel@tonic-gate$(POFILES):
730Sstevel@tonic-gate	$(RM) messages.po
740Sstevel@tonic-gate	$(XGETTEXT) $(XGETFLAGS)  common/*.[ch]*
750Sstevel@tonic-gate	sed "/^domain/d" < messages.po  > $@
760Sstevel@tonic-gate	$(RM) messages.po
770Sstevel@tonic-gate
780Sstevel@tonic-gateFRC:
790Sstevel@tonic-gate
800Sstevel@tonic-gate# EXPORT DELETE START
810Sstevel@tonic-gateEXPORT_SRC:
820Sstevel@tonic-gate	$(RM) -f common/ns_crypt.c+ Makefile+
830Sstevel@tonic-gate	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" < \
840Sstevel@tonic-gate		common/ns_crypt.c > common/ns_crypt.c+
850Sstevel@tonic-gate	$(MV) common/ns_crypt.c+ common/ns_crypt.c
860Sstevel@tonic-gate	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
870Sstevel@tonic-gate		< Makefile > Makefile+
880Sstevel@tonic-gate	$(MV) Makefile+ Makefile
890Sstevel@tonic-gate	$(CHMOD) 444 Makefile common/ns_crypt.c
900Sstevel@tonic-gate
910Sstevel@tonic-gate# EXPORT DELETE END
92