xref: /illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh192/Makefile.com (revision 22337b4b3c8a2b9db615e524e0e9e1fbd3dc71bf)
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# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28#
29# This make file will build dh192.so.1. This shared object
30# contains the functionality needed to initialize the  Diffie-Hellman GSS-API
31# mechanism with 192 bit key length. This library, in turn, loads the
32# generic Diffie-Hellman GSS-API backend, dhmech.so
33#
34
35LIBRARY= dh192-0.a
36VERS = .1
37
38DH192=	dh192.o dh_common.o generic_key.o
39
40OBJECTS= $(DH192)
41
42# include library definitions
43include ../../../../Makefile.lib
44
45MAKEFILE_EXPORT = $(CLOSED)/lib/gss_mechs/mech_dh/dh192/Makefile.export
46$(EXPORT_RELEASE_BUILD)include $(MAKEFILE_EXPORT)
47
48CPPFLAGS += -I../../backend/mech -I../../backend/crypto
49CPPFLAGS += -I$(SRC)/lib/libnsl/include
50CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
51
52$(PICS) := 	CFLAGS += $(XFFLAG)
53$(PICS) := 	CCFLAGS += $(XFFLAG)
54$(PICS) :=	CFLAGS64 += $(XFFLAG)
55$(PICS) :=	CCFLAGS64 += $(XFFLAG)
56
57DYNFLAGS +=	$(ZIGNORE)
58
59LIBS = $(DYNLIB)
60LIBNAME = $(LIBRARY:%.a=%)
61
62MAPFILES =	../mapfile-vers
63$(EXPORT_RELEASE_BUILD)MAPFILES = \
64	$(CLOSED)/lib/gss_mechs/mech_dh/dh192/mapfile-vers-export
65
66LDLIBS += -lnsl -lmp -lc
67
68.KEEP_STATE:
69
70SRCS=	../dh192.c ../../dh_common/dh_common.c ../../dh_common/generic_key.c
71
72ROOTLIBDIR = $(ROOT)/usr/lib/gss
73ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss
74
75#LINTFLAGS += -errfmt=simple
76#LINTFLAGS64 += -errfmt=simple
77LINTOUT =	lint.out
78LINTSRC =	$(LINTLIB:%.ln=%)
79ROOTLINTDIR =	$(ROOTLIBDIR)
80#ROOTLINT = 	$(LINTSRC:%=$(ROOTLINTDIR)/%)
81
82CLEANFILES += $(LINTOUT) $(LINTLIB)
83
84lint: lintcheck
85
86$(ROOTLIBDIR):
87	$(INS.dir)
88
89$(ROOTLIBDIR64):
90	$(INS.dir)
91
92# include library targets
93include ../../../../Makefile.targ
94
95objs/%.o pics/%.o: ../%.c
96	$(COMPILE.c)  -o $@ $<
97	$(POST_PROCESS_O)
98
99objs/%.o pics/%.o: ../../dh_common/%.c
100	$(COMPILE.c)  -o $@ $<
101	$(POST_PROCESS_O)
102
103objs/%.o pics/%.o: ../profile/%.c
104	$(COMPILE.c)  -o $@ $<
105	$(POST_PROCESS_O)
106