xref: /titanic_53/usr/src/lib/efcode/etc/Makefile (revision 7c16fe14e9f5fb2d3dd5deace9d093aaedba142a)
1*7c16fe14Sdhain#
2*7c16fe14Sdhain# CDDL HEADER START
3*7c16fe14Sdhain#
4*7c16fe14Sdhain# The contents of this file are subject to the terms of the
5*7c16fe14Sdhain# Common Development and Distribution License (the "License").
6*7c16fe14Sdhain# You may not use this file except in compliance with the License.
7*7c16fe14Sdhain#
8*7c16fe14Sdhain# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7c16fe14Sdhain# or http://www.opensolaris.org/os/licensing.
10*7c16fe14Sdhain# See the License for the specific language governing permissions
11*7c16fe14Sdhain# and limitations under the License.
12*7c16fe14Sdhain#
13*7c16fe14Sdhain# When distributing Covered Code, include this CDDL HEADER in each
14*7c16fe14Sdhain# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7c16fe14Sdhain# If applicable, add the following below this CDDL HEADER, with the
16*7c16fe14Sdhain# fields enclosed by brackets "[]" replaced with your own identifying
17*7c16fe14Sdhain# information: Portions Copyright [yyyy] [name of copyright owner]
18*7c16fe14Sdhain#
19*7c16fe14Sdhain# CDDL HEADER END
20*7c16fe14Sdhain#
21*7c16fe14Sdhain#
22*7c16fe14Sdhain#ident	"%Z%%M%	%I%	%E% SMI"
23*7c16fe14Sdhain#
24*7c16fe14Sdhain# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
25*7c16fe14Sdhain# Use is subject to license terms.
26*7c16fe14Sdhain#
27*7c16fe14Sdhain# Efcode cleanup
28*7c16fe14Sdhain# Disable efdaemon on target systems not supporting Embedded Fcode Interpreter
29*7c16fe14Sdhain# Enable  efdaemon on target systems supporting Embedded Fcode Interpreter
30*7c16fe14Sdhain#
31*7c16fe14Sdhain
32*7c16fe14Sdhaininclude $(SRC)/Makefile.master
33*7c16fe14Sdhain
34*7c16fe14SdhainFLASHPOSTDSRC=  efcode.cleanup.sh
35*7c16fe14SdhainFLASHPOSTDPROG= $(FLASHPOSTDSRC:%.sh=%)
36*7c16fe14Sdhain#
37*7c16fe14Sdhain#
38*7c16fe14Sdhain
39*7c16fe14Sdhainall:=           TARGET= all
40*7c16fe14Sdhaininstall:=       TARGET= install
41*7c16fe14Sdhainclean:=         TARGET= clean
42*7c16fe14Sdhainclobber:=       TARGET= clobber
43*7c16fe14Sdhainlint:=          TARGET= lint
44*7c16fe14Sdhain
45*7c16fe14SdhainROOTETC= $(ROOT)/etc
46*7c16fe14SdhainETCFLASHD=      $(ROOTETC)/flash
47*7c16fe14SdhainETCFLASHPOSTD=	$(ROOTETC)/flash/postdeployment
48*7c16fe14Sdhain
49*7c16fe14SdhainDIRS=   $(ETCFLASHD) $(ETCFLASHPOSTD)
50*7c16fe14Sdhain
51*7c16fe14SdhainETCFLASHPOSTDPROG= $(FLASHPOSTDPROG:%=$(ETCFLASHPOSTD)/%)
52*7c16fe14Sdhain
53*7c16fe14Sdhain$(ETCFLASHD)			:= DIRMODE=		755
54*7c16fe14Sdhain$(ETCFLASHD)			:= OWNER=		root
55*7c16fe14Sdhain$(ETCFLASHD)			:= GROUP=		sys
56*7c16fe14Sdhain$(ETCFLASHPOSTD)		:= DIRMODE=		755
57*7c16fe14Sdhain$(ETCFLASHPOSTD)		:= OWNER=		root
58*7c16fe14Sdhain$(ETCFLASHPOSTD)		:= GROUP=		sys
59*7c16fe14Sdhain$(ETCFLASHPOSTDPROG)	:= FILEMODE=	0744
60*7c16fe14Sdhain$(ETCFLASHPOSTDPROG)	:= OWNER=		root
61*7c16fe14Sdhain$(ETCFLASHPOSTDPROG)	:= GROUP=		sys
62*7c16fe14Sdhain
63*7c16fe14Sdhain.KEEP_STATE:
64*7c16fe14Sdhain
65*7c16fe14Sdhainall:	$(FLASHPOSTDPROG)
66*7c16fe14Sdhain
67*7c16fe14Sdhaininstall: all .WAIT $(DIRS) $(ETCFLASHPOSTDPROG)
68*7c16fe14Sdhain
69*7c16fe14Sdhain$(DIRS):
70*7c16fe14Sdhain	$(INS.dir)
71*7c16fe14Sdhain
72*7c16fe14Sdhain$(ETCFLASHPOSTD)/%: %
73*7c16fe14Sdhain	$(INS.file)
74*7c16fe14Sdhain
75*7c16fe14Sdhainclean:
76*7c16fe14Sdhain
77*7c16fe14Sdhainclobber: clean
78*7c16fe14Sdhain	$(RM) $(FLASHPOSTDPROG)
79*7c16fe14Sdhain	$(RM) $(ETCFLASHPOSTD)/$(FLASHPOSTDPROG)
80