xref: /illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh192/Makefile.com (revision 60405de4d8688d96dd05157c28db3ade5c9bc234)
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 2006 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
57LIBS = $(DYNLIB)
58LIBNAME = $(LIBRARY:%.a=%)
59
60MAPFILES =	../mapfile-vers
61$(EXPORT_RELEASE_BUILD)MAPFILES = \
62	$(CLOSED)/lib/gss_mechs/mech_dh/dh192/mapfile-vers-export
63
64LDLIBS += -lnsl -lmp -lc
65
66.KEEP_STATE:
67
68SRCS=	../dh192.c ../../dh_common/dh_common.c ../../dh_common/generic_key.c
69
70ROOTLIBDIR = $(ROOT)/usr/lib/gss
71ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss
72
73#LINTFLAGS += -errfmt=simple
74#LINTFLAGS64 += -errfmt=simple
75LINTOUT =	lint.out
76LINTSRC =	$(LINTLIB:%.ln=%)
77ROOTLINTDIR =	$(ROOTLIBDIR)
78#ROOTLINT = 	$(LINTSRC:%=$(ROOTLINTDIR)/%)
79
80CLEANFILES += $(LINTOUT) $(LINTLIB)
81
82lint: lintcheck
83
84$(ROOTLIBDIR):
85	$(INS.dir)
86
87$(ROOTLIBDIR64):
88	$(INS.dir)
89
90# include library targets
91include ../../../../Makefile.targ
92
93objs/%.o pics/%.o: ../%.c
94	$(COMPILE.c)  -o $@ $<
95	$(POST_PROCESS_O)
96
97objs/%.o pics/%.o: ../../dh_common/%.c
98	$(COMPILE.c)  -o $@ $<
99	$(POST_PROCESS_O)
100
101objs/%.o pics/%.o: ../profile/%.c
102	$(COMPILE.c)  -o $@ $<
103	$(POST_PROCESS_O)
104