Merge illumos-gate
[unleashed/lotheac.git] / usr / src / lib / gss_mechs / mech_dh / backend / Makefile.com
bloba52373e21a91aaf6ec894a3578b22019ee01d5ec
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 # Copyright (c) 2018, Joyent, Inc.
28 # This make file will build mech_dh.so.1. This shared object
29 # contains all the functionality needed to support Diffie-Hellman GSS-API
30 # mechanism. 
33 LIBRARY= mech_dh.a
34 VERS = .1
36 MECH =  context.o context_establish.o cred.o crypto.o dhmech.o \
37         MICwrap.o name.o oid.o seq.o token.o support.o validate.o
39 DERIVED_OBJS = xdr_token.o
41 CRYPTO = md5.o
43 OBJECTS= $(MECH) $(CRYPTO) $(DERIVED_OBJS)
45 # include library definitions
46 include ../../../../Makefile.lib
48 CPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include
50 CERRWARN +=     -Wno-parentheses
51 CERRWARN +=     -Wno-unused-variable
52 CERRWARN +=     -Wno-uninitialized
54 # needs work
55 SMATCH=off
57 DYNFLAGS +=     $(ZIGNORE)
59 LIBS = $(DYNLIB)
60 LIBNAME = $(LIBRARY:%.a=%)
62 MAPFILES =      ../mapfile-vers
64 LDLIBS +=  -lgss -lc 
66 RPCGEN += -C
67 SED = sed
69 .KEEP_STATE:
71 CSRCS= $(MECH:%.o=../mech/%.c) $(CRYPTO:%.o=../crypto/%.c)
72 SRCS=   $(CSRCS)
74 ROOTLIBDIR = $(ROOT)/usr/lib/gss
75 ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss
80 $(ROOTLIBDIR):
81         $(INS.dir)
83 $(ROOTLIBDIR64):
84         $(INS.dir)
86 $(OBJS): ../mech/dh_gssapi.h ../mech/token.h ../mech/oid.h
89 objs/%.o pics/%.o: ../crypto/%.c
90         $(COMPILE.c)  -o $@ $<
91         $(POST_PROCESS_O)
93 objs/%.o pics/%.o: ../mech/%.c
94         $(COMPILE.c)  -o $@ $<
95         $(POST_PROCESS_O)
97 objs/%.o pics/%.o: ../profile/%.c
98         $(COMPILE.c)  -o $@ $<
99         $(POST_PROCESS_O)
101 # include library targets
102 include ../../../../Makefile.targ