xref: /onnv-gate/usr/src/common/crypto/aes/Makefile (revision 9392:7b19cd0bbccc)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
57188Smcpowers# Common Development and Distribution License (the "License").
67188Smcpowers# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*9392Sopensolaris@drydog.com# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# common/crypto/aes/Makefile
260Sstevel@tonic-gate#
270Sstevel@tonic-gate# include global definitions
280Sstevel@tonic-gateinclude $(SRC)/Makefile.master
290Sstevel@tonic-gate
300Sstevel@tonic-gate.KEEP_STATE:
310Sstevel@tonic-gate
320Sstevel@tonic-gateFRC:
330Sstevel@tonic-gate
340Sstevel@tonic-gate
350Sstevel@tonic-gate# EXPORT DELETE START
360Sstevel@tonic-gateEXPORT_SRC:
37*9392Sopensolaris@drydog.com	$(RM) Makefile+ aes_impl.c+ aes_impl.h+ amd64/aes_amd64.s+ \
38*9392Sopensolaris@drydog.com		amd64/aes_intel.s+ sun4u/aes_crypt_asm.s+
390Sstevel@tonic-gate	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
400Sstevel@tonic-gate		< aes_impl.c > aes_impl.c+
410Sstevel@tonic-gate	$(MV) aes_impl.c+ aes_impl.c
420Sstevel@tonic-gate	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
430Sstevel@tonic-gate		< aes_impl.h > aes_impl.h+
440Sstevel@tonic-gate	$(MV) aes_impl.h+ aes_impl.h
450Sstevel@tonic-gate	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
46*9392Sopensolaris@drydog.com		< amd64/aes_amd64.s > amd64/aes_amd64.s+
47*9392Sopensolaris@drydog.com	$(MV) amd64/aes_amd64.s+ amd64/aes_amd64.s
48*9392Sopensolaris@drydog.com	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
49*9392Sopensolaris@drydog.com		< amd64/aes_intel.s > amd64/aes_intel.s+
50*9392Sopensolaris@drydog.com	$(MV) amd64/aes_intel.s+ amd64/aes_intel.s
51*9392Sopensolaris@drydog.com	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
520Sstevel@tonic-gate		< sun4u/aes_crypt_asm.s > sun4u/aes_crypt_asm.s+
530Sstevel@tonic-gate	$(MV) sun4u/aes_crypt_asm.s+ sun4u/aes_crypt_asm.s
540Sstevel@tonic-gate	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
550Sstevel@tonic-gate		< Makefile > Makefile+
560Sstevel@tonic-gate	$(RM) Makefile
57*9392Sopensolaris@drydog.com	$(MV) Makefile+ Makefile
58*9392Sopensolaris@drydog.com	$(CHMOD) 444 Makefile aes_impl.c aes_impl.h amd64/aes_amd64.s \
59*9392Sopensolaris@drydog.com		amd64/aes_intel.s sun4u/aes_crypt_asm.s
600Sstevel@tonic-gate
610Sstevel@tonic-gate# EXPORT DELETE END
62