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 dh1024.so.1. This shared object 30 # contains the functionality needed to initialize the Diffie-Hellman GSS-API 31 # mechanism with 1024 bit key length. This library, in turn, loads the 32 # generic Diffie-Hellman GSS-API backend, dhmech.so 33 # 34 35 LIBRARY= dh1024-0.a 36 VERS = .1 37 38 DH1024= dh1024.o dh_common.o generic_key.o 39 40 OBJECTS= $(DH1024) 41 42 # include library definitions 43 include ../../../../Makefile.lib 44 45 MAKEFILE_EXPORT = $(CLOSED)/lib/gss_mechs/mech_dh/dh1024/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 64 LDLIBS += -lnsl -lmp -lc 65 66 .KEEP_STATE: 67 68 SRCS= ../dh1024.c ../../dh_common/dh_common.c ../../dh_common/generic_key.c 69 70 ROOTLIBDIR = $(ROOT)/usr/lib/gss 71 ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss 72 73 #LINTFLAGS += -errfmt=simple 74 #LINTFLAGS64 += -errfmt=simple 75 LINTOUT = lint.out 76 LINTSRC = $(LINTLIB:%.ln=%) 77 ROOTLINTDIR = $(ROOTLIBDIR) 78 #ROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%) 79 80 CLEANFILES += $(LINTOUT) $(LINTLIB) 81 82 lint: lintcheck 83 84 $(ROOTLIBDIR): 85 $(INS.dir) 86 87 $(ROOTLIBDIR64): 88 $(INS.dir) 89 90 # include library targets 91 include ../../../../Makefile.targ 92 93 objs/%.o pics/%.o: ../%.c 94 $(COMPILE.c) -o $@ $< 95 $(POST_PROCESS_O) 96 97 objs/%.o pics/%.o: ../../dh_common/%.c 98 $(COMPILE.c) -o $@ $< 99 $(POST_PROCESS_O) 100 101 objs/%.o pics/%.o: ../profile/%.c 102 $(COMPILE.c) -o $@ $< 103 $(POST_PROCESS_O)