xref: /illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh1024/Makefile.com (revision a07094369b21309434206d9b3601d162693466fc)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/gss_mechs/mech_dh/dh1024.so
29#
30# This make file will build dh1024.so.1. This shared object
31# contains the functionality needed to initialize the  Diffie-Hellman GSS-API
32# mechanism with 1024 bit key length. This library, in turn, loads the
33# generic Diffie-Hellman GSS-API backend, dhmech.so
34#
35
36LIBRARY= dh1024-0.a
37VERS = .1
38
39DH1024=	dh1024.o dh_common.o generic_key.o
40
41OBJECTS= $(DH1024)
42
43# include library definitions
44include ../../../../Makefile.lib
45
46MAKEFILE_EXPORT = $(CLOSED)/lib/gss_mechs/mech_dh/dh1024/Makefile.export
47$(EXPORT_RELEASE_BUILD)include $(MAKEFILE_EXPORT)
48
49CPPFLAGS += -I../../backend/mech -I../../backend/crypto
50CPPFLAGS += -I$(SRC)/lib/libnsl/include
51CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
52
53$(PICS) := 	CFLAGS += $(XFFLAG)
54$(PICS) := 	CCFLAGS += $(XFFLAG)
55$(PICS) :=	CFLAGS64 += $(XFFLAG)
56$(PICS) :=	CCFLAGS64 += $(XFFLAG)
57
58LIBS = $(DYNLIB)
59LIBNAME = $(LIBRARY:%.a=%)
60
61MAPFILE = ../mapfile-vers
62
63$(EXPORT_RELEASE_BUILD)MAPFILE = $(CLOSED)/lib/gss_mechs/mech_dh/dh1024/mapfile-vers-export
64
65DYNFLAGS += -M$(MAPFILE)
66
67LDLIBS += -lnsl -lmp -lc
68
69.KEEP_STATE:
70
71SRCS=	../dh1024.c ../../dh_common/dh_common.c ../../dh_common/generic_key.c
72
73ROOTLIBDIR = $(ROOT)/usr/lib/gss
74ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss
75
76#LINTFLAGS += -errfmt=simple
77#LINTFLAGS64 += -errfmt=simple
78LINTOUT =	lint.out
79LINTSRC =	$(LINTLIB:%.ln=%)
80ROOTLINTDIR =	$(ROOTLIBDIR)
81#ROOTLINT = 	$(LINTSRC:%=$(ROOTLINTDIR)/%)
82
83CLEANFILES += $(LINTOUT) $(LINTLIB)
84
85lint: lintcheck
86
87$(ROOTLIBDIR):
88	$(INS.dir)
89
90$(ROOTLIBDIR64):
91	$(INS.dir)
92
93# include library targets
94include ../../../../Makefile.targ
95
96objs/%.o pics/%.o: ../%.c
97	$(COMPILE.c)  -o $@ $<
98	$(POST_PROCESS_O)
99
100objs/%.o pics/%.o: ../../dh_common/%.c
101	$(COMPILE.c)  -o $@ $<
102	$(POST_PROCESS_O)
103
104objs/%.o pics/%.o: ../profile/%.c
105	$(COMPILE.c)  -o $@ $<
106	$(POST_PROCESS_O)
107