move 32-bit libs to lib/i386 subdirs & 64-bit libs to lib/
[unleashed.git] / usr / src / lib / gss_mechs / mech_dh / dh640 / Makefile.com
bloba3ea37f9c62f9bab7a99f21fb1b6eec8de76476a
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
27 # This make file will build dh640.so.1. This shared object
28 # contains the functionality needed to initialize the  Diffie-Hellman GSS-API
29 # mechanism with 640 bit key length. This library, in turn, loads the 
30 # generic Diffie-Hellman GSS-API backend, dhmech.so
33 LIBRARY= dh640-0.a
34 VERS = .1
36 DH640=  dh640.o dh_common.o generic_key.o
38 OBJECTS= $(DH640) 
40 # include library definitions
41 include ../../../../Makefile.lib
43 CPPFLAGS += -I../../backend/mech -I../../backend/crypto
44 CPPFLAGS += -I$(SRC)/lib/libc/inc
45 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
47 DYNFLAGS +=     $(ZIGNORE)
49 LIBS = $(DYNLIB)
50 LIBNAME = $(LIBRARY:%.a=%)
52 MAPFILES =      ../mapfile-vers
54 LDLIBS += -lmp -lc
56 .KEEP_STATE:
58 SRCS=   ../dh640.c ../../dh_common/dh_common.c ../../dh_common/generic_key.c
60 ROOTLIBDIR = $(ROOT)/usr/lib/$(MACH32)/gss
61 ROOTLIBDIR64 = $(ROOT)/usr/lib/gss
66 $(ROOTLIBDIR):
67         $(INS.dir)
69 $(ROOTLIBDIR64):
70         $(INS.dir)
72 # include library targets
73 include ../../../../Makefile.targ
75 objs/%.o pics/%.o: ../%.c
76         $(COMPILE.c)  -o $@ $<
77         $(POST_PROCESS_O)
79 objs/%.o pics/%.o: ../../dh_common/%.c
80         $(COMPILE.c)  -o $@ $<
81         $(POST_PROCESS_O)
83 objs/%.o pics/%.o: ../profile/%.c
84         $(COMPILE.c)  -o $@ $<
85         $(POST_PROCESS_O)