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/gss_mechs/mech_dh/dh640.so 29# 30# This make file will build dh640.so.1. This shared object 31# contains the functionality needed to initialize the Diffie-Hellman GSS-API 32# mechanism with 640 bit key length. This library, in turn, loads the 33# generic Diffie-Hellman GSS-API backend, dhmech.so 34# 35 36LIBRARY= dh640-0.a 37VERS = .1 38 39DH640= dh640.o dh_common.o generic_key.o 40 41OBJECTS= $(DH640) 42 43# include library definitions 44include ../../../../Makefile.lib 45 46$(EXPORT_RELEASE_BUILD)include ../Makefile.export 47 48CPPFLAGS += -I../../backend/mech -I../../backend/crypto 49CPPFLAGS += -I$(SRC)/lib/libnsl/include 50CPPFLAGS += -I$(SRC)/uts/common/gssapi/include 51 52$(PICS) := CFLAGS += $(XFFLAG) 53$(PICS) := CCFLAGS += $(XFFLAG) 54$(PICS) := CFLAGS64 += $(XFFLAG) 55$(PICS) := CCFLAGS64 += $(XFFLAG) 56 57LIBS = $(DYNLIB) 58LIBNAME = $(LIBRARY:%.a=%) 59 60MAPFILE = ../mapfile-vers 61 62$(EXPORT_RELEASE_BUILD)MAPFILE = ../mapfile-vers-export 63 64DYNFLAGS += -M$(MAPFILE) 65 66LDLIBS += -lnsl -lmp -lc 67 68.KEEP_STATE: 69 70SRCS= ../dh640.c ../../dh_common/dh_common.c ../../dh_common/generic_key.c 71 72ROOTLIBDIR = $(ROOT)/usr/lib/gss 73ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss 74 75#LINTFLAGS += -errfmt=simple 76#LINTFLAGS64 += -errfmt=simple 77LINTOUT = lint.out 78LINTSRC = $(LINTLIB:%.ln=%) 79ROOTLINTDIR = $(ROOTLIBDIR) 80#ROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%) 81 82CLEANFILES += $(LINTOUT) $(LINTLIB) 83 84lint: lintcheck 85 86$(ROOTLIBDIR): 87 $(INS.dir) 88 89$(ROOTLIBDIR64): 90 $(INS.dir) 91 92# include library targets 93include ../../../../Makefile.targ 94 95objs/%.o pics/%.o: ../%.c 96 $(COMPILE.c) -o $@ $< 97 $(POST_PROCESS_O) 98 99objs/%.o pics/%.o: ../../dh_common/%.c 100 $(COMPILE.c) -o $@ $< 101 $(POST_PROCESS_O) 102 103objs/%.o pics/%.o: ../profile/%.c 104 $(COMPILE.c) -o $@ $< 105 $(POST_PROCESS_O) 106