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# Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
2N/ALIBRARY = libgss.a
2N/AVERS = .1
2N/ASRC_REL = ../../..
2N/A
2N/AGSSOBJECTS = g_acquire_cred.o \
2N/A g_acquire_cred_with_pw.o \
2N/A g_store_cred.o \
2N/A g_rel_cred.o \
2N/A g_init_sec_context.o \
2N/A g_accept_sec_context.o \
2N/A g_process_context.o \
2N/A g_delete_sec_context.o \
2N/A g_imp_sec_context.o \
2N/A g_exp_sec_context.o \
2N/A g_context_time.o \
2N/A g_sign.o \
2N/A g_verify.o \
2N/A g_seal.o \
2N/A g_unseal.o \
2N/A g_dsp_status.o \
2N/A g_compare_name.o \
2N/A g_dsp_name.o \
2N/A g_imp_name.o \
2N/A g_rel_name.o \
2N/A g_rel_buffer.o \
2N/A g_rel_oid_set.o \
2N/A g_oid_ops.o \
2N/A g_inquire_cred.o \
2N/A g_inquire_context.o \
2N/A g_inquire_names.o \
2N/A g_initialize.o \
2N/A g_glue.o \
2N/A gssd_pname_to_uid.o \
2N/A oid_ops.o \
2N/A g_canon_name.o \
2N/A g_dup_name.o \
2N/A g_export_name.o \
2N/A g_utils.o \
2N/A g_userok.o \
2N/A g_buffer_set.o \
2N/A g_inq_context_oid.o
2N/A
2N/A# defines the duplicate sources we share with gsscred
2N/AGSSCRED_DIR = $(SRC_REL)/cmd/gss/gsscred
2N/AGSSCREDOBJ = gsscred_utils.o gsscred_file.o
2N/A# defines the duplicate sources we share with krb5 mech
2N/AKRB5DIR= $(SRC_REL)/lib/gss_mechs/mech_krb5/mech
2N/AKRB5OBJ= rel_buffer.o util_buffer_set.o disp_com_err_status.o \
2N/A util_buffer.o util_errmap.o
2N/A# defines the duplicate sources we share with krb5 mech error table
2N/AKRB5ETDIR= $(SRC_REL)/lib/gss_mechs/mech_krb5/et
2N/AKRB5ETOBJ= error_message.o adb_err.o adm_err.o asn1_err.o \
2N/A chpass_util_strings.o \
2N/A gssapi_err_krb5.o gssapi_err_generic.o \
2N/A import_err.o \
2N/A kadm_err.o kdb5_err.o kdc5_err.o kpasswd_strings.o krb5_err.o \
2N/A kv5m_err.o prof_err.o pty_err.o ss_err.o
2N/A# defines the duplicate sources we share with kernel module
2N/AUTSGSSDIR = $(SRC_REL)/uts/common/gssapi
2N/AUTSGSSOBJ = gen_oids.o
2N/A
2N/ASRCS += $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
2N/A $(KRB5OBJ:%.o=$(KRB5DIR)/%.c) \
2N/A $(KRB5ETOBJ:%.o=$(KRB5ETDIR)/%.c) \
2N/A $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
2N/AGSSLINTSRC = $(GSSOBJECTS:%.o=$(SRCDIR)/%.c) \
2N/A $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
2N/A $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
2N/AOBJECTS = $(GSSOBJECTS) $(GSSCREDOBJ) $(KRB5OBJ) $(UTSGSSOBJ) $(KRB5ETOBJ)
2N/A
2N/A# include library definitions
2N/Ainclude ../../Makefile.lib
2N/A
2N/ALIBS = $(DYNLIB) $(LINTLIB)
2N/A
2N/A$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
2N/ALDLIBS += -lc
2N/A
2N/ACPPFLAGS += -I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \
2N/A -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
2N/A -I$(SRC)/uts/common/gssapi/ \
2N/A -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \
2N/A -DHAVE_STDLIB_H
2N/A
2N/AC99MODE= -xc99=%all
2N/AC99LMODE= -Xc99=%all -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
2N/ALINTFLAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
2N/A
2N/A$(EXPORT_RELEASE_BUILD)include $(CLOSED)/lib/libgss/Makefile.export
2N/A
2N/A.KEEP_STATE:
2N/A
2N/Aall: stub $(LIBS)
2N/A
2N/Alintcheck:= SRCS= $(GSSLINTSRC)
2N/A
2N/Alint: lintcheck
2N/A
2N/A$(GSSCREDOBJ:%.o=pics/%.o):
2N/A $(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c)
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/rel_buffer.o: $(KRB5DIR)/rel_buffer.c
2N/A $(COMPILE.c) -o $@ $(KRB5DIR)/rel_buffer.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/util_buffer_set.o: $(KRB5DIR)/util_buffer_set.c
2N/A $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer_set.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/disp_com_err_status.o: $(KRB5DIR)/disp_com_err_status.c
2N/A $(COMPILE.c) -o $@ $(KRB5DIR)/disp_com_err_status.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/util_buffer.o: $(KRB5DIR)/util_buffer.c
2N/A $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/util_errmap.o: $(KRB5DIR)/util_errmap.c
2N/A $(COMPILE.c) -o $@ $(KRB5DIR)/util_errmap.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/error_message.o: $(KRB5ETDIR)/error_message.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/error_message.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/adb_err.o: $(KRB5ETDIR)/adb_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/adb_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/adm_err.o: $(KRB5ETDIR)/adm_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/adm_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/asn1_err.o: $(KRB5ETDIR)/asn1_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/asn1_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/chpass_util_strings.o: $(KRB5ETDIR)/chpass_util_strings.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/chpass_util_strings.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/gssapi_err_generic.o: $(KRB5ETDIR)/gssapi_err_generic.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_generic.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/gssapi_err_krb5.o: $(KRB5ETDIR)/gssapi_err_krb5.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_krb5.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/import_err.o: $(KRB5ETDIR)/import_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/import_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/kadm_err.o: $(KRB5ETDIR)/kadm_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/kadm_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/kdb5_err.o: $(KRB5ETDIR)/kdb5_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdb5_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/kdc5_err.o: $(KRB5ETDIR)/kdc5_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdc5_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/kpasswd_strings.o: $(KRB5ETDIR)/kpasswd_strings.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/kpasswd_strings.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/krb5_err.o: $(KRB5ETDIR)/krb5_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/krb5_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/kv5m_err.o: $(KRB5ETDIR)/kv5m_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/kv5m_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/prof_err.o: $(KRB5ETDIR)/prof_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/prof_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/pty_err.o: $(KRB5ETDIR)/pty_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/pty_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# we need this in libgss so we don't have to link against mech_krb5
2N/Apics/ss_err.o: $(KRB5ETDIR)/ss_err.c
2N/A $(COMPILE.c) -o $@ $(KRB5ETDIR)/ss_err.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# gen_oids.c is kept in the kernel since the OIDs declared in them are
2N/A# used by rpcsec module
2N/Apics/gen_oids.o: $(SRC_REL)/uts/common/gssapi/gen_oids.c
2N/A $(COMPILE.c) -o $@ $(SRC_REL)/uts/common/gssapi/gen_oids.c
2N/A $(POST_PROCESS_O)
2N/A
2N/A# include library targets
2N/Ainclude ../../Makefile.targ