xref: /titanic_44/usr/src/lib/libcrypt/Makefile.com (revision 643e2e74e1c00e6b3d1896a6a67dbdb7308135c3)
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
28LIBRARY=	libcrypt.a
29VERS=		.1
30
31OBJECTS=  \
32	cryptio.o \
33	des.o \
34	des_crypt.o \
35	des_encrypt.o \
36	des_decrypt.o \
37	des_soft.o
38
39include ../../Makefile.lib
40
41SRCDIR=		../common
42
43LIBS=		$(DYNLIB) $(LINTLIB)
44
45$(LINTLIB):=	SRCS=$(SRCDIR)/$(LINTSRC)
46
47CFLAGS +=	$(CCVERBOSE)
48CPPFLAGS +=	-D_REENTRANT -I../inc -I../../common/inc -I../../libgen/inc
49LDLIBS +=       -lgen -lc
50
51.KEEP_STATE:
52
53all: $(LIBS)
54
55lint: lintcheck
56
57include ../../Makefile.targ
58
59$(ROOTLINKS) := INS.liblink = \
60	$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \
61		cd $(ROOTLIBDIR); \
62		$(RM) libcrypt_i.so$(VERS) libcrypt_i.so ;\
63		$(RM) libcrypt_d.so$(VERS) libcrypt_d.so ;\
64		$(SYMLINK) libcrypt.so$(VERS) libcrypt_i.so$(VERS); \
65		$(SYMLINK) libcrypt.so libcrypt_i.so; \
66		$(SYMLINK) libcrypt.so$(VERS) libcrypt_d.so$(VERS); \
67		$(SYMLINK) libcrypt.so libcrypt_d.so;
68
69$(ROOTLINKS64) := INS.liblink64 = \
70	$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \
71		cd $(ROOTLIBDIR64); \
72		$(RM) libcrypt_i.so$(VERS) libcrypt_i.so ;\
73		$(RM) libcrypt_d.so$(VERS) libcrypt_d.so ;\
74		$(SYMLINK) libcrypt.so$(VERS) libcrypt_i.so$(VERS); \
75		$(SYMLINK) libcrypt.so libcrypt_i.so; \
76		$(SYMLINK) libcrypt.so$(VERS) libcrypt_d.so$(VERS); \
77		$(SYMLINK) libcrypt.so libcrypt_d.so;
78
79
80