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