xref: /illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh1024/Makefile.com (revision b8767451d156f585534afac0bf22721810d0dc63)
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
26#
27# This make file will build dh1024.so.1. This shared object
28# contains the functionality needed to initialize the  Diffie-Hellman GSS-API
29# mechanism with 1024 bit key length. This library, in turn, loads the
30# generic Diffie-Hellman GSS-API backend, dhmech.so
31#
32
33LIBRARY= dh1024-0.a
34VERS = .1
35
36DH1024=	dh1024.o dh_common.o generic_key.o
37
38OBJECTS= $(DH1024)
39
40# include library definitions
41include ../../../../Makefile.lib
42
43CPPFLAGS += -I../../backend/mech -I../../backend/crypto
44CPPFLAGS += -I$(SRC)/lib/libnsl/include
45CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
46
47$(PICS) :=	CFLAGS += $(XFFLAG)
48$(PICS) :=	CCFLAGS += $(XFFLAG)
49$(PICS) :=	CFLAGS64 += $(XFFLAG)
50$(PICS) :=	CCFLAGS64 += $(XFFLAG)
51
52DYNFLAGS +=	$(ZIGNORE)
53
54LIBS = $(DYNLIB)
55LIBNAME = $(LIBRARY:%.a=%)
56
57MAPFILES =	../mapfile-vers
58
59LDLIBS += -lnsl -lmp -lc
60
61.KEEP_STATE:
62
63SRCS=	../dh1024.c ../../dh_common/dh_common.c ../../dh_common/generic_key.c
64
65ROOTLIBDIR = $(ROOT)/usr/lib/gss
66ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss
67
68$(ROOTLIBDIR):
69	$(INS.dir)
70
71$(ROOTLIBDIR64):
72	$(INS.dir)
73
74# include library targets
75include ../../../../Makefile.targ
76
77objs/%.o pics/%.o: ../%.c
78	$(COMPILE.c)  -o $@ $<
79	$(POST_PROCESS_O)
80
81objs/%.o pics/%.o: ../../dh_common/%.c
82	$(COMPILE.c)  -o $@ $<
83	$(POST_PROCESS_O)
84
85objs/%.o pics/%.o: ../profile/%.c
86	$(COMPILE.c)  -o $@ $<
87	$(POST_PROCESS_O)
88