Makefile revision 2871f9cf6725277c39b2ceffac261281ef256dac
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A#
2362N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2362N/A# Use is subject to license terms.
0N/A# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
0N/A#
0N/A
0N/A# Note, to build SASL msg file go to $SRC/lib/libsasl and make _msg
0N/A# target there. Messages in sasl_plugins will be picked up from there.
0N/A
0N/Ainclude ../Makefile.lib
0N/A
0N/ASUBDIRS = cram digestmd5 gssapi plain login
0N/A
0N/Aall := TARGET= all
0N/Aclean := TARGET= clean
0N/Aclobber := TARGET= clobber
0N/Ainstall := TARGET= install
0N/Alint := TARGET= lint
0N/A
0N/A.KEEP_STATE:
0N/A
all clean clobber install lint: $(SUBDIRS)
install_h check:
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC:
# EXPORT DELETE START
# CRYPT DELETE START
# Special target to clean up the source tree for export distribution
# Warning: This target changes the source tree
EXPORT_SRC:
$(RM) Makefile+ \
digestmd5/digestmd5.c+ \
gssapi/gssapi.c+
$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< digestmd5/digestmd5.c > digestmd5/digestmd5.c+
$(MV) digestmd5/digestmd5.c+ digestmd5/digestmd5.c
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< gssapi/gssapi.c > gssapi/gssapi.c+
$(MV) gssapi/gssapi.c+ gssapi/gssapi.c
$(CHMOD) 444 \
Makefile \
digestmd5/digestmd5.c \
gssapi/gssapi.c
CRYPT_SRC:
$(RM) Makefile+
$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
< digestmd5/digestmd5.c | $(SED) -e "/EXPORT DELETE/d" \
> digestmd5/digestmd5.c+
$(MV) digestmd5/digestmd5.c+ digestmd5/digestmd5.c
$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
< gssapi/gssapi.c | $(SED) -e "/EXPORT DELETE/d" \
> gssapi/gssapi.c+
$(MV) gssapi/gssapi.c+ gssapi/gssapi.c
$(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
< Makefile | $(SED) -e "/^# EXPORT DELETE/d" > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile digestmd5/digestmd5.c gssapi/gssapi.c
# CRYPT DELETE END
# EXPORT DELETE END
include ../Makefile.targ
.PARALLEL: $(SUBDIRS)