1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate# 28*7c478bd9Sstevel@tonic-gate# lib/libgss/Makefile 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateLIBRARY = libgss.a 31*7c478bd9Sstevel@tonic-gateVERS = .1 32*7c478bd9Sstevel@tonic-gate 33*7c478bd9Sstevel@tonic-gateGSSOBJECTS = g_acquire_cred.o \ 34*7c478bd9Sstevel@tonic-gate g_acquire_cred_with_pw.o \ 35*7c478bd9Sstevel@tonic-gate g_store_cred.o \ 36*7c478bd9Sstevel@tonic-gate g_rel_cred.o \ 37*7c478bd9Sstevel@tonic-gate g_init_sec_context.o \ 38*7c478bd9Sstevel@tonic-gate g_accept_sec_context.o \ 39*7c478bd9Sstevel@tonic-gate g_process_context.o \ 40*7c478bd9Sstevel@tonic-gate g_delete_sec_context.o \ 41*7c478bd9Sstevel@tonic-gate g_imp_sec_context.o \ 42*7c478bd9Sstevel@tonic-gate g_exp_sec_context.o \ 43*7c478bd9Sstevel@tonic-gate g_context_time.o \ 44*7c478bd9Sstevel@tonic-gate g_sign.o \ 45*7c478bd9Sstevel@tonic-gate g_verify.o \ 46*7c478bd9Sstevel@tonic-gate g_seal.o \ 47*7c478bd9Sstevel@tonic-gate g_unseal.o \ 48*7c478bd9Sstevel@tonic-gate g_dsp_status.o \ 49*7c478bd9Sstevel@tonic-gate g_compare_name.o \ 50*7c478bd9Sstevel@tonic-gate g_dsp_name.o \ 51*7c478bd9Sstevel@tonic-gate g_imp_name.o \ 52*7c478bd9Sstevel@tonic-gate g_rel_name.o \ 53*7c478bd9Sstevel@tonic-gate g_rel_buffer.o \ 54*7c478bd9Sstevel@tonic-gate g_rel_oid_set.o \ 55*7c478bd9Sstevel@tonic-gate g_oid_ops.o \ 56*7c478bd9Sstevel@tonic-gate g_inquire_cred.o \ 57*7c478bd9Sstevel@tonic-gate g_inquire_context.o \ 58*7c478bd9Sstevel@tonic-gate g_inquire_names.o \ 59*7c478bd9Sstevel@tonic-gate g_initialize.o \ 60*7c478bd9Sstevel@tonic-gate g_glue.o \ 61*7c478bd9Sstevel@tonic-gate gssd_pname_to_uid.o \ 62*7c478bd9Sstevel@tonic-gate oid_ops.o \ 63*7c478bd9Sstevel@tonic-gate g_canon_name.o \ 64*7c478bd9Sstevel@tonic-gate g_dup_name.o \ 65*7c478bd9Sstevel@tonic-gate g_export_name.o \ 66*7c478bd9Sstevel@tonic-gate g_utils.o \ 67*7c478bd9Sstevel@tonic-gate g_userok.o 68*7c478bd9Sstevel@tonic-gate 69*7c478bd9Sstevel@tonic-gate 70*7c478bd9Sstevel@tonic-gate# defines the duplicate sources we share with gsscred 71*7c478bd9Sstevel@tonic-gateGSSCRED_DIR = $(SRC)/cmd/gss/gsscred 72*7c478bd9Sstevel@tonic-gateGSSCREDOBJ = gsscred_utils.o gsscred_file.o 73*7c478bd9Sstevel@tonic-gateUTSGSSDIR = $(SRC)/uts/common/gssapi 74*7c478bd9Sstevel@tonic-gateUTSGSSOBJ = gen_oids.o 75*7c478bd9Sstevel@tonic-gateSRCS += $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \ 76*7c478bd9Sstevel@tonic-gate $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c) 77*7c478bd9Sstevel@tonic-gateGSSLINTSRC = $(GSSOBJECTS:%.o=$(SRCDIR)/%.c) \ 78*7c478bd9Sstevel@tonic-gate $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \ 79*7c478bd9Sstevel@tonic-gate $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c) 80*7c478bd9Sstevel@tonic-gateOBJECTS = $(GSSOBJECTS) $(GSSCREDOBJ) $(UTSGSSOBJ) 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gate# include library definitions 83*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 84*7c478bd9Sstevel@tonic-gate 85*7c478bd9Sstevel@tonic-gateLIBS = $(DYNLIB) $(LINTLIB) 86*7c478bd9Sstevel@tonic-gate 87*7c478bd9Sstevel@tonic-gate$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) 88*7c478bd9Sstevel@tonic-gateLDLIBS += -lc -lcmd 89*7c478bd9Sstevel@tonic-gate 90*7c478bd9Sstevel@tonic-gateSRCDIR = .. 91*7c478bd9Sstevel@tonic-gateMAPDIR = ../spec/$(TRANSMACH) 92*7c478bd9Sstevel@tonic-gateSPECMAPFILE= $(MAPDIR)/mapfile 93*7c478bd9Sstevel@tonic-gate 94*7c478bd9Sstevel@tonic-gateCPPFLAGS += -I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \ 95*7c478bd9Sstevel@tonic-gate -DHAVE_STDLIB_H 96*7c478bd9Sstevel@tonic-gate 97*7c478bd9Sstevel@tonic-gate$(EXPORT_RELEASE_BUILD)include ../Makefile.export 98*7c478bd9Sstevel@tonic-gate 99*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 100*7c478bd9Sstevel@tonic-gate 101*7c478bd9Sstevel@tonic-gateall: $(LIBS) 102*7c478bd9Sstevel@tonic-gate 103*7c478bd9Sstevel@tonic-gatelintcheck:= SRCS= $(GSSLINTSRC) 104*7c478bd9Sstevel@tonic-gate 105*7c478bd9Sstevel@tonic-gatelint: lintcheck 106*7c478bd9Sstevel@tonic-gate 107*7c478bd9Sstevel@tonic-gate$(GSSCREDOBJ:%.o=pics/%.o): 108*7c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c) 109*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 110*7c478bd9Sstevel@tonic-gate 111*7c478bd9Sstevel@tonic-gate# gen_oids.c is kept in the kernel since the OIDs declared in them are 112*7c478bd9Sstevel@tonic-gate# used by rpcsec module 113*7c478bd9Sstevel@tonic-gatepics/gen_oids.o: $(SRC)/uts/common/gssapi/gen_oids.c 114*7c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $(SRC)/uts/common/gssapi/gen_oids.c 115*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 116*7c478bd9Sstevel@tonic-gate 117*7c478bd9Sstevel@tonic-gate# include library targets 118*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 119