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