xref: /titanic_52/usr/src/lib/libcrypt/Makefile (revision 84ab085a13f931bc78e7415e7ce921dbaa14fcb3)
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 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# usr/src/lib/libcrypt/Makefile
29
30include ../Makefile.lib
31
32SUBDIRS=        $(MACH)
33$(BUILD64)SUBDIRS += $(MACH64)
34
35all :=          TARGET= all
36clean :=        TARGET= clean
37clobber :=      TARGET= clobber
38install :=      TARGET= install
39lint :=         TARGET= lint
40
41.KEEP_STATE:
42
43all clean clobber install: spec .WAIT $(SUBDIRS)
44
45lint: $(SUBDIRS)
46
47check: $(CHECKHDRS)
48
49spec $(SUBDIRS):      FRC
50	@cd $@; pwd; $(MAKE) $(TARGET)
51
52FRC:
53
54include ../Makefile.targ
55
56# EXPORT DELETE START
57EXPORT_SRC:
58	$(RM) common/des.c+ common/des_crypt.c+ common/des_soft.c+ \
59		common/des_decrypt.c+ common/des_encrypt.c+  \
60		Makefile+
61	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" < \
62		common/des.c > common/des.c+
63	$(MV) common/des.c+ common/des.c
64	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" < \
65		common/des_crypt.c > common/des_crypt.c+
66	$(MV) common/des_crypt.c+ common/des_crypt.c
67	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" < \
68		common/des_soft.c > common/des_soft.c+
69	$(MV) common/des_soft.c+ common/des_soft.c
70	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" < \
71		common/des_encrypt.c > common/des_encrypt.c+
72	$(MV) common/des_encrypt.c+ common/des_encrypt.c
73	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" < \
74		common/des_decrypt.c > common/des_decrypt.c+
75	$(MV) common/des_decrypt.c+ common/des_decrypt.c
76	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
77		< Makefile > Makefile+
78	$(MV) Makefile+ Makefile
79	$(CHMOD) 444 Makefile common/des.c common/des_crypt.c \
80		common/des_soft.c common/des_encrypt.c common/des_decrypt.c
81# EXPORT DELETE END
82