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