xref: /titanic_44/usr/src/cmd/tsol/Makefile.targ (revision de860bd9529e1034e1666f74f7bc0ec8cd5ca701)
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 2007 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24# ident	"%Z%%M%	%I%	%E% SMI"
25#
26
27#
28# Conditional assignment of default group/owner/permissions for SMF
29# manifests and method scripts.
30#
31$(ROOTMANIFEST) :=	OWNER= root
32$(ROOTMANIFEST) :=	GROUP= sys
33$(ROOTMANIFEST) :=	FILEMODE= 444
34$(ROOTSVCBIN) :=	OWNER= root
35$(ROOTSVCBIN) :=	GROUP= bin
36$(ROOTSVCBIN) :=	FILEMODE= 544
37
38clobber: clean
39	-$(RM) $(PROG) $(CLOBBERFILES)
40
41lint_PROG:	$$(PROG).c
42	$(LINT.c) $(PROG).c $(LDLIBS)
43
44lint_SRCS:	$$(SRCS)
45	$(LINT.c) $(SRCS) $(LDLIBS)
46
47$(ROOTCMDDIR)/%: $(ROOTCMDDIR) %
48	$(INS.file)
49
50$(ROOTCMDDIR) $(ROOTCMDDIR64):
51	$(INS.dir)
52
53$(ROOTCMDDIR64)/%: $(ROOTCMDDIR64) %
54	$(INS.file)
55
56$(ROOTMANIFEST): $(ROOTMANIFESTDIR)
57
58$(ROOTMANIFESTDIR):
59	$(INS.dir)
60
61$(ROOTMANIFESTDIR)/%: %
62	$(INS.file)
63
64#
65# For message catalogue files
66#
67_msg: $(POFILE)
68
69# the build of the $(DCFILE) should be defined locally
70# its .dc extension gets renamed to .po upon installation
71#
72_dc: $(DCMSGDOMAIN) $(DCFILE)
73	$(RM) $(DCMSGDOMAIN)/$(DCFILE)
74	$(CP) $(DCFILE) $(DCMSGDOMAIN)/$(DCFILE:.dc=.po)
75
76$(MSGDOMAIN) $(DCMSGDOMAIN):
77	$(INS.dir)
78