xref: /illumos-gate/usr/src/lib/libcrypt/Makefile.com (revision 141040e8a310da49386b596573e5dde5580572ec)
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 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY=	libcrypt.a
30VERS=		.1
31
32OBJECTS=  \
33	cryptio.o \
34	des.o \
35	des_crypt.o \
36	des_encrypt.o \
37	des_decrypt.o \
38	des_soft.o
39
40include ../../Makefile.lib
41
42SRCDIR=		../common
43
44LIBS=		$(DYNLIB) $(LINTLIB)
45SRCS=		$(OBJECTS:%.o=$(SRCDIR)/%.c)
46MAPDIR=		../spec/$(TRANSMACH)
47SPECMAPFILE=	$(MAPDIR)/mapfile
48
49$(LINTLIB):=	SRCS=$(SRCDIR)/$(LINTSRC)
50
51CFLAGS +=	$(CCVERBOSE)
52CPPFLAGS +=	-D_REENTRANT -I../inc -I../../common/inc -I../../libgen/inc
53LDLIBS +=       -lgen -lc
54
55.KEEP_STATE:
56
57all: $(LIBS) fnamecheck
58
59lint: lintcheck
60
61include ../../Makefile.targ
62
63$(ROOTLINKS) := INS.liblink = \
64	$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \
65		cd $(ROOTLIBDIR); \
66		$(RM) libcrypt_i.so$(VERS) libcrypt_i.so ;\
67		$(RM) libcrypt_d.so$(VERS) libcrypt_d.so ;\
68		$(SYMLINK) libcrypt.so$(VERS) libcrypt_i.so$(VERS); \
69		$(SYMLINK) libcrypt.so libcrypt_i.so; \
70		$(SYMLINK) libcrypt.so$(VERS) libcrypt_d.so$(VERS); \
71		$(SYMLINK) libcrypt.so libcrypt_d.so;
72
73$(ROOTLINKS64) := INS.liblink64 = \
74	$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \
75		cd $(ROOTLIBDIR64); \
76		$(RM) libcrypt_i.so$(VERS) libcrypt_i.so ;\
77		$(RM) libcrypt_d.so$(VERS) libcrypt_d.so ;\
78		$(SYMLINK) libcrypt.so$(VERS) libcrypt_i.so$(VERS); \
79		$(SYMLINK) libcrypt.so libcrypt_i.so; \
80		$(SYMLINK) libcrypt.so$(VERS) libcrypt_d.so$(VERS); \
81		$(SYMLINK) libcrypt.so libcrypt_d.so;
82
83
84