xref: /illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com (revision 77c0a660417a046bfab6c8ef58d00c181c0264b3)
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# Copyright (c) 2018, Joyent, Inc.
26
27#
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.
31#
32
33LIBRARY= mech_dh.a
34VERS = .1
35
36MECH =	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
38
39DERIVED_OBJS = xdr_token.o
40
41CRYPTO = md5.o
42
43OBJECTS= $(MECH) $(CRYPTO) $(DERIVED_OBJS)
44
45# include library definitions
46include ../../../../Makefile.lib
47
48CPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include
49
50CERRWARN +=	-_gcc=-Wno-parentheses
51CERRWARN +=	-_gcc=-Wno-unused-variable
52CERRWARN +=	$(CNOWARN_UNINIT)
53
54# needs work
55SMATCH=off
56
57$(PICS) :=	CFLAGS += $(XFFLAG)
58$(PICS) :=	CCFLAGS += $(XFFLAG)
59$(PICS) :=	CFLAGS64 += $(XFFLAG)
60$(PICS) :=	CCFLAGS64 += $(XFFLAG)
61
62DYNFLAGS +=	$(ZIGNORE)
63
64LIBS = $(DYNLIB)
65LIBNAME = $(LIBRARY:%.a=%)
66
67MAPFILES =	../mapfile-vers
68
69LDLIBS +=  -lgss -lnsl -lc
70
71RPCGEN += -C
72
73.KEEP_STATE:
74
75CSRCS= $(MECH:%.o=../mech/%.c) $(CRYPTO:%.o=../crypto/%.c)
76SRCS=	$(CSRCS)
77
78ROOTLIBDIR = $(ROOT)/usr/lib/gss
79ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss
80
81$(ROOTLIBDIR):
82	$(INS.dir)
83
84$(ROOTLIBDIR64):
85	$(INS.dir)
86
87$(OBJS): ../mech/dh_gssapi.h ../mech/token.h ../mech/oid.h
88
89
90objs/%.o pics/%.o: ../crypto/%.c
91	$(COMPILE.c)  -o $@ $<
92	$(POST_PROCESS_O)
93
94objs/%.o pics/%.o: ../mech/%.c
95	$(COMPILE.c)  -o $@ $<
96	$(POST_PROCESS_O)
97
98objs/%.o pics/%.o: ../profile/%.c
99	$(COMPILE.c)  -o $@ $<
100	$(POST_PROCESS_O)
101
102# include library targets
103include ../../../../Makefile.targ
104