10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 52522Sraf# Common Development and Distribution License (the "License"). 62522Sraf# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*13132SGlenn.Barry@oracle.com# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 230Sstevel@tonic-gate# 240Sstevel@tonic-gate 250Sstevel@tonic-gateLIBRARY = libgss.a 260Sstevel@tonic-gateVERS = .1 270Sstevel@tonic-gate 280Sstevel@tonic-gateGSSOBJECTS = g_acquire_cred.o \ 290Sstevel@tonic-gate g_acquire_cred_with_pw.o \ 300Sstevel@tonic-gate g_store_cred.o \ 310Sstevel@tonic-gate g_rel_cred.o \ 320Sstevel@tonic-gate g_init_sec_context.o \ 330Sstevel@tonic-gate g_accept_sec_context.o \ 340Sstevel@tonic-gate g_process_context.o \ 350Sstevel@tonic-gate g_delete_sec_context.o \ 360Sstevel@tonic-gate g_imp_sec_context.o \ 370Sstevel@tonic-gate g_exp_sec_context.o \ 380Sstevel@tonic-gate g_context_time.o \ 390Sstevel@tonic-gate g_sign.o \ 400Sstevel@tonic-gate g_verify.o \ 410Sstevel@tonic-gate g_seal.o \ 420Sstevel@tonic-gate g_unseal.o \ 430Sstevel@tonic-gate g_dsp_status.o \ 440Sstevel@tonic-gate g_compare_name.o \ 450Sstevel@tonic-gate g_dsp_name.o \ 460Sstevel@tonic-gate g_imp_name.o \ 470Sstevel@tonic-gate g_rel_name.o \ 480Sstevel@tonic-gate g_rel_buffer.o \ 490Sstevel@tonic-gate g_rel_oid_set.o \ 500Sstevel@tonic-gate g_oid_ops.o \ 510Sstevel@tonic-gate g_inquire_cred.o \ 520Sstevel@tonic-gate g_inquire_context.o \ 530Sstevel@tonic-gate g_inquire_names.o \ 540Sstevel@tonic-gate g_initialize.o \ 550Sstevel@tonic-gate g_glue.o \ 560Sstevel@tonic-gate gssd_pname_to_uid.o \ 570Sstevel@tonic-gate oid_ops.o \ 580Sstevel@tonic-gate g_canon_name.o \ 590Sstevel@tonic-gate g_dup_name.o \ 600Sstevel@tonic-gate g_export_name.o \ 610Sstevel@tonic-gate g_utils.o \ 6210598SGlenn.Barry@Sun.COM g_userok.o \ 6310598SGlenn.Barry@Sun.COM g_buffer_set.o \ 6410598SGlenn.Barry@Sun.COM g_inq_context_oid.o \ 650Sstevel@tonic-gate 660Sstevel@tonic-gate 670Sstevel@tonic-gate# defines the duplicate sources we share with gsscred 680Sstevel@tonic-gateGSSCRED_DIR = $(SRC)/cmd/gss/gsscred 690Sstevel@tonic-gateGSSCREDOBJ = gsscred_utils.o gsscred_file.o 7010598SGlenn.Barry@Sun.COM# defines the duplicate sources we share with krb5 mech 7110598SGlenn.Barry@Sun.COMKRB5DIR= $(SRC)/lib/gss_mechs/mech_krb5/mech 72*13132SGlenn.Barry@oracle.comKRB5OBJ= rel_buffer.o util_buffer_set.o disp_com_err_status.o \ 73*13132SGlenn.Barry@oracle.com util_buffer.o util_errmap.o 74*13132SGlenn.Barry@oracle.com# defines the duplicate sources we share with krb5 mech error table 75*13132SGlenn.Barry@oracle.comKRB5ETDIR= $(SRC)/lib/gss_mechs/mech_krb5/et 76*13132SGlenn.Barry@oracle.comKRB5ETOBJ= error_message.o adb_err.o adm_err.o asn1_err.o \ 77*13132SGlenn.Barry@oracle.com chpass_util_strings.o \ 78*13132SGlenn.Barry@oracle.com gssapi_err_krb5.o gssapi_err_generic.o \ 79*13132SGlenn.Barry@oracle.com import_err.o \ 80*13132SGlenn.Barry@oracle.com kadm_err.o kdb5_err.o kdc5_err.o kpasswd_strings.o krb5_err.o \ 81*13132SGlenn.Barry@oracle.com kv5m_err.o prof_err.o pty_err.o ss_err.o 8210598SGlenn.Barry@Sun.COM# defines the duplicate sources we share with kernel module 830Sstevel@tonic-gateUTSGSSDIR = $(SRC)/uts/common/gssapi 840Sstevel@tonic-gateUTSGSSOBJ = gen_oids.o 8510598SGlenn.Barry@Sun.COM 860Sstevel@tonic-gateSRCS += $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \ 8710598SGlenn.Barry@Sun.COM $(KRB5OBJ:%.o=$(KRB5DIR)/%.c) \ 88*13132SGlenn.Barry@oracle.com $(KRB5ETOBJ:%.o=$(KRB5ETDIR)/%.c) \ 890Sstevel@tonic-gate $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c) 900Sstevel@tonic-gateGSSLINTSRC = $(GSSOBJECTS:%.o=$(SRCDIR)/%.c) \ 910Sstevel@tonic-gate $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \ 920Sstevel@tonic-gate $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c) 93*13132SGlenn.Barry@oracle.comOBJECTS = $(GSSOBJECTS) $(GSSCREDOBJ) $(KRB5OBJ) $(UTSGSSOBJ) $(KRB5ETOBJ) 940Sstevel@tonic-gate 950Sstevel@tonic-gate# include library definitions 960Sstevel@tonic-gateinclude ../../Makefile.lib 970Sstevel@tonic-gate 980Sstevel@tonic-gateLIBS = $(DYNLIB) $(LINTLIB) 990Sstevel@tonic-gate 1000Sstevel@tonic-gate$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) 1012923SrafLDLIBS += -lc 1020Sstevel@tonic-gate 1030Sstevel@tonic-gateCPPFLAGS += -I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \ 10410598SGlenn.Barry@Sun.COM -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 10510598SGlenn.Barry@Sun.COM -I$(SRC)/uts/common/gssapi/ \ 10610598SGlenn.Barry@Sun.COM -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \ 1070Sstevel@tonic-gate -DHAVE_STDLIB_H 1080Sstevel@tonic-gate 1091167Skupfer$(EXPORT_RELEASE_BUILD)include $(CLOSED)/lib/libgss/Makefile.export 1100Sstevel@tonic-gate 1110Sstevel@tonic-gate.KEEP_STATE: 1120Sstevel@tonic-gate 1130Sstevel@tonic-gateall: $(LIBS) 1140Sstevel@tonic-gate 1150Sstevel@tonic-gatelintcheck:= SRCS= $(GSSLINTSRC) 1160Sstevel@tonic-gate 1170Sstevel@tonic-gatelint: lintcheck 1180Sstevel@tonic-gate 1190Sstevel@tonic-gate$(GSSCREDOBJ:%.o=pics/%.o): 1200Sstevel@tonic-gate $(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c) 1210Sstevel@tonic-gate $(POST_PROCESS_O) 1220Sstevel@tonic-gate 12310598SGlenn.Barry@Sun.COM# we need this in libgss so we don't have to link against mech_krb5 124*13132SGlenn.Barry@oracle.compics/rel_buffer.o: $(KRB5DIR)/rel_buffer.c 125*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5DIR)/rel_buffer.c 126*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 127*13132SGlenn.Barry@oracle.com 128*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 129*13132SGlenn.Barry@oracle.compics/util_buffer_set.o: $(KRB5DIR)/util_buffer_set.c 130*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer_set.c 131*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 132*13132SGlenn.Barry@oracle.com 133*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 134*13132SGlenn.Barry@oracle.compics/disp_com_err_status.o: $(KRB5DIR)/disp_com_err_status.c 135*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5DIR)/disp_com_err_status.c 136*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 137*13132SGlenn.Barry@oracle.com 138*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 139*13132SGlenn.Barry@oracle.compics/util_buffer.o: $(KRB5DIR)/util_buffer.c 140*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer.c 141*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 142*13132SGlenn.Barry@oracle.com 143*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 144*13132SGlenn.Barry@oracle.compics/util_errmap.o: $(KRB5DIR)/util_errmap.c 145*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5DIR)/util_errmap.c 146*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 147*13132SGlenn.Barry@oracle.com 148*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 149*13132SGlenn.Barry@oracle.compics/error_message.o: $(KRB5ETDIR)/error_message.c 150*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/error_message.c 151*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 152*13132SGlenn.Barry@oracle.com 153*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 154*13132SGlenn.Barry@oracle.compics/adb_err.o: $(KRB5ETDIR)/adb_err.c 155*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/adb_err.c 156*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 157*13132SGlenn.Barry@oracle.com 158*13132SGlenn.Barry@oracle.compics/adm_err.o: $(KRB5ETDIR)/adm_err.c 159*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/adm_err.c 160*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 161*13132SGlenn.Barry@oracle.com 162*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 163*13132SGlenn.Barry@oracle.compics/asn1_err.o: $(KRB5ETDIR)/asn1_err.c 164*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/asn1_err.c 165*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 166*13132SGlenn.Barry@oracle.com 167*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 168*13132SGlenn.Barry@oracle.compics/chpass_util_strings.o: $(KRB5ETDIR)/chpass_util_strings.c 169*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/chpass_util_strings.c 170*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 171*13132SGlenn.Barry@oracle.com 172*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 173*13132SGlenn.Barry@oracle.compics/gssapi_err_generic.o: $(KRB5ETDIR)/gssapi_err_generic.c 174*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_generic.c 17510598SGlenn.Barry@Sun.COM $(POST_PROCESS_O) 17610598SGlenn.Barry@Sun.COM 17710598SGlenn.Barry@Sun.COM# we need this in libgss so we don't have to link against mech_krb5 178*13132SGlenn.Barry@oracle.compics/gssapi_err_krb5.o: $(KRB5ETDIR)/gssapi_err_krb5.c 179*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_krb5.c 180*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 181*13132SGlenn.Barry@oracle.com 182*13132SGlenn.Barry@oracle.com 183*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 184*13132SGlenn.Barry@oracle.compics/import_err.o: $(KRB5ETDIR)/import_err.c 185*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/import_err.c 186*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 187*13132SGlenn.Barry@oracle.com 188*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 189*13132SGlenn.Barry@oracle.compics/kadm_err.o: $(KRB5ETDIR)/kadm_err.c 190*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/kadm_err.c 191*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 192*13132SGlenn.Barry@oracle.com 193*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 194*13132SGlenn.Barry@oracle.compics/kdb5_err.o: $(KRB5ETDIR)/kdb5_err.c 195*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdb5_err.c 196*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 197*13132SGlenn.Barry@oracle.com 198*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 199*13132SGlenn.Barry@oracle.compics/kdc5_err.o: $(KRB5ETDIR)/kdc5_err.c 200*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdc5_err.c 201*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 202*13132SGlenn.Barry@oracle.com 203*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 204*13132SGlenn.Barry@oracle.compics/kpasswd_strings.o: $(KRB5ETDIR)/kpasswd_strings.c 205*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/kpasswd_strings.c 206*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 207*13132SGlenn.Barry@oracle.com 208*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 209*13132SGlenn.Barry@oracle.compics/krb5_err.o: $(KRB5ETDIR)/krb5_err.c 210*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/krb5_err.c 211*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 212*13132SGlenn.Barry@oracle.com 213*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 214*13132SGlenn.Barry@oracle.compics/kv5m_err.o: $(KRB5ETDIR)/kv5m_err.c 215*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/kv5m_err.c 216*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 217*13132SGlenn.Barry@oracle.com 218*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 219*13132SGlenn.Barry@oracle.compics/prof_err.o: $(KRB5ETDIR)/prof_err.c 220*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/prof_err.c 221*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 222*13132SGlenn.Barry@oracle.com 223*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 224*13132SGlenn.Barry@oracle.compics/pty_err.o: $(KRB5ETDIR)/pty_err.c 225*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/pty_err.c 226*13132SGlenn.Barry@oracle.com $(POST_PROCESS_O) 227*13132SGlenn.Barry@oracle.com 228*13132SGlenn.Barry@oracle.com# we need this in libgss so we don't have to link against mech_krb5 229*13132SGlenn.Barry@oracle.compics/ss_err.o: $(KRB5ETDIR)/ss_err.c 230*13132SGlenn.Barry@oracle.com $(COMPILE.c) -o $@ $(KRB5ETDIR)/ss_err.c 23110598SGlenn.Barry@Sun.COM $(POST_PROCESS_O) 23210598SGlenn.Barry@Sun.COM 2330Sstevel@tonic-gate# gen_oids.c is kept in the kernel since the OIDs declared in them are 2340Sstevel@tonic-gate# used by rpcsec module 2350Sstevel@tonic-gatepics/gen_oids.o: $(SRC)/uts/common/gssapi/gen_oids.c 2360Sstevel@tonic-gate $(COMPILE.c) -o $@ $(SRC)/uts/common/gssapi/gen_oids.c 2370Sstevel@tonic-gate $(POST_PROCESS_O) 2380Sstevel@tonic-gate 2390Sstevel@tonic-gate# include library targets 2400Sstevel@tonic-gateinclude ../../Makefile.targ 241