xref: /onnv-gate/usr/src/lib/sasl_plugins/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-gate# Note, to build SASL msg file go to $SRC/lib/libsasl and make _msg
290Sstevel@tonic-gate# target there.  Messages in sasl_plugins will be picked up from there.
300Sstevel@tonic-gate
310Sstevel@tonic-gateinclude	../Makefile.lib
320Sstevel@tonic-gate
330Sstevel@tonic-gateSUBDIRS =	cram digestmd5 gssapi plain
340Sstevel@tonic-gate
350Sstevel@tonic-gateall :=		TARGET= all
360Sstevel@tonic-gateclean :=	TARGET= clean
370Sstevel@tonic-gateclobber :=	TARGET= clobber
380Sstevel@tonic-gateinstall :=	TARGET= install
390Sstevel@tonic-gatelint :=		TARGET= lint
400Sstevel@tonic-gate
410Sstevel@tonic-gate.KEEP_STATE:
420Sstevel@tonic-gate
43*2522Srafall clean clobber install lint: $(SUBDIRS)
440Sstevel@tonic-gate
450Sstevel@tonic-gateinstall_h check:
460Sstevel@tonic-gate
47*2522Sraf$(SUBDIRS): FRC
480Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
490Sstevel@tonic-gate
500Sstevel@tonic-gateFRC:
510Sstevel@tonic-gate
520Sstevel@tonic-gate# EXPORT DELETE START
530Sstevel@tonic-gate# CRYPT DELETE START
540Sstevel@tonic-gate# Special target to clean up the source tree for export distribution
550Sstevel@tonic-gate# Warning: This target changes the source tree
560Sstevel@tonic-gateEXPORT_SRC:
570Sstevel@tonic-gate	$(RM) 	Makefile+ \
580Sstevel@tonic-gate		digestmd5/digestmd5.c+ \
590Sstevel@tonic-gate		gssapi/gssapi.c+
600Sstevel@tonic-gate
610Sstevel@tonic-gate	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
620Sstevel@tonic-gate		< Makefile > Makefile+
630Sstevel@tonic-gate	$(MV) Makefile+ Makefile
640Sstevel@tonic-gate
650Sstevel@tonic-gate	$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
660Sstevel@tonic-gate		< digestmd5/digestmd5.c > digestmd5/digestmd5.c+
670Sstevel@tonic-gate	$(MV) digestmd5/digestmd5.c+ digestmd5/digestmd5.c
680Sstevel@tonic-gate
690Sstevel@tonic-gate	$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
700Sstevel@tonic-gate		< gssapi/gssapi.c > gssapi/gssapi.c+
710Sstevel@tonic-gate	$(MV) gssapi/gssapi.c+ gssapi/gssapi.c
720Sstevel@tonic-gate
730Sstevel@tonic-gate	$(CHMOD) 444 \
740Sstevel@tonic-gate		Makefile \
750Sstevel@tonic-gate		digestmd5/digestmd5.c \
760Sstevel@tonic-gate		gssapi/gssapi.c
770Sstevel@tonic-gate
780Sstevel@tonic-gateCRYPT_SRC:
790Sstevel@tonic-gate	$(RM) Makefile+
800Sstevel@tonic-gate
810Sstevel@tonic-gate	$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
820Sstevel@tonic-gate		< digestmd5/digestmd5.c | $(SED) -e "/EXPORT DELETE/d" \
830Sstevel@tonic-gate		> digestmd5/digestmd5.c+
840Sstevel@tonic-gate	$(MV) digestmd5/digestmd5.c+ digestmd5/digestmd5.c
850Sstevel@tonic-gate
860Sstevel@tonic-gate	$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
870Sstevel@tonic-gate		< gssapi/gssapi.c | $(SED) -e "/EXPORT DELETE/d" \
880Sstevel@tonic-gate		> gssapi/gssapi.c+
890Sstevel@tonic-gate	$(MV) gssapi/gssapi.c+ gssapi/gssapi.c
900Sstevel@tonic-gate
910Sstevel@tonic-gate	$(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
920Sstevel@tonic-gate		< Makefile | $(SED) -e "/^# EXPORT DELETE/d" > Makefile+
930Sstevel@tonic-gate	$(MV) Makefile+ Makefile
940Sstevel@tonic-gate	$(CHMOD) 444 Makefile digestmd5/digestmd5.c gssapi/gssapi.c
950Sstevel@tonic-gate
960Sstevel@tonic-gate# CRYPT DELETE END
970Sstevel@tonic-gate# EXPORT DELETE END
980Sstevel@tonic-gate
990Sstevel@tonic-gateinclude ../Makefile.targ
1000Sstevel@tonic-gate
1010Sstevel@tonic-gate.PARALLEL: $(SUBDIRS)
102