17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5f808c858Sraf# Common Development and Distribution License (the "License"). 6f808c858Sraf# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 2222337b4bSrie# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 2505ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc. 26f808c858Sraf 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate# This make file will build mech_dh.so.1. This shared object 297c478bd9Sstevel@tonic-gate# contains all the functionality needed to support Diffie-Hellman GSS-API 30*241c90a0SRichard Lowe# mechanism. 317c478bd9Sstevel@tonic-gate# 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateLIBRARY= mech_dh.a 347c478bd9Sstevel@tonic-gateVERS = .1 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateMECH = context.o context_establish.o cred.o crypto.o dhmech.o \ 377c478bd9Sstevel@tonic-gate MICwrap.o name.o oid.o seq.o token.o support.o validate.o 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gateDERIVED_OBJS = xdr_token.o 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateCRYPTO = md5.o 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateOBJECTS= $(MECH) $(CRYPTO) $(DERIVED_OBJS) 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate# include library definitions 467c478bd9Sstevel@tonic-gateinclude ../../../../Makefile.lib 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gateCPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include 497c478bd9Sstevel@tonic-gate 507014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 517014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 52d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 537014882cSRichard Lowe 5405ede3dbSJohn Levon# needs work 5505ede3dbSJohn LevonSMATCH=off 5605ede3dbSJohn Levon 5722337b4bSrieDYNFLAGS += $(ZIGNORE) 5822337b4bSrie 597c478bd9Sstevel@tonic-gateLIBS = $(DYNLIB) 607c478bd9Sstevel@tonic-gateLIBNAME = $(LIBRARY:%.a=%) 617c478bd9Sstevel@tonic-gate 62f808c858SrafMAPFILES = ../mapfile-vers 637c478bd9Sstevel@tonic-gate 64*241c90a0SRichard LoweLDLIBS += -lgss -lnsl -lc 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gateRPCGEN += -C 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gate.KEEP_STATE: 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateCSRCS= $(MECH:%.o=../mech/%.c) $(CRYPTO:%.o=../crypto/%.c) 717c478bd9Sstevel@tonic-gateSRCS= $(CSRCS) 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateROOTLIBDIR = $(ROOT)/usr/lib/gss 747c478bd9Sstevel@tonic-gateROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate$(ROOTLIBDIR): 777c478bd9Sstevel@tonic-gate $(INS.dir) 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate$(ROOTLIBDIR64): 807c478bd9Sstevel@tonic-gate $(INS.dir) 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate$(OBJS): ../mech/dh_gssapi.h ../mech/token.h ../mech/oid.h 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o: ../crypto/%.c 867c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 877c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o: ../mech/%.c 907c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 917c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o: ../profile/%.c 947c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 957c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gate# include library targets 987c478bd9Sstevel@tonic-gateinclude ../../../../Makefile.targ 99