Makefile revision 4e5b757fbcf21077677360be274461dcd9064106
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#
2362N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A
0N/Ainclude ../Makefile.lib
0N/A
0N/AHDRS= sasl.h saslplug.h saslutil.h prop.h
0N/AHDRDIR= include
0N/AROOTHDRDIR= $(ROOT)/usr/include/sasl
0N/A
0N/ASUBDIRS = $(MACH)
0N/A$(BUILD64)SUBDIRS += $(MACH64)
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/ALIBRARY= libsasl.a
0N/APOFILE= $(LIBRARY:.a=.po)
0N/AMSGFILES= lib/canonusr.c lib/checkpw.c lib/client.c lib/common.c \
0N/A lib/external.c lib/server.c lib/seterror.c \
0N/A plugin/plugin_common.c \
0N/A $(SRC)/lib/sasl_plugins/cram/cram.c \
0N/A $(SRC)/lib/sasl_plugins/digestmd5/digestmd5.c \
0N/A $(SRC)/lib/sasl_plugins/gssapi/gssapi.c \
0N/A $(SRC)/lib/sasl_plugins/plain/plain.c
0N/A
0N/A.KEEP_STATE:
0N/A
0N/Aall clean clobber install lint: $(SUBDIRS)
0N/A
0N/Aall install: THIRDPARTYLICENSE
install_h: $(ROOTHDRS)
check: $(CHECKHDRS)
$(POFILE): $(MSGFILES)
$(BUILDPO.msgfiles)
_msg: $(MSGDOMAINPOFILE)
include $(SRC)/Makefile.msg.targ
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC:
THIRDPARTYLICENSE: LICENSE.txt
$(SED) -n '/Carnegie Mellon/,$$p' LICENSE.txt > $@
CLOBBERFILES += THIRDPARTYLICENSE
# 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+ \
lib/client.c+ \
lib/server.c+ \
lib/common.c+ \
lib/saslint.h+ \
include/plugin_common.h+
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< lib/client.c > lib/client.c+
$(MV) lib/client.c+ lib/client.c
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< lib/server.c > lib/server.c+
$(MV) lib/server.c+ lib/server.c
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< lib/common.c > lib/common.c+
$(MV) lib/common.c+ lib/common.c
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< lib/saslint.h > lib/saslint.h+
$(MV) lib/saslint.h+ lib/saslint.h
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< include/plugin_common.h > include/plugin_common.h+
$(MV) include/plugin_common.h+ include/plugin_common.h
$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile \
lib/client.c \
lib/server.c \
lib/common.c \
lib/saslint.h \
include/plugin_common.h
CRYPT_SRC:
$(RM) Makefile+ lib/common.c+
$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
< lib/common.c | $(SED) -e "/EXPORT DELETE/d" \
> lib/common.c+
$(MV) lib/common.c+ lib/common.c
$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
< lib/client.c | $(SED) -e "/EXPORT DELETE/d" \
> lib/client.c+
$(MV) lib/client.c+ lib/client.c
$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
< lib/server.c | $(SED) -e "/EXPORT DELETE/d" \
> lib/server.c+
$(MV) lib/server.c+ lib/server.c
$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
< lib/saslint.h | $(SED) -e "/EXPORT DELETE/d" \
> lib/saslint.h+
$(MV) lib/saslint.h+ lib/saslint.h
$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
< include/plugin_common.h | $(SED) -e "/EXPORT DELETE/d" \
> include/plugin_common.h+
$(MV) include/plugin_common.h+ include/plugin_common.h
$(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
< Makefile | $(SED) -e "/^# EXPORT DELETE/d" > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile \
lib/client.c \
lib/server.c \
lib/common.c \
lib/saslint.h \
include/plugin_common.h
# CRYPT DELETE END
# EXPORT DELETE END
include ../Makefile.targ
.PARALLEL: $(SUBDIRS)