xref: /titanic_44/usr/src/lib/libgss/Makefile.com (revision 0f36b8433e9a3e3d3803c54bad5be5de92aec546)
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#
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateLIBRARY = libgss.a
267c478bd9Sstevel@tonic-gateVERS = .1
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateGSSOBJECTS	= g_acquire_cred.o \
297c478bd9Sstevel@tonic-gate	  g_acquire_cred_with_pw.o \
307c478bd9Sstevel@tonic-gate	  g_store_cred.o \
317c478bd9Sstevel@tonic-gate	  g_rel_cred.o \
327c478bd9Sstevel@tonic-gate	  g_init_sec_context.o \
337c478bd9Sstevel@tonic-gate	  g_accept_sec_context.o \
347c478bd9Sstevel@tonic-gate	  g_process_context.o \
357c478bd9Sstevel@tonic-gate	  g_delete_sec_context.o \
367c478bd9Sstevel@tonic-gate	  g_imp_sec_context.o \
377c478bd9Sstevel@tonic-gate	  g_exp_sec_context.o \
387c478bd9Sstevel@tonic-gate	  g_context_time.o \
397c478bd9Sstevel@tonic-gate	  g_sign.o \
407c478bd9Sstevel@tonic-gate	  g_verify.o \
417c478bd9Sstevel@tonic-gate	  g_seal.o \
427c478bd9Sstevel@tonic-gate	  g_unseal.o \
437c478bd9Sstevel@tonic-gate	  g_dsp_status.o \
447c478bd9Sstevel@tonic-gate	  g_compare_name.o \
457c478bd9Sstevel@tonic-gate	  g_dsp_name.o \
467c478bd9Sstevel@tonic-gate	  g_imp_name.o \
477c478bd9Sstevel@tonic-gate	  g_rel_name.o \
487c478bd9Sstevel@tonic-gate	  g_rel_buffer.o \
497c478bd9Sstevel@tonic-gate	  g_rel_oid_set.o \
507c478bd9Sstevel@tonic-gate	  g_oid_ops.o \
517c478bd9Sstevel@tonic-gate	  g_inquire_cred.o \
527c478bd9Sstevel@tonic-gate	  g_inquire_context.o \
537c478bd9Sstevel@tonic-gate	  g_inquire_names.o \
547c478bd9Sstevel@tonic-gate	  g_initialize.o \
557c478bd9Sstevel@tonic-gate	  g_glue.o \
567c478bd9Sstevel@tonic-gate	  gssd_pname_to_uid.o \
577c478bd9Sstevel@tonic-gate	  oid_ops.o \
587c478bd9Sstevel@tonic-gate	  g_canon_name.o \
597c478bd9Sstevel@tonic-gate	  g_dup_name.o \
607c478bd9Sstevel@tonic-gate	  g_export_name.o \
617c478bd9Sstevel@tonic-gate	  g_utils.o \
62ba7b222eSGlenn Barry	  g_userok.o \
63ba7b222eSGlenn Barry	  g_buffer_set.o \
64ba7b222eSGlenn Barry	  g_inq_context_oid.o \
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate# defines the duplicate sources we share with gsscred
687c478bd9Sstevel@tonic-gateGSSCRED_DIR =	$(SRC)/cmd/gss/gsscred
697c478bd9Sstevel@tonic-gateGSSCREDOBJ =	gsscred_utils.o gsscred_file.o
70ba7b222eSGlenn Barry# defines the duplicate sources we share with krb5 mech
71ba7b222eSGlenn BarryKRB5DIR= $(SRC)/lib/gss_mechs/mech_krb5/mech
725e01956fSGlenn BarryKRB5OBJ= rel_buffer.o util_buffer_set.o disp_com_err_status.o \
735e01956fSGlenn Barry	      util_buffer.o  util_errmap.o
745e01956fSGlenn Barry# defines the duplicate sources we share with krb5 mech error table
755e01956fSGlenn BarryKRB5ETDIR= $(SRC)/lib/gss_mechs/mech_krb5/et
765e01956fSGlenn BarryKRB5ETOBJ= error_message.o adb_err.o adm_err.o asn1_err.o \
775e01956fSGlenn Barry	      chpass_util_strings.o \
785e01956fSGlenn Barry	      gssapi_err_krb5.o gssapi_err_generic.o \
795e01956fSGlenn Barry	      import_err.o \
805e01956fSGlenn Barry	      kadm_err.o kdb5_err.o kdc5_err.o kpasswd_strings.o krb5_err.o \
815e01956fSGlenn Barry	      kv5m_err.o prof_err.o pty_err.o ss_err.o
82ba7b222eSGlenn Barry# defines the duplicate sources we share with kernel module
837c478bd9Sstevel@tonic-gateUTSGSSDIR =	$(SRC)/uts/common/gssapi
847c478bd9Sstevel@tonic-gateUTSGSSOBJ =	gen_oids.o
85ba7b222eSGlenn Barry
867c478bd9Sstevel@tonic-gateSRCS +=		$(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
87ba7b222eSGlenn Barry		$(KRB5OBJ:%.o=$(KRB5DIR)/%.c) \
885e01956fSGlenn Barry		$(KRB5ETOBJ:%.o=$(KRB5ETDIR)/%.c) \
897c478bd9Sstevel@tonic-gate		$(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
907c478bd9Sstevel@tonic-gateGSSLINTSRC =	$(GSSOBJECTS:%.o=$(SRCDIR)/%.c) \
917c478bd9Sstevel@tonic-gate		$(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
927c478bd9Sstevel@tonic-gate		$(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
935e01956fSGlenn BarryOBJECTS =	$(GSSOBJECTS) $(GSSCREDOBJ) $(KRB5OBJ) $(UTSGSSOBJ) $(KRB5ETOBJ)
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gate# include library definitions
967c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gateLIBS =	$(DYNLIB) $(LINTLIB)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gate$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
10106e1a714SrafLDLIBS += 	-lc
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gateCPPFLAGS += 	-I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \
104ba7b222eSGlenn Barry		 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
105ba7b222eSGlenn Barry		 -I$(SRC)/uts/common/gssapi/ \
106ba7b222eSGlenn Barry		 -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \
1077c478bd9Sstevel@tonic-gate		-DHAVE_STDLIB_H
1087c478bd9Sstevel@tonic-gate
109*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-function
110*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
111*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
112*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-empty-body
113*7014882cSRichard Lowe
1147c478bd9Sstevel@tonic-gate.KEEP_STATE:
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gateall: $(LIBS)
1177c478bd9Sstevel@tonic-gate
1187c478bd9Sstevel@tonic-gatelintcheck:=	SRCS= $(GSSLINTSRC)
1197c478bd9Sstevel@tonic-gate
1207c478bd9Sstevel@tonic-gatelint:  lintcheck
1217c478bd9Sstevel@tonic-gate
1227c478bd9Sstevel@tonic-gate$(GSSCREDOBJ:%.o=pics/%.o):
1237c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c)
1247c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1257c478bd9Sstevel@tonic-gate
126ba7b222eSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1275e01956fSGlenn Barrypics/rel_buffer.o: $(KRB5DIR)/rel_buffer.c
1285e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5DIR)/rel_buffer.c
129ba7b222eSGlenn Barry	$(POST_PROCESS_O)
130ba7b222eSGlenn Barry
131ba7b222eSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1325e01956fSGlenn Barrypics/util_buffer_set.o: $(KRB5DIR)/util_buffer_set.c
1335e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer_set.c
1345e01956fSGlenn Barry	$(POST_PROCESS_O)
1355e01956fSGlenn Barry
1365e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1375e01956fSGlenn Barrypics/disp_com_err_status.o: $(KRB5DIR)/disp_com_err_status.c
1385e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5DIR)/disp_com_err_status.c
1395e01956fSGlenn Barry	$(POST_PROCESS_O)
1405e01956fSGlenn Barry
1415e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1425e01956fSGlenn Barrypics/util_buffer.o: $(KRB5DIR)/util_buffer.c
1435e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer.c
1445e01956fSGlenn Barry	$(POST_PROCESS_O)
1455e01956fSGlenn Barry
1465e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1475e01956fSGlenn Barrypics/util_errmap.o: $(KRB5DIR)/util_errmap.c
1485e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5DIR)/util_errmap.c
1495e01956fSGlenn Barry	$(POST_PROCESS_O)
1505e01956fSGlenn Barry
1515e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1525e01956fSGlenn Barrypics/error_message.o: $(KRB5ETDIR)/error_message.c
1535e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/error_message.c
1545e01956fSGlenn Barry	$(POST_PROCESS_O)
1555e01956fSGlenn Barry
1565e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1575e01956fSGlenn Barrypics/adb_err.o: $(KRB5ETDIR)/adb_err.c
1585e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/adb_err.c
1595e01956fSGlenn Barry	$(POST_PROCESS_O)
1605e01956fSGlenn Barry
1615e01956fSGlenn Barrypics/adm_err.o: $(KRB5ETDIR)/adm_err.c
1625e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/adm_err.c
1635e01956fSGlenn Barry	$(POST_PROCESS_O)
1645e01956fSGlenn Barry
1655e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1665e01956fSGlenn Barrypics/asn1_err.o: $(KRB5ETDIR)/asn1_err.c
1675e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/asn1_err.c
1685e01956fSGlenn Barry	$(POST_PROCESS_O)
1695e01956fSGlenn Barry
1705e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1715e01956fSGlenn Barrypics/chpass_util_strings.o: $(KRB5ETDIR)/chpass_util_strings.c
1725e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/chpass_util_strings.c
1735e01956fSGlenn Barry	$(POST_PROCESS_O)
1745e01956fSGlenn Barry
1755e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1765e01956fSGlenn Barrypics/gssapi_err_generic.o: $(KRB5ETDIR)/gssapi_err_generic.c
1775e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_generic.c
1785e01956fSGlenn Barry	$(POST_PROCESS_O)
1795e01956fSGlenn Barry
1805e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1815e01956fSGlenn Barrypics/gssapi_err_krb5.o: $(KRB5ETDIR)/gssapi_err_krb5.c
1825e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_krb5.c
1835e01956fSGlenn Barry	$(POST_PROCESS_O)
1845e01956fSGlenn Barry
1855e01956fSGlenn Barry
1865e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1875e01956fSGlenn Barrypics/import_err.o: $(KRB5ETDIR)/import_err.c
1885e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/import_err.c
1895e01956fSGlenn Barry	$(POST_PROCESS_O)
1905e01956fSGlenn Barry
1915e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1925e01956fSGlenn Barrypics/kadm_err.o: $(KRB5ETDIR)/kadm_err.c
1935e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/kadm_err.c
1945e01956fSGlenn Barry	$(POST_PROCESS_O)
1955e01956fSGlenn Barry
1965e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
1975e01956fSGlenn Barrypics/kdb5_err.o: $(KRB5ETDIR)/kdb5_err.c
1985e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/kdb5_err.c
1995e01956fSGlenn Barry	$(POST_PROCESS_O)
2005e01956fSGlenn Barry
2015e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
2025e01956fSGlenn Barrypics/kdc5_err.o: $(KRB5ETDIR)/kdc5_err.c
2035e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/kdc5_err.c
2045e01956fSGlenn Barry	$(POST_PROCESS_O)
2055e01956fSGlenn Barry
2065e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
2075e01956fSGlenn Barrypics/kpasswd_strings.o: $(KRB5ETDIR)/kpasswd_strings.c
2085e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/kpasswd_strings.c
2095e01956fSGlenn Barry	$(POST_PROCESS_O)
2105e01956fSGlenn Barry
2115e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
2125e01956fSGlenn Barrypics/krb5_err.o: $(KRB5ETDIR)/krb5_err.c
2135e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/krb5_err.c
2145e01956fSGlenn Barry	$(POST_PROCESS_O)
2155e01956fSGlenn Barry
2165e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
2175e01956fSGlenn Barrypics/kv5m_err.o: $(KRB5ETDIR)/kv5m_err.c
2185e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/kv5m_err.c
2195e01956fSGlenn Barry	$(POST_PROCESS_O)
2205e01956fSGlenn Barry
2215e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
2225e01956fSGlenn Barrypics/prof_err.o: $(KRB5ETDIR)/prof_err.c
2235e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/prof_err.c
2245e01956fSGlenn Barry	$(POST_PROCESS_O)
2255e01956fSGlenn Barry
2265e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
2275e01956fSGlenn Barrypics/pty_err.o: $(KRB5ETDIR)/pty_err.c
2285e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/pty_err.c
2295e01956fSGlenn Barry	$(POST_PROCESS_O)
2305e01956fSGlenn Barry
2315e01956fSGlenn Barry# we need this in libgss so we don't have to link against mech_krb5
2325e01956fSGlenn Barrypics/ss_err.o: $(KRB5ETDIR)/ss_err.c
2335e01956fSGlenn Barry	$(COMPILE.c) -o $@ $(KRB5ETDIR)/ss_err.c
234ba7b222eSGlenn Barry	$(POST_PROCESS_O)
235ba7b222eSGlenn Barry
2367c478bd9Sstevel@tonic-gate# gen_oids.c is kept in the kernel since the OIDs declared in them are
2377c478bd9Sstevel@tonic-gate# used by rpcsec module
2387c478bd9Sstevel@tonic-gatepics/gen_oids.o: $(SRC)/uts/common/gssapi/gen_oids.c
2397c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $(SRC)/uts/common/gssapi/gen_oids.c
2407c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
2417c478bd9Sstevel@tonic-gate
2427c478bd9Sstevel@tonic-gate# include library targets
2437c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
244