xref: /onnv-gate/usr/src/lib/efcode/etc/Makefile (revision 10207:87c40ea3fc4b)
14437Sdhain#
24437Sdhain# CDDL HEADER START
34437Sdhain#
44437Sdhain# The contents of this file are subject to the terms of the
54437Sdhain# Common Development and Distribution License (the "License").
64437Sdhain# You may not use this file except in compliance with the License.
74437Sdhain#
84437Sdhain# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94437Sdhain# or http://www.opensolaris.org/os/licensing.
104437Sdhain# See the License for the specific language governing permissions
114437Sdhain# and limitations under the License.
124437Sdhain#
134437Sdhain# When distributing Covered Code, include this CDDL HEADER in each
144437Sdhain# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154437Sdhain# If applicable, add the following below this CDDL HEADER, with the
164437Sdhain# fields enclosed by brackets "[]" replaced with your own identifying
174437Sdhain# information: Portions Copyright [yyyy] [name of copyright owner]
184437Sdhain#
194437Sdhain# CDDL HEADER END
204437Sdhain#
21*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
224437Sdhain# Use is subject to license terms.
234437Sdhain#
244437Sdhain# Efcode cleanup
254437Sdhain# Disable efdaemon on target systems not supporting Embedded Fcode Interpreter
264437Sdhain# Enable  efdaemon on target systems supporting Embedded Fcode Interpreter
274437Sdhain#
284437Sdhain
294437Sdhaininclude $(SRC)/Makefile.master
304437Sdhain
314437SdhainFLASHPOSTDSRC=  efcode.cleanup.sh
324437SdhainFLASHPOSTDPROG= $(FLASHPOSTDSRC:%.sh=%)
334437Sdhain#
344437Sdhain#
354437Sdhain
364437Sdhainall:=           TARGET= all
374437Sdhaininstall:=       TARGET= install
384437Sdhainclean:=         TARGET= clean
394437Sdhainclobber:=       TARGET= clobber
404437Sdhainlint:=          TARGET= lint
414437Sdhain
424437SdhainROOTETC= $(ROOT)/etc
434437SdhainETCFLASHD=      $(ROOTETC)/flash
444437SdhainETCFLASHPOSTD=	$(ROOTETC)/flash/postdeployment
454437Sdhain
464437SdhainDIRS=   $(ETCFLASHD) $(ETCFLASHPOSTD)
474437Sdhain
484437SdhainETCFLASHPOSTDPROG= $(FLASHPOSTDPROG:%=$(ETCFLASHPOSTD)/%)
494437Sdhain
50*10207SJames.McPherson@Sun.COM$(ETCFLASHD)		:= DIRMODE=	755
51*10207SJames.McPherson@Sun.COM$(ETCFLASHPOSTD)	:= DIRMODE=	755
524437Sdhain$(ETCFLASHPOSTDPROG)	:= FILEMODE=	0744
534437Sdhain
544437Sdhain.KEEP_STATE:
554437Sdhain
564437Sdhainall:	$(FLASHPOSTDPROG)
574437Sdhain
584437Sdhaininstall: all .WAIT $(DIRS) $(ETCFLASHPOSTDPROG)
594437Sdhain
604437Sdhain$(DIRS):
614437Sdhain	$(INS.dir)
624437Sdhain
634437Sdhain$(ETCFLASHPOSTD)/%: %
644437Sdhain	$(INS.file)
654437Sdhain
664437Sdhainclean:
674437Sdhain
684437Sdhainclobber: clean
694437Sdhain	$(RM) $(FLASHPOSTDPROG)
704437Sdhain	$(RM) $(ETCFLASHPOSTD)/$(FLASHPOSTDPROG)
71