xref: /titanic_51/usr/src/lib/libgss/Makefile.com (revision a776e90690d98f629ab57f6493ff5949af9d65bd)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY = libgss.a
29VERS = .1
30
31GSSOBJECTS	= g_acquire_cred.o \
32	  g_acquire_cred_with_pw.o \
33	  g_store_cred.o \
34	  g_rel_cred.o \
35	  g_init_sec_context.o \
36	  g_accept_sec_context.o \
37	  g_process_context.o \
38	  g_delete_sec_context.o \
39	  g_imp_sec_context.o \
40	  g_exp_sec_context.o \
41	  g_context_time.o \
42	  g_sign.o \
43	  g_verify.o \
44	  g_seal.o \
45	  g_unseal.o \
46	  g_dsp_status.o \
47	  g_compare_name.o \
48	  g_dsp_name.o \
49	  g_imp_name.o \
50	  g_rel_name.o \
51	  g_rel_buffer.o \
52	  g_rel_oid_set.o \
53	  g_oid_ops.o \
54	  g_inquire_cred.o \
55	  g_inquire_context.o \
56	  g_inquire_names.o \
57	  g_initialize.o \
58	  g_glue.o \
59	  gssd_pname_to_uid.o \
60	  oid_ops.o \
61	  g_canon_name.o \
62	  g_dup_name.o \
63	  g_export_name.o \
64	  g_utils.o \
65	  g_userok.o
66
67
68# defines the duplicate sources we share with gsscred
69GSSCRED_DIR =	$(SRC)/cmd/gss/gsscred
70GSSCREDOBJ =	gsscred_utils.o gsscred_file.o
71UTSGSSDIR =	$(SRC)/uts/common/gssapi
72UTSGSSOBJ =	gen_oids.o
73SRCS +=		$(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
74		$(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
75GSSLINTSRC =	$(GSSOBJECTS:%.o=$(SRCDIR)/%.c) \
76		$(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
77		$(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
78OBJECTS =	$(GSSOBJECTS) $(GSSCREDOBJ) $(UTSGSSOBJ)
79
80# include library definitions
81include ../../Makefile.lib
82
83LIBS =	$(DYNLIB) $(LINTLIB)
84
85$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
86LDLIBS += 	-lc
87
88CPPFLAGS += 	-I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \
89		-DHAVE_STDLIB_H
90
91$(EXPORT_RELEASE_BUILD)include $(CLOSED)/lib/libgss/Makefile.export
92
93.KEEP_STATE:
94
95all: $(LIBS)
96
97lintcheck:=	SRCS= $(GSSLINTSRC)
98
99lint:  lintcheck
100
101$(GSSCREDOBJ:%.o=pics/%.o):
102	$(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c)
103	$(POST_PROCESS_O)
104
105# gen_oids.c is kept in the kernel since the OIDs declared in them are
106# used by rpcsec module
107pics/gen_oids.o: $(SRC)/uts/common/gssapi/gen_oids.c
108	$(COMPILE.c) -o $@ $(SRC)/uts/common/gssapi/gen_oids.c
109	$(POST_PROCESS_O)
110
111# include library targets
112include ../../Makefile.targ
113