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 OBJECTS = $(GSSOBJECTS) $(GSSCREDOBJ) $(KRB5OBJ) $(UTSGSSOBJ) $(KRB5ETOBJ)
92 # include library definitions
93 include ../../Makefile.lib
99 CPPFLAGS += -I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \
100 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
101 -I$(SRC)/uts/common/gssapi/ \
102 -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \
105 CERRWARN += -Wno-unused-function
106 CERRWARN += -Wno-uninitialized
107 CERRWARN += -Wno-parentheses
108 CERRWARN += -Wno-empty-body
114 $(GSSCREDOBJ:%.o=pics/%.o):
115 $(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c)
118 # we need this in libgss so we don't have to link against mech_krb5
119 pics/rel_buffer.o: $(KRB5DIR)/rel_buffer.c
120 $(COMPILE.c) -o $@ $(KRB5DIR)/rel_buffer.c
123 # we need this in libgss so we don't have to link against mech_krb5
124 pics/util_buffer_set.o: $(KRB5DIR)/util_buffer_set.c
125 $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer_set.c
128 # we need this in libgss so we don't have to link against mech_krb5
129 pics/disp_com_err_status.o: $(KRB5DIR)/disp_com_err_status.c
130 $(COMPILE.c) -o $@ $(KRB5DIR)/disp_com_err_status.c
133 # we need this in libgss so we don't have to link against mech_krb5
134 pics/util_buffer.o: $(KRB5DIR)/util_buffer.c
135 $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer.c
138 # we need this in libgss so we don't have to link against mech_krb5
139 pics/util_errmap.o: $(KRB5DIR)/util_errmap.c
140 $(COMPILE.c) -o $@ $(KRB5DIR)/util_errmap.c
143 # we need this in libgss so we don't have to link against mech_krb5
144 pics/error_message.o: $(KRB5ETDIR)/error_message.c
145 $(COMPILE.c) -o $@ $(KRB5ETDIR)/error_message.c
148 # we need this in libgss so we don't have to link against mech_krb5
149 pics/adb_err.o: $(KRB5ETDIR)/adb_err.c
150 $(COMPILE.c) -o $@ $(KRB5ETDIR)/adb_err.c
153 pics/adm_err.o: $(KRB5ETDIR)/adm_err.c
154 $(COMPILE.c) -o $@ $(KRB5ETDIR)/adm_err.c
157 # we need this in libgss so we don't have to link against mech_krb5
158 pics/asn1_err.o: $(KRB5ETDIR)/asn1_err.c
159 $(COMPILE.c) -o $@ $(KRB5ETDIR)/asn1_err.c
162 # we need this in libgss so we don't have to link against mech_krb5
163 pics/chpass_util_strings.o: $(KRB5ETDIR)/chpass_util_strings.c
164 $(COMPILE.c) -o $@ $(KRB5ETDIR)/chpass_util_strings.c
167 # we need this in libgss so we don't have to link against mech_krb5
168 pics/gssapi_err_generic.o: $(KRB5ETDIR)/gssapi_err_generic.c
169 $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_generic.c
172 # we need this in libgss so we don't have to link against mech_krb5
173 pics/gssapi_err_krb5.o: $(KRB5ETDIR)/gssapi_err_krb5.c
174 $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_krb5.c
178 # we need this in libgss so we don't have to link against mech_krb5
179 pics/import_err.o: $(KRB5ETDIR)/import_err.c
180 $(COMPILE.c) -o $@ $(KRB5ETDIR)/import_err.c
183 # we need this in libgss so we don't have to link against mech_krb5
184 pics/kadm_err.o: $(KRB5ETDIR)/kadm_err.c
185 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kadm_err.c
188 # we need this in libgss so we don't have to link against mech_krb5
189 pics/kdb5_err.o: $(KRB5ETDIR)/kdb5_err.c
190 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdb5_err.c
193 # we need this in libgss so we don't have to link against mech_krb5
194 pics/kdc5_err.o: $(KRB5ETDIR)/kdc5_err.c
195 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdc5_err.c
198 # we need this in libgss so we don't have to link against mech_krb5
199 pics/kpasswd_strings.o: $(KRB5ETDIR)/kpasswd_strings.c
200 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kpasswd_strings.c
203 # we need this in libgss so we don't have to link against mech_krb5
204 pics/krb5_err.o: $(KRB5ETDIR)/krb5_err.c
205 $(COMPILE.c) -o $@ $(KRB5ETDIR)/krb5_err.c
208 # we need this in libgss so we don't have to link against mech_krb5
209 pics/kv5m_err.o: $(KRB5ETDIR)/kv5m_err.c
210 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kv5m_err.c
213 # we need this in libgss so we don't have to link against mech_krb5
214 pics/prof_err.o: $(KRB5ETDIR)/prof_err.c
215 $(COMPILE.c) -o $@ $(KRB5ETDIR)/prof_err.c
218 # we need this in libgss so we don't have to link against mech_krb5
219 pics/pty_err.o: $(KRB5ETDIR)/pty_err.c
220 $(COMPILE.c) -o $@ $(KRB5ETDIR)/pty_err.c
223 # we need this in libgss so we don't have to link against mech_krb5
224 pics/ss_err.o: $(KRB5ETDIR)/ss_err.c
225 $(COMPILE.c) -o $@ $(KRB5ETDIR)/ss_err.c
228 # gen_oids.c is kept in the kernel since the OIDs declared in them are
229 # used by rpcsec module
230 pics/gen_oids.o: $(SRC)/uts/common/gssapi/gen_oids.c
231 $(COMPILE.c) -o $@ $(SRC)/uts/common/gssapi/gen_oids.c
234 # include library targets
235 include ../../Makefile.targ