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