xref: /onnv-gate/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com (revision 5827:70b03ddc1344)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
52522Sraf# Common Development and Distribution License (the "License").
62522Sraf# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*5827Srie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
272522Sraf
282522Sraf#
290Sstevel@tonic-gate# This make file will build mech_dh.so.1. This shared object
300Sstevel@tonic-gate# contains all the functionality needed to support Diffie-Hellman GSS-API
310Sstevel@tonic-gate# mechanism.
320Sstevel@tonic-gate#
330Sstevel@tonic-gate
340Sstevel@tonic-gateLIBRARY= mech_dh.a
350Sstevel@tonic-gateVERS = .1
360Sstevel@tonic-gate
370Sstevel@tonic-gateMECH =	context.o context_establish.o cred.o crypto.o dhmech.o \
380Sstevel@tonic-gate	MICwrap.o name.o oid.o seq.o token.o support.o validate.o
390Sstevel@tonic-gate
400Sstevel@tonic-gateDERIVED_OBJS = xdr_token.o
410Sstevel@tonic-gate
420Sstevel@tonic-gateCRYPTO = md5.o
430Sstevel@tonic-gate
440Sstevel@tonic-gateOBJECTS= $(MECH) $(CRYPTO) $(DERIVED_OBJS)
450Sstevel@tonic-gate
460Sstevel@tonic-gate# include library definitions
470Sstevel@tonic-gateinclude ../../../../Makefile.lib
480Sstevel@tonic-gate
491167SkupferMAKEFILE_EXPORT = $(CLOSED)/lib/gss_mechs/mech_dh/backend/Makefile.export
501167Skupfer$(EXPORT_RELEASE_BUILD)include $(MAKEFILE_EXPORT)
510Sstevel@tonic-gate
520Sstevel@tonic-gate
530Sstevel@tonic-gateCPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include
540Sstevel@tonic-gate
550Sstevel@tonic-gate$(PICS) := 	CFLAGS += $(XFFLAG)
560Sstevel@tonic-gate$(PICS) := 	CCFLAGS += $(XFFLAG)
570Sstevel@tonic-gate$(PICS) :=	CFLAGS64 += $(XFFLAG)
580Sstevel@tonic-gate$(PICS) :=	CCFLAGS64 += $(XFFLAG)
590Sstevel@tonic-gate
60*5827SrieDYNFLAGS +=	$(ZIGNORE)
61*5827Srie
620Sstevel@tonic-gateLIBS = $(DYNLIB)
630Sstevel@tonic-gateLIBNAME = $(LIBRARY:%.a=%)
640Sstevel@tonic-gate
652522SrafMAPFILES =	../mapfile-vers
662522Sraf$(EXPORT_RELEASE_BUILD)MAPFILES = \
672522Sraf	$(CLOSED)/lib/gss_mechs/mech_dh/backend/mapfile-vers-export
680Sstevel@tonic-gate
690Sstevel@tonic-gateLDLIBS +=  -lgss -lnsl -lc
700Sstevel@tonic-gate
710Sstevel@tonic-gateRPCGEN += -C
720Sstevel@tonic-gateSED = sed
730Sstevel@tonic-gate
740Sstevel@tonic-gate.KEEP_STATE:
750Sstevel@tonic-gate
760Sstevel@tonic-gateCSRCS= $(MECH:%.o=../mech/%.c) $(CRYPTO:%.o=../crypto/%.c)
770Sstevel@tonic-gateSRCS=	$(CSRCS)
780Sstevel@tonic-gate
790Sstevel@tonic-gateROOTLIBDIR = $(ROOT)/usr/lib/gss
800Sstevel@tonic-gateROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss
810Sstevel@tonic-gate
820Sstevel@tonic-gate#LINTFLAGS += -dirout=lint -errfmt=simple
830Sstevel@tonic-gate#LINTFLAGS64 += -dirout=lint -errfmt=simple -errchk all
840Sstevel@tonic-gateLINTOUT =	lint.out
850Sstevel@tonic-gateLINTSRC =	$(LINTLIB:%.ln=%)
860Sstevel@tonic-gateROOTLINTDIR =	$(ROOTLIBDIR)
870Sstevel@tonic-gate#ROOTLINT = 	$(LINTSRC:%=$(ROOTLINTDIR)/%)
880Sstevel@tonic-gate
890Sstevel@tonic-gateCLEANFILES += $(LINTOUT) $(LINTLIB)
900Sstevel@tonic-gate
910Sstevel@tonic-gatelint: lintcheck
920Sstevel@tonic-gate
930Sstevel@tonic-gate$(ROOTLIBDIR):
940Sstevel@tonic-gate	$(INS.dir)
950Sstevel@tonic-gate
960Sstevel@tonic-gate$(ROOTLIBDIR64):
970Sstevel@tonic-gate	$(INS.dir)
980Sstevel@tonic-gate
990Sstevel@tonic-gate$(OBJS): ../mech/dh_gssapi.h ../mech/token.h ../mech/oid.h
1000Sstevel@tonic-gate
1010Sstevel@tonic-gate
1020Sstevel@tonic-gateobjs/%.o pics/%.o: ../crypto/%.c
1030Sstevel@tonic-gate	$(COMPILE.c)  -o $@ $<
1040Sstevel@tonic-gate	$(POST_PROCESS_O)
1050Sstevel@tonic-gate
1060Sstevel@tonic-gateobjs/%.o pics/%.o: ../mech/%.c
1070Sstevel@tonic-gate	$(COMPILE.c)  -o $@ $<
1080Sstevel@tonic-gate	$(POST_PROCESS_O)
1090Sstevel@tonic-gate
1100Sstevel@tonic-gateobjs/%.o pics/%.o: ../profile/%.c
1110Sstevel@tonic-gate	$(COMPILE.c)  -o $@ $<
1120Sstevel@tonic-gate	$(POST_PROCESS_O)
1130Sstevel@tonic-gate
1140Sstevel@tonic-gate# include library targets
1150Sstevel@tonic-gateinclude ../../../../Makefile.targ
116