17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5f808c858Sraf# Common Development and Distribution License (the "License"). 6f808c858Sraf# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 225e01956fSGlenn Barry# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 237c478bd9Sstevel@tonic-gate# 2405ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc. 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateLIBRARY = libgss.a 277c478bd9Sstevel@tonic-gateVERS = .1 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateGSSOBJECTS = g_acquire_cred.o \ 307c478bd9Sstevel@tonic-gate g_acquire_cred_with_pw.o \ 317c478bd9Sstevel@tonic-gate g_store_cred.o \ 327c478bd9Sstevel@tonic-gate g_rel_cred.o \ 337c478bd9Sstevel@tonic-gate g_init_sec_context.o \ 347c478bd9Sstevel@tonic-gate g_accept_sec_context.o \ 357c478bd9Sstevel@tonic-gate g_process_context.o \ 367c478bd9Sstevel@tonic-gate g_delete_sec_context.o \ 377c478bd9Sstevel@tonic-gate g_imp_sec_context.o \ 387c478bd9Sstevel@tonic-gate g_exp_sec_context.o \ 397c478bd9Sstevel@tonic-gate g_context_time.o \ 407c478bd9Sstevel@tonic-gate g_sign.o \ 417c478bd9Sstevel@tonic-gate g_verify.o \ 427c478bd9Sstevel@tonic-gate g_seal.o \ 437c478bd9Sstevel@tonic-gate g_unseal.o \ 447c478bd9Sstevel@tonic-gate g_dsp_status.o \ 457c478bd9Sstevel@tonic-gate g_compare_name.o \ 467c478bd9Sstevel@tonic-gate g_dsp_name.o \ 477c478bd9Sstevel@tonic-gate g_imp_name.o \ 487c478bd9Sstevel@tonic-gate g_rel_name.o \ 497c478bd9Sstevel@tonic-gate g_rel_buffer.o \ 507c478bd9Sstevel@tonic-gate g_rel_oid_set.o \ 517c478bd9Sstevel@tonic-gate g_oid_ops.o \ 527c478bd9Sstevel@tonic-gate g_inquire_cred.o \ 537c478bd9Sstevel@tonic-gate g_inquire_context.o \ 547c478bd9Sstevel@tonic-gate g_inquire_names.o \ 557c478bd9Sstevel@tonic-gate g_initialize.o \ 567c478bd9Sstevel@tonic-gate g_glue.o \ 577c478bd9Sstevel@tonic-gate gssd_pname_to_uid.o \ 587c478bd9Sstevel@tonic-gate oid_ops.o \ 597c478bd9Sstevel@tonic-gate g_canon_name.o \ 607c478bd9Sstevel@tonic-gate g_dup_name.o \ 617c478bd9Sstevel@tonic-gate g_export_name.o \ 627c478bd9Sstevel@tonic-gate g_utils.o \ 63ba7b222eSGlenn Barry g_userok.o \ 64ba7b222eSGlenn Barry g_buffer_set.o \ 65ba7b222eSGlenn Barry g_inq_context_oid.o \ 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gate# defines the duplicate sources we share with gsscred 697c478bd9Sstevel@tonic-gateGSSCRED_DIR = $(SRC)/cmd/gss/gsscred 707c478bd9Sstevel@tonic-gateGSSCREDOBJ = gsscred_utils.o gsscred_file.o 71ba7b222eSGlenn Barry# defines the duplicate sources we share with krb5 mech 72ba7b222eSGlenn BarryKRB5DIR= $(SRC)/lib/gss_mechs/mech_krb5/mech 735e01956fSGlenn BarryKRB5OBJ= rel_buffer.o util_buffer_set.o disp_com_err_status.o \ 745e01956fSGlenn Barry util_buffer.o util_errmap.o 755e01956fSGlenn Barry# defines the duplicate sources we share with krb5 mech error table 765e01956fSGlenn BarryKRB5ETDIR= $(SRC)/lib/gss_mechs/mech_krb5/et 775e01956fSGlenn BarryKRB5ETOBJ= error_message.o adb_err.o adm_err.o asn1_err.o \ 785e01956fSGlenn Barry chpass_util_strings.o \ 795e01956fSGlenn Barry gssapi_err_krb5.o gssapi_err_generic.o \ 805e01956fSGlenn Barry import_err.o \ 815e01956fSGlenn Barry kadm_err.o kdb5_err.o kdc5_err.o kpasswd_strings.o krb5_err.o \ 825e01956fSGlenn Barry kv5m_err.o prof_err.o pty_err.o ss_err.o 83ba7b222eSGlenn Barry# defines the duplicate sources we share with kernel module 847c478bd9Sstevel@tonic-gateUTSGSSDIR = $(SRC)/uts/common/gssapi 857c478bd9Sstevel@tonic-gateUTSGSSOBJ = gen_oids.o 86ba7b222eSGlenn Barry 877c478bd9Sstevel@tonic-gateSRCS += $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \ 88ba7b222eSGlenn Barry $(KRB5OBJ:%.o=$(KRB5DIR)/%.c) \ 895e01956fSGlenn Barry $(KRB5ETOBJ:%.o=$(KRB5ETDIR)/%.c) \ 907c478bd9Sstevel@tonic-gate $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c) 915e01956fSGlenn BarryOBJECTS = $(GSSOBJECTS) $(GSSCREDOBJ) $(KRB5OBJ) $(UTSGSSOBJ) $(KRB5ETOBJ) 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate# include library definitions 947c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 957c478bd9Sstevel@tonic-gate 96*241c90a0SRichard LoweLIBS = $(DYNLIB) 977c478bd9Sstevel@tonic-gate 98*241c90a0SRichard LoweLDLIBS += -lc 997c478bd9Sstevel@tonic-gate 100*241c90a0SRichard LoweCPPFLAGS += -I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \ 101*241c90a0SRichard Lowe -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 102*241c90a0SRichard Lowe -I$(SRC)/uts/common/gssapi/ \ 103*241c90a0SRichard Lowe -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \ 1047c478bd9Sstevel@tonic-gate -DHAVE_STDLIB_H 1057c478bd9Sstevel@tonic-gate 1067014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 107d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 1087014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 1097014882cSRichard LoweCERRWARN += -_gcc=-Wno-empty-body 1107014882cSRichard Lowe 11105ede3dbSJohn Levon# not linted 11205ede3dbSJohn LevonSMATCH=off 11305ede3dbSJohn Levon 1147c478bd9Sstevel@tonic-gate.KEEP_STATE: 1157c478bd9Sstevel@tonic-gate 1167c478bd9Sstevel@tonic-gateall: $(LIBS) 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gate$(GSSCREDOBJ:%.o=pics/%.o): 1207c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c) 1217c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1227c478bd9Sstevel@tonic-gate 123ba7b222eSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1245e01956fSGlenn Barrypics/rel_buffer.o: $(KRB5DIR)/rel_buffer.c 1255e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5DIR)/rel_buffer.c 126ba7b222eSGlenn Barry $(POST_PROCESS_O) 127ba7b222eSGlenn Barry 128ba7b222eSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1295e01956fSGlenn Barrypics/util_buffer_set.o: $(KRB5DIR)/util_buffer_set.c 1305e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer_set.c 1315e01956fSGlenn Barry $(POST_PROCESS_O) 1325e01956fSGlenn Barry 1335e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1345e01956fSGlenn Barrypics/disp_com_err_status.o: $(KRB5DIR)/disp_com_err_status.c 1355e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5DIR)/disp_com_err_status.c 1365e01956fSGlenn Barry $(POST_PROCESS_O) 1375e01956fSGlenn Barry 1385e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1395e01956fSGlenn Barrypics/util_buffer.o: $(KRB5DIR)/util_buffer.c 1405e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer.c 1415e01956fSGlenn Barry $(POST_PROCESS_O) 1425e01956fSGlenn Barry 1435e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1445e01956fSGlenn Barrypics/util_errmap.o: $(KRB5DIR)/util_errmap.c 1455e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5DIR)/util_errmap.c 1465e01956fSGlenn Barry $(POST_PROCESS_O) 1475e01956fSGlenn Barry 1485e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1495e01956fSGlenn Barrypics/error_message.o: $(KRB5ETDIR)/error_message.c 1505e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/error_message.c 1515e01956fSGlenn Barry $(POST_PROCESS_O) 1525e01956fSGlenn Barry 1535e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1545e01956fSGlenn Barrypics/adb_err.o: $(KRB5ETDIR)/adb_err.c 1555e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/adb_err.c 1565e01956fSGlenn Barry $(POST_PROCESS_O) 1575e01956fSGlenn Barry 1585e01956fSGlenn Barrypics/adm_err.o: $(KRB5ETDIR)/adm_err.c 1595e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/adm_err.c 1605e01956fSGlenn Barry $(POST_PROCESS_O) 1615e01956fSGlenn Barry 1625e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1635e01956fSGlenn Barrypics/asn1_err.o: $(KRB5ETDIR)/asn1_err.c 1645e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/asn1_err.c 1655e01956fSGlenn Barry $(POST_PROCESS_O) 1665e01956fSGlenn Barry 1675e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1685e01956fSGlenn Barrypics/chpass_util_strings.o: $(KRB5ETDIR)/chpass_util_strings.c 1695e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/chpass_util_strings.c 1705e01956fSGlenn Barry $(POST_PROCESS_O) 1715e01956fSGlenn Barry 1725e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1735e01956fSGlenn Barrypics/gssapi_err_generic.o: $(KRB5ETDIR)/gssapi_err_generic.c 1745e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_generic.c 1755e01956fSGlenn Barry $(POST_PROCESS_O) 1765e01956fSGlenn Barry 1775e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1785e01956fSGlenn Barrypics/gssapi_err_krb5.o: $(KRB5ETDIR)/gssapi_err_krb5.c 1795e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_krb5.c 1805e01956fSGlenn Barry $(POST_PROCESS_O) 1815e01956fSGlenn Barry 1825e01956fSGlenn Barry 1835e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1845e01956fSGlenn Barrypics/import_err.o: $(KRB5ETDIR)/import_err.c 1855e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/import_err.c 1865e01956fSGlenn Barry $(POST_PROCESS_O) 1875e01956fSGlenn Barry 1885e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1895e01956fSGlenn Barrypics/kadm_err.o: $(KRB5ETDIR)/kadm_err.c 1905e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/kadm_err.c 1915e01956fSGlenn Barry $(POST_PROCESS_O) 1925e01956fSGlenn Barry 1935e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1945e01956fSGlenn Barrypics/kdb5_err.o: $(KRB5ETDIR)/kdb5_err.c 1955e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdb5_err.c 1965e01956fSGlenn Barry $(POST_PROCESS_O) 1975e01956fSGlenn Barry 1985e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 1995e01956fSGlenn Barrypics/kdc5_err.o: $(KRB5ETDIR)/kdc5_err.c 2005e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdc5_err.c 2015e01956fSGlenn Barry $(POST_PROCESS_O) 2025e01956fSGlenn Barry 2035e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 2045e01956fSGlenn Barrypics/kpasswd_strings.o: $(KRB5ETDIR)/kpasswd_strings.c 2055e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/kpasswd_strings.c 2065e01956fSGlenn Barry $(POST_PROCESS_O) 2075e01956fSGlenn Barry 2085e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 2095e01956fSGlenn Barrypics/krb5_err.o: $(KRB5ETDIR)/krb5_err.c 2105e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/krb5_err.c 2115e01956fSGlenn Barry $(POST_PROCESS_O) 2125e01956fSGlenn Barry 2135e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 2145e01956fSGlenn Barrypics/kv5m_err.o: $(KRB5ETDIR)/kv5m_err.c 2155e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/kv5m_err.c 2165e01956fSGlenn Barry $(POST_PROCESS_O) 2175e01956fSGlenn Barry 2185e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 2195e01956fSGlenn Barrypics/prof_err.o: $(KRB5ETDIR)/prof_err.c 2205e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/prof_err.c 2215e01956fSGlenn Barry $(POST_PROCESS_O) 2225e01956fSGlenn Barry 2235e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 2245e01956fSGlenn Barrypics/pty_err.o: $(KRB5ETDIR)/pty_err.c 2255e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/pty_err.c 2265e01956fSGlenn Barry $(POST_PROCESS_O) 2275e01956fSGlenn Barry 2285e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5 2295e01956fSGlenn Barrypics/ss_err.o: $(KRB5ETDIR)/ss_err.c 2305e01956fSGlenn Barry $(COMPILE.c) -o $@ $(KRB5ETDIR)/ss_err.c 231ba7b222eSGlenn Barry $(POST_PROCESS_O) 232ba7b222eSGlenn Barry 2337c478bd9Sstevel@tonic-gate# gen_oids.c is kept in the kernel since the OIDs declared in them are 2347c478bd9Sstevel@tonic-gate# used by rpcsec module 2357c478bd9Sstevel@tonic-gatepics/gen_oids.o: $(SRC)/uts/common/gssapi/gen_oids.c 2367c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $(SRC)/uts/common/gssapi/gen_oids.c 237*241c90a0SRichard Lowe $(POST_PROCESS_O) 2387c478bd9Sstevel@tonic-gate 2397c478bd9Sstevel@tonic-gate# include library targets 2407c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 241