xref: /titanic_52/usr/src/cmd/cmd-crypto/Makefile (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
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# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24
25include ../Makefile.cmd
26
27SUBDIRS1 = \
28	cryptoadm \
29	decrypt \
30	digest \
31	elfsign \
32	pktool \
33	kmfcfg
34
35#
36# tpmadm is x86 only until we have SPARC support for the TSS and TPM
37#
38i386_SUBDIRS = tpmadm
39
40$(CLOSED_BUILD)SUBDIRS1 += \
41	$(CLOSED)/cmd/cmd-crypto/kcfd
42
43SUBDIRS2 = \
44	etc \
45	scripts
46
47$(CLOSED_BUILD)SUBDIRS2 += \
48	$(CLOSED)/cmd/cmd-crypto/etc
49
50all:=           TARGET= all
51install:=       TARGET= install
52clean:=         TARGET= clean
53clobber:=       TARGET= clobber
54lint:=          TARGET= lint
55_msg:=          TARGET= _msg
56
57.KEEP_STATE:
58
59all clean clobber lint _msg: $(SUBDIRS1) $($(MACH)_SUBDIRS)
60
61install: $(SUBDIRS1) $(SUBDIRS2) $($(MACH)_SUBDIRS)
62
63$(SUBDIRS1) $(SUBDIRS2) $($(MACH)_SUBDIRS) : FRC
64	@cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET)
65
66FRC:
67