xref: /titanic_41/usr/src/lib/libc/i386/etc/Makefile (revision fb9f9b975cb9214fec5dab37d461199adab9b964)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#pragma ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# Makefile for libc-related x86 flarcreate precreation scripts
29#
30#
31# libc/i386_etc/Makefile
32
33include ../../../../Makefile.master
34
35FLASHPRESRC=	caplib.ksh
36FLASHPREPROG=	$(FLASHPRESRC:%.ksh=%)
37
38all:=           TARGET= all
39install:=       TARGET= install
40clean:=         TARGET= clean
41clobber:=       TARGET= clobber
42lint:=          TARGET= lint
43
44ROOTETC=	$(ROOT)/etc
45ETCFLASHD=	$(ROOTETC)/flash
46ETCFLASHPREC=	$(ROOTETC)/flash/precreation
47ETCFLASHPREE=	$(ROOTETC)/flash/preexit
48ETCFLASHPOSTC=	$(ROOTETC)/flash/postcreation
49
50DIRS=		$(ETCFLASHPREC) $(ETCFLASHPREE) $(ETCFLASHPOSTC)
51
52ETCFLASHPREPROG=	$(FLASHPREPROG:%=$(ETCFLASHPREC)/%)
53
54$(ETCFLASHD) :=	DIRMODE=	755
55$(ETCFLASHD) :=	OWNER=          root
56$(ETCFLASHD) :=	GROUP=          sys
57$(ETCFLASHPREC) :=	DIRMODE=	700
58$(ETCFLASHPREC) :=	OWNER=          root
59$(ETCFLASHPREC) :=	GROUP=          sys
60$(ETCFLASHPREE) :=	DIRMODE=	700
61$(ETCFLASHPREE) :=	OWNER=          root
62$(ETCFLASHPREE) :=	GROUP=          sys
63$(ETCFLASHPOSTC) :=	DIRMODE=	700
64$(ETCFLASHPOSTC) :=	OWNER=          root
65$(ETCFLASHPOSTC) :=	GROUP=          sys
66$(ETCFLASHPREPROG) :=	FILEMODE=       0500
67$(ETCFLASHPREPROG) :=	OWNER=          root
68$(ETCFLASHPREPROG) :=	GROUP=          sys
69
70.KEEP_STATE:
71
72all: $(FLASHPREPROG)
73
74install: all .WAIT $(DIRS) .WAIT $(ETCFLASHPREPROG)
75
76cstyle:
77
78lint:
79
80$(FLASHPREPROG): $(FLASHPRESRC)
81	$(CP) $@.ksh $@
82
83$(DIRS):
84	$(INS.dir)
85
86$(ETCFLASHPREC)/% : %
87	$(INS.file)
88
89$(ETCFLASHPREE)/% : %
90	$(INS.file)
91
92$(ETCFLASHPOSTC)/% : %
93	$(INS.file)
94
95clean:
96	$(RM) $(FLASHPREPROG)
97
98clobber: clean
99	$(RM) $(ETCFLASHPREPROG)
100