xref: /illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com (revision 737d277a27d4872543f597e35c470e7510f61f03)
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# This make file will build mech_dh.so.1. This shared object
29# contains all the functionality needed to support Diffie-Hellman GSS-API
30# mechanism.
31#
32
33LIBRARY= mech_dh.a
34VERS = .1
35
36MECH =	context.o context_establish.o cred.o crypto.o dhmech.o \
37	MICwrap.o name.o oid.o seq.o token.o support.o validate.o
38
39DERIVED_OBJS = xdr_token.o
40
41CRYPTO = md5.o
42
43OBJECTS= $(MECH) $(CRYPTO) $(DERIVED_OBJS)
44
45# include library definitions
46include ../../../../Makefile.lib
47
48MAKEFILE_EXPORT = $(CLOSED)/lib/gss_mechs/mech_dh/backend/Makefile.export
49$(EXPORT_RELEASE_BUILD)include $(MAKEFILE_EXPORT)
50
51
52CPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include
53
54$(PICS) := 	CFLAGS += $(XFFLAG)
55$(PICS) := 	CCFLAGS += $(XFFLAG)
56$(PICS) :=	CFLAGS64 += $(XFFLAG)
57$(PICS) :=	CCFLAGS64 += $(XFFLAG)
58
59LIBS = $(DYNLIB)
60LIBNAME = $(LIBRARY:%.a=%)
61
62MAPFILE = ../mapfile-vers
63
64$(EXPORT_RELEASE_BUILD)MAPFILE = $(CLOSED)/lib/gss_mechs/mech_dh/backend/mapfile-vers-export
65
66DYNFLAGS += -M$(MAPFILE)
67
68LDLIBS +=  -lgss -lnsl -lc
69
70RPCGEN += -C
71SED = sed
72
73.KEEP_STATE:
74
75CSRCS= $(MECH:%.o=../mech/%.c) $(CRYPTO:%.o=../crypto/%.c)
76SRCS=	$(CSRCS)
77
78ROOTLIBDIR = $(ROOT)/usr/lib/gss
79ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss
80
81#LINTFLAGS += -dirout=lint -errfmt=simple
82#LINTFLAGS64 += -dirout=lint -errfmt=simple -errchk all
83LINTOUT =	lint.out
84LINTSRC =	$(LINTLIB:%.ln=%)
85ROOTLINTDIR =	$(ROOTLIBDIR)
86#ROOTLINT = 	$(LINTSRC:%=$(ROOTLINTDIR)/%)
87
88CLEANFILES += $(LINTOUT) $(LINTLIB)
89
90lint: lintcheck
91
92$(ROOTLIBDIR):
93	$(INS.dir)
94
95$(ROOTLIBDIR64):
96	$(INS.dir)
97
98$(OBJS): ../mech/dh_gssapi.h ../mech/token.h ../mech/oid.h
99
100
101objs/%.o pics/%.o: ../crypto/%.c
102	$(COMPILE.c)  -o $@ $<
103	$(POST_PROCESS_O)
104
105objs/%.o pics/%.o: ../mech/%.c
106	$(COMPILE.c)  -o $@ $<
107	$(POST_PROCESS_O)
108
109objs/%.o pics/%.o: ../profile/%.c
110	$(COMPILE.c)  -o $@ $<
111	$(POST_PROCESS_O)
112
113# include library targets
114include ../../../../Makefile.targ
115