xref: /illumos-gate/usr/src/cmd/tsol/Makefile (revision dd4eeefdb8e4583c47e28a7f315db6087931ef06)
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 2007 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#ident	"%Z%%M%	%I%	%E% SMI"
26#
27# cmd/tsol/Makefile
28#
29
30include ../Makefile.cmd
31
32SUBDIRS =		\
33	atohexlabel	\
34	getlabel	\
35	demo		\
36	misc		\
37	zones		\
38	labeld		\
39	updatehome	\
40	plabel		\
41	setlabel	\
42	tnchkdb		\
43	tninfo		\
44	tnctl		\
45	tnd		\
46	tsol-zones	\
47	getzonepath	\
48	hextoalabel	\
49	lslabels
50
51
52MSGSUBDIRS =		\
53	getlabel	\
54	setlabel	\
55	tnchkdb		\
56	tninfo		\
57	tnctl		\
58	tnd		\
59	getzonepath
60
61$(CLOSED_BUILD)SUBDIRS += $(CLOSED)/cmd/tsol/chk_encodings \
62	$(CLOSED)/cmd/tsol/labeld
63
64$(CLOSED_BUILD)CLOSED_MSGSUBDIRS = $(CLOSED)/cmd/tsol/chk_encodings \
65	$(CLOSED)/cmd/tsol/labeld
66
67#
68# for messaging catalog
69#
70POFILE= tsol-cmd.po
71POFILES= $(MSGSUBDIRS:%=%/%.po)
72
73all	:=	TARGET = all
74install :=	TARGET = install
75clean	:=	TARGET = clean
76clobber	:=	TARGET = clobber
77lint	:=	TARGET = lint
78_msg	:=	TARGET = _msg
79
80.KEEP_STATE:
81
82.PARALLEL:	$(SUBDIRS)
83
84all install clean clobber lint: $(SUBDIRS)
85
86$(POFILE): $(MSGSUBDIRS) $(CLOSED_MSGSUBDIRS)
87	$(RM) $(POFILE)
88	$(CAT) $(POFILES) > $(POFILE)
89
90$(SUBDIRS): FRC
91	@cd $@; pwd; $(MAKE) $(TARGET)
92
93FRC:
94
95include Makefile.targ
96