xref: /titanic_50/usr/src/uts/common/des/Makefile (revision 0e42dee69ed771bf604dd1789fca9d77b5bbe302)
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# ident	"%Z%%M%	%I%	%E% SMI"
23#
24# Copyright (c) 1989,1999 by Sun Microsystems, Inc.
25# All rights reserved.
26#
27# uts/common/des/Makefile
28#
29# include global definitions
30include ../../../Makefile.master
31
32HDRS=	des.h		desdata.h	softdes.h
33
34ROOTDIRS= $(ROOT)/usr/include/des
35
36ROOTHDRS= $(HDRS:%=$(ROOTDIRS)/%)
37
38CHECKHDRS= $(HDRS:%.h=%.check)
39
40# install rule
41$(ROOTDIRS)/%: %
42	$(INS.file)
43
44.KEEP_STATE:
45
46.PARALLEL: $(CHECKHDRS)
47
48install_h: $(ROOTDIRS) $(ROOTHDRS)
49
50$(ROOTDIRS):
51	$(INS.dir)
52
53# EXPORT DELETE START
54EXPORT_SRC:
55	$(RM) Makefile+ des_crypt.c+ des_soft.c+ desdata.h+
56	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
57		< des_crypt.c > des_crypt.c+
58	$(MV) des_crypt.c+ des_crypt.c
59	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
60		< des_soft.c > des_soft.c+
61	$(MV) des_soft.c+ des_soft.c
62	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
63		< desdata.h > desdata.h+
64	$(MV) desdata.h+ desdata.h
65	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
66		< Makefile > Makefile+
67	$(RM) Makefile
68	$(MV) Makefile+ Makefile
69	$(CHMOD) 444 Makefile des_crypt.c des_soft.c desdata.h
70
71# EXPORT DELETE END
72check:	$(CHECKHDRS)
73