Makefile revision f808c858fa61e7769218966759510a8b1190dfcf
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
58N/A#
2N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A# ident "%Z%%M% %I% %E% SMI"
23N/A#
23N/A
23N/A#
23N/A# This make file will build mech_krb5.so.1. This shared object
23N/A# contains all the functionality needed to support the Kereros V5 GSS-API
32N/A# mechanism. No other Kerberos libraries are needed.
32N/A#
32N/A
34N/Ainclude ../../../Makefile.master
32N/A
34N/ASUBDIRS = $(MACH)
32N/A$(BUILD64)SUBDIRS += $(MACH64)
32N/A
58N/A# include library definitions
32N/Ainclude ../../Makefile.lib
225N/A
225N/AGREP= find . \( -name SCCS -prune -o -name '*.[ch]' \) -print | sort | xargs grep
225N/A
225N/Asparcv9_C_PICFLAGS = -K PIC
225N/ATEXT_DOMAIN = SUNW_OST_NETRPC
225N/APOFILE = mech_krb5.po
225N/APOFILES = generic.po
225N/A
225N/AHDRS=
225N/A
2N/ACHECKHDRS= $(HDRS:%.h=%.check)
38N/A
38N/A$(ROOTDIRS)/%: %
38N/A $(INS.file)
38N/A
38N/Aall := TARGET= all
38N/Aclean := TARGET= clean
38N/Aclobber := TARGET= clobber
83N/Ainstall := TARGET= install
83N/Alint := TARGET= lint
99N/A
2N/A.KEEP_STATE:
92N/A
92N/Aall clean lint: $(SUBDIRS)
92N/A
2N/Ainstall: install_dir all .WAIT $(SUBDIRS)
2N/A
313N/A# override ROOTLIBDIR and ROOTLINKS
2N/AROOTLIBDIR= $(ROOT)/usr/lib/gss
34N/A
2N/Ainstall_dir: $(ROOTLIBDIR) $(BUILD64)
313N/A
313N/Ainstall_h:
313N/A
34N/Aclobber: $(SUBDIRS)
2N/A $(RM) $(POFILE) $(POFILES)
313N/A
53N/Acheck: $(CHECKHDRS)
34N/A
70N/Ado_pkg:
2N/A cd pkg ; pwd ; $(MAKE) install
2N/A
2N/A$(ROOTLIBDIR):
2N/A $(INS.dir)
70N/A
105N/A
105N/A# include library targets
2N/A# include ../../Makefile.targ
70N/A
70N/A$(SUBDIRS): FRC
70N/A @cd $@; pwd; $(MAKE) $(TARGET)
70N/A
70N/AFRC:
70N/A
70N/A# EXPORT DELETE START
70N/A# Special target to clean up the source tree for export distribution
70N/A# Warning: This target changes the source tree
70N/AEXPORT_SRC:
6N/A $(RM) Makefile+ Makefile.mech_krb5+\
6N/A crypto/des/afsstring2key.c+ \
6N/A crypto/des/string2key.c+ \
34N/A mech/k5mech.c+
34N/A
34N/A $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
34N/A < crypto/des/afsstring2key.c > crypto/des/afsstring2key.c+
34N/A $(MV) crypto/des/afsstring2key.c+ crypto/des/afsstring2key.c
34N/A
34N/A $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
313N/A < crypto/des/string2key.c > crypto/des/string2key.c+
38N/A $(MV) crypto/des/string2key.c+ crypto/des/string2key.c
34N/A
38N/A $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
34N/A < mech/k5mech.c > mech/k5mech.c+
92N/A $(MV) mech/k5mech.c+ mech/k5mech.c
145N/A
92N/A $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
92N/A < Makefile.mech_krb5 > Makefile.mech_krb5+
92N/A $(MV) Makefile.mech_krb5+ Makefile.mech_krb5
92N/A
92N/A $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
92N/A < Makefile > Makefile+
92N/A $(MV) Makefile+ Makefile
92N/A
313N/A $(CHMOD) 444 Makefile Makefile.mech_krb5 \
38N/A crypto/des/afsstring2key.c \
34N/A crypto/des/string2key.c \
38N/A mech/k5mech.c
32N/A
2N/A
# CRYPT DELETE START
# Special target to clean up the source tree for domestic distribution
# Warning: This target changes the source tree
CRYPT_SRC:
$(RM) Makefile+ mech/k5mech.c+
$(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
> mech/k5mech.c+ < mech/k5mech.c
$(MV) mech/k5mech.c+ mech/k5mech.c
$(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
< Makefile \
| $(SED) -e "/EXPORT DELETE/d" \
> Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 mech/k5mech.c Makefile
# CRYPT DELETE END
# EXPORT DELETE END
FRC:
_msg: $(MSGDOMAIN) .WAIT $(POFILE)
$(RM) $(MSGDOMAIN)/$(POFILE)
$(CP) $(POFILE) $(MSGDOMAIN)
$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
generic.po: FRC
$(RM) messages.po
-$(XGETTEXT) $(XGETFLAGS) `$(GREP) -s -l gettext`
$(SED) "/^domain/d" messages.po > $@
$(RM) messages.po
$(MSGDOMAIN):
$(INS.dir)