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#
2N/A
2N/A#
2N/A# Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
2N/A#
2N/A# This make file will build mech_krb5.so.1. This shared object
2N/A# contains all the functionality needed to support the Kereros V5 GSS-API
2N/A# mechanism. No other Kerberos libraries are needed.
2N/A#
2N/A
2N/Ainclude ../../../Makefile.master
2N/A
2N/ASUBDIRS = $(MACH)
2N/A$(BUILD64)SUBDIRS += $(MACH64)
2N/A
2N/A# include library definitions
2N/Ainclude ../../Makefile.lib
2N/A
2N/AGREP= find . \( -name SCCS -prune -o -name '*.[ch]' \) -print | sort | xargs grep
2N/A
2N/Asparcv9_C_PICFLAGS = -K PIC
2N/ATEXT_DOMAIN = SUNW_OST_NETRPC
2N/APOFILE = mech_krb5.po
2N/APOFILES = generic.po
2N/A
2N/AHDRS= include/profile.h krb5/keytab/kt_solaris.h
2N/A
2N/ACHECKHDRS= $(HDRS:%.h=%.check)
2N/A
2N/AROOTHDRDIR= $(ROOT)/usr/include/kerberosv5/private
2N/AROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
2N/A
2N/A$(ROOTDIRS)/%: %
2N/A $(INS.file)
2N/A
2N/Aall := TARGET= all
2N/Aclean := TARGET= clean
2N/Aclobber := TARGET= clobber
2N/Ainstall := TARGET= install
2N/Alint := TARGET= lint
2N/Ainstall_h := TARGET= install_h
2N/Astub := TARGET = stub
2N/Astubinstall := TARGET = stubinstall
2N/A
2N/A.KEEP_STATE:
2N/A
2N/Aall clean lint stub stubinstall: $(SUBDIRS)
2N/A
2N/Ainstall: install_h install_dir all .WAIT $(SUBDIRS)
2N/A
2N/A# override ROOTLIBDIR and ROOTLINKS
2N/AINSTALL_LIBDIR= usr/lib/gss
2N/AINSTALL_LIBDIR64 = usr/lib/$(MACH64)/gss
2N/A
2N/Ainstall_dir: $(ROOTLIBDIR) $(BUILD64)
2N/A
2N/Ainstall_h: $(ROOTHDRDIR)/include $(ROOTHDRDIR)/krb5/keytab $(ROOTHDRS)
2N/A
2N/A$(ROOTHDRDIR)/include:
2N/A $(INS.dir)
2N/A
2N/A$(ROOTHDRDIR)/krb5/keytab:
2N/A $(INS.dir)
2N/A
2N/A$(ROOTHDRDIR)/include/profile.h: include/profile.h
2N/A $(INS.file) include/profile.h
2N/A
2N/A$(ROOTHDRDIR)/krb5/keytab/kt_solaris.h: krb5/keytab/kt_solaris.h
2N/A $(INS.file) krb5/keytab/kt_solaris.h
2N/A
2N/Aclobber: $(SUBDIRS)
2N/A $(RM) $(POFILE) $(POFILES)
2N/A
2N/Acheck: $(CHECKHDRS)
2N/A
2N/Ado_pkg:
2N/A cd pkg ; pwd ; $(MAKE) install
2N/A
2N/A$(ROOTLIBDIR):
2N/A $(INS.dir)
2N/A
2N/A
2N/A# include library targets
2N/A# include ../../Makefile.targ
2N/A
2N/A$(SUBDIRS): FRC
2N/A @cd $@; pwd; $(MAKE) $(TARGET)
2N/A
2N/AFRC:
2N/A
2N/A# EXPORT DELETE START
2N/A# Special target to clean up the source tree for export distribution
2N/A# Warning: This target changes the source tree
2N/AEXPORT_SRC:
2N/A $(RM) Makefile+ Makefile.mech_krb5+\
2N/A crypto/des/afsstring2key.c+ \
2N/A crypto/des/string2key.c+ \
2N/A mech/krb5_gss_glue.c+
2N/A
2N/A $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
2N/A < crypto/des/afsstring2key.c > crypto/des/afsstring2key.c+
2N/A $(MV) crypto/des/afsstring2key.c+ crypto/des/afsstring2key.c
2N/A
2N/A $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
2N/A < crypto/des/string2key.c > crypto/des/string2key.c+
2N/A $(MV) crypto/des/string2key.c+ crypto/des/string2key.c
2N/A
2N/A $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
2N/A < mech/krb5_gss_glue.c > mech/krb5_gss_glue.c+
2N/A $(MV) mech/krb5_gss_glue.c+ mech/krb5_gss_glue.c
2N/A
2N/A $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
2N/A < Makefile.mech_krb5 > Makefile.mech_krb5+
2N/A $(MV) Makefile.mech_krb5+ Makefile.mech_krb5
2N/A
2N/A $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
2N/A < Makefile > Makefile+
2N/A $(MV) Makefile+ Makefile
2N/A
2N/A $(CHMOD) 444 Makefile Makefile.mech_krb5 \
2N/A crypto/des/afsstring2key.c \
2N/A crypto/des/string2key.c \
2N/A mech/krb5_gss_glue.c
2N/A
2N/A
2N/A# CRYPT DELETE START
2N/A# Special target to clean up the source tree for domestic distribution
2N/A# Warning: This target changes the source tree
2N/ACRYPT_SRC:
2N/A $(RM) Makefile+ mech/krb5_gss_glue.c+
2N/A
2N/A $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
2N/A > mech/krb5_gss_glue.c+ < mech/krb5_gss_glue.c
2N/A $(MV) mech/krb5_gss_glue.c+ mech/krb5_gss_glue.c
2N/A
2N/A $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
2N/A < Makefile \
2N/A | $(SED) -e "/EXPORT DELETE/d" \
2N/A > Makefile+
2N/A $(MV) Makefile+ Makefile
2N/A
2N/A $(CHMOD) 444 mech/krb5_gss_glue.c Makefile
2N/A
2N/A# CRYPT DELETE END
2N/A# EXPORT DELETE END
2N/A
2N/A
2N/A
2N/AFRC:
2N/A
2N/A_msg: $(MSGDOMAIN) .WAIT $(POFILE)
2N/A $(RM) $(MSGDOMAIN)/$(POFILE)
2N/A $(CP) $(POFILE) $(MSGDOMAIN)
2N/A
2N/A$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
2N/A $(RM) $@
2N/A $(CAT) $(POFILES) > $@
2N/A
2N/Ageneric.po: FRC
2N/A $(RM) messages.po
2N/A -$(XGETTEXT) $(XGETFLAGS) `$(GREP) -s -l gettext`
2N/A $(SED) "/^domain/d" messages.po > $@
2N/A $(RM) messages.po
2N/A
2N/A$(MSGDOMAIN):
2N/A $(INS.dir)