xref: /titanic_50/usr/src/lib/pkcs11/libpkcs11/Makefile (revision 936b7af69172dce89b577831f79c0e18d15e854b)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28include		../../../Makefile.master
29include		../../Makefile.lib
30
31SUBDIRS=	$(MACH)
32$(BUILD64)SUBDIRS += $(MACH64)
33
34all :=		TARGET= all
35check :=	TARGET= check
36clean :=	TARGET= clean
37clobber :=	TARGET= clobber
38install :=	TARGET= install
39lint :=		TARGET= lint
40
41.KEEP_STATE:
42
43all clean clobber install lint: $(SUBDIRS)
44
45$(SUBDIRS): FRC
46	@cd $@; pwd; $(MAKE) $(TARGET)
47
48FRC:
49
50# EXPORT DELETE START
51EXPORT_SRC:
52	$(RM) Makefile+
53	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
54		< Makefile > Makefile+
55	$(MV) -f Makefile+ Makefile
56	$(CHMOD) 444 Makefile
57	$(RM) Makefile.com+
58	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
59		< Makefile.com > Makefile.com+
60	$(MV) -f Makefile.com+ Makefile.com
61	$(CHMOD) 444 Makefile.com
62# EXPORT DELETE END
63
64include ../../Makefile.targ
65