4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
28 GSSOBJECTS = g_acquire_cred.o \
29 g_acquire_cred_with_pw.o \
32 g_init_sec_context.o \
33 g_accept_sec_context.o \
35 g_delete_sec_context.o \
67 # defines the duplicate sources we share with gsscred
68 GSSCRED_DIR = $(SRC)/cmd/gss/gsscred
69 GSSCREDOBJ = gsscred_utils.o gsscred_file.o
70 # defines the duplicate sources we share with krb5 mech
71 KRB5DIR= $(SRC)/lib/gss_mechs/mech_krb5/mech
72 KRB5OBJ= rel_buffer.o util_buffer_set.o disp_com_err_status.o \
73 util_buffer.o util_errmap.o
74 # defines the duplicate sources we share with krb5 mech error table
75 KRB5ETDIR= $(SRC)/lib/gss_mechs/mech_krb5/et
76 KRB5ETOBJ= error_message.o adb_err.o adm_err.o asn1_err.o \
77 chpass_util_strings.o \
78 gssapi_err_krb5.o gssapi_err_generic.o \
80 kadm_err.o kdb5_err.o kdc5_err.o kpasswd_strings.o krb5_err.o \
81 kv5m_err.o prof_err.o pty_err.o ss_err.o
82 # defines the duplicate sources we share with kernel module
83 UTSGSSDIR = $(SRC)/uts/common/gssapi
84 UTSGSSOBJ = gen_oids.o
86 SRCS += $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
87 $(KRB5OBJ:%.o=$(KRB5DIR)/%.c) \
88 $(KRB5ETOBJ:%.o=$(KRB5ETDIR)/%.c) \
89 $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
90 GSSLINTSRC = $(GSSOBJECTS:%.o=$(SRCDIR)/%.c) \
91 $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
92 $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
93 OBJECTS = $(GSSOBJECTS) $(GSSCREDOBJ) $(KRB5OBJ) $(UTSGSSOBJ) $(KRB5ETOBJ)
95 # include library definitions
96 include ../../Makefile.lib
98 LIBS = $(DYNLIB) $(LINTLIB)
100 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
103 CPPFLAGS += -I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \
104 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
105 -I$(SRC)/uts/common/gssapi/ \
106 -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \
109 CERRWARN += -_gcc=-Wno-unused-function
110 CERRWARN += -_gcc=-Wno-uninitialized
111 CERRWARN += -_gcc=-Wno-parentheses
112 CERRWARN += -_gcc=-Wno-empty-body
118 lintcheck:= SRCS= $(GSSLINTSRC)
122 $(GSSCREDOBJ:%.o=pics/%.o):
123 $(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c)
126 # we need this in libgss so we don't have to link against mech_krb5
127 pics/rel_buffer.o: $(KRB5DIR)/rel_buffer.c
128 $(COMPILE.c) -o $@ $(KRB5DIR)/rel_buffer.c
131 # we need this in libgss so we don't have to link against mech_krb5
132 pics/util_buffer_set.o: $(KRB5DIR)/util_buffer_set.c
133 $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer_set.c
136 # we need this in libgss so we don't have to link against mech_krb5
137 pics/disp_com_err_status.o: $(KRB5DIR)/disp_com_err_status.c
138 $(COMPILE.c) -o $@ $(KRB5DIR)/disp_com_err_status.c
141 # we need this in libgss so we don't have to link against mech_krb5
142 pics/util_buffer.o: $(KRB5DIR)/util_buffer.c
143 $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer.c
146 # we need this in libgss so we don't have to link against mech_krb5
147 pics/util_errmap.o: $(KRB5DIR)/util_errmap.c
148 $(COMPILE.c) -o $@ $(KRB5DIR)/util_errmap.c
151 # we need this in libgss so we don't have to link against mech_krb5
152 pics/error_message.o: $(KRB5ETDIR)/error_message.c
153 $(COMPILE.c) -o $@ $(KRB5ETDIR)/error_message.c
156 # we need this in libgss so we don't have to link against mech_krb5
157 pics/adb_err.o: $(KRB5ETDIR)/adb_err.c
158 $(COMPILE.c) -o $@ $(KRB5ETDIR)/adb_err.c
161 pics/adm_err.o: $(KRB5ETDIR)/adm_err.c
162 $(COMPILE.c) -o $@ $(KRB5ETDIR)/adm_err.c
165 # we need this in libgss so we don't have to link against mech_krb5
166 pics/asn1_err.o: $(KRB5ETDIR)/asn1_err.c
167 $(COMPILE.c) -o $@ $(KRB5ETDIR)/asn1_err.c
170 # we need this in libgss so we don't have to link against mech_krb5
171 pics/chpass_util_strings.o: $(KRB5ETDIR)/chpass_util_strings.c
172 $(COMPILE.c) -o $@ $(KRB5ETDIR)/chpass_util_strings.c
175 # we need this in libgss so we don't have to link against mech_krb5
176 pics/gssapi_err_generic.o: $(KRB5ETDIR)/gssapi_err_generic.c
177 $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_generic.c
180 # we need this in libgss so we don't have to link against mech_krb5
181 pics/gssapi_err_krb5.o: $(KRB5ETDIR)/gssapi_err_krb5.c
182 $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_krb5.c
186 # we need this in libgss so we don't have to link against mech_krb5
187 pics/import_err.o: $(KRB5ETDIR)/import_err.c
188 $(COMPILE.c) -o $@ $(KRB5ETDIR)/import_err.c
191 # we need this in libgss so we don't have to link against mech_krb5
192 pics/kadm_err.o: $(KRB5ETDIR)/kadm_err.c
193 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kadm_err.c
196 # we need this in libgss so we don't have to link against mech_krb5
197 pics/kdb5_err.o: $(KRB5ETDIR)/kdb5_err.c
198 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdb5_err.c
201 # we need this in libgss so we don't have to link against mech_krb5
202 pics/kdc5_err.o: $(KRB5ETDIR)/kdc5_err.c
203 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdc5_err.c
206 # we need this in libgss so we don't have to link against mech_krb5
207 pics/kpasswd_strings.o: $(KRB5ETDIR)/kpasswd_strings.c
208 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kpasswd_strings.c
211 # we need this in libgss so we don't have to link against mech_krb5
212 pics/krb5_err.o: $(KRB5ETDIR)/krb5_err.c
213 $(COMPILE.c) -o $@ $(KRB5ETDIR)/krb5_err.c
216 # we need this in libgss so we don't have to link against mech_krb5
217 pics/kv5m_err.o: $(KRB5ETDIR)/kv5m_err.c
218 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kv5m_err.c
221 # we need this in libgss so we don't have to link against mech_krb5
222 pics/prof_err.o: $(KRB5ETDIR)/prof_err.c
223 $(COMPILE.c) -o $@ $(KRB5ETDIR)/prof_err.c
226 # we need this in libgss so we don't have to link against mech_krb5
227 pics/pty_err.o: $(KRB5ETDIR)/pty_err.c
228 $(COMPILE.c) -o $@ $(KRB5ETDIR)/pty_err.c
231 # we need this in libgss so we don't have to link against mech_krb5
232 pics/ss_err.o: $(KRB5ETDIR)/ss_err.c
233 $(COMPILE.c) -o $@ $(KRB5ETDIR)/ss_err.c
236 # gen_oids.c is kept in the kernel since the OIDs declared in them are
237 # used by rpcsec module
238 pics/gen_oids.o: $(SRC)/uts/common/gssapi/gen_oids.c
239 $(COMPILE.c) -o $@ $(SRC)/uts/common/gssapi/gen_oids.c
242 # include library targets
243 include ../../Makefile.targ