xref: /titanic_41/usr/src/lib/efcode/etc/Makefile (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
17c16fe14Sdhain#
27c16fe14Sdhain# CDDL HEADER START
37c16fe14Sdhain#
47c16fe14Sdhain# The contents of this file are subject to the terms of the
57c16fe14Sdhain# Common Development and Distribution License (the "License").
67c16fe14Sdhain# You may not use this file except in compliance with the License.
77c16fe14Sdhain#
87c16fe14Sdhain# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c16fe14Sdhain# or http://www.opensolaris.org/os/licensing.
107c16fe14Sdhain# See the License for the specific language governing permissions
117c16fe14Sdhain# and limitations under the License.
127c16fe14Sdhain#
137c16fe14Sdhain# When distributing Covered Code, include this CDDL HEADER in each
147c16fe14Sdhain# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c16fe14Sdhain# If applicable, add the following below this CDDL HEADER, with the
167c16fe14Sdhain# fields enclosed by brackets "[]" replaced with your own identifying
177c16fe14Sdhain# information: Portions Copyright [yyyy] [name of copyright owner]
187c16fe14Sdhain#
197c16fe14Sdhain# CDDL HEADER END
207c16fe14Sdhain#
21*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
227c16fe14Sdhain# Use is subject to license terms.
237c16fe14Sdhain#
247c16fe14Sdhain# Efcode cleanup
257c16fe14Sdhain# Disable efdaemon on target systems not supporting Embedded Fcode Interpreter
267c16fe14Sdhain# Enable  efdaemon on target systems supporting Embedded Fcode Interpreter
277c16fe14Sdhain#
287c16fe14Sdhain
297c16fe14Sdhaininclude $(SRC)/Makefile.master
307c16fe14Sdhain
317c16fe14SdhainFLASHPOSTDSRC=  efcode.cleanup.sh
327c16fe14SdhainFLASHPOSTDPROG= $(FLASHPOSTDSRC:%.sh=%)
337c16fe14Sdhain#
347c16fe14Sdhain#
357c16fe14Sdhain
367c16fe14Sdhainall:=           TARGET= all
377c16fe14Sdhaininstall:=       TARGET= install
387c16fe14Sdhainclean:=         TARGET= clean
397c16fe14Sdhainclobber:=       TARGET= clobber
407c16fe14Sdhainlint:=          TARGET= lint
417c16fe14Sdhain
427c16fe14SdhainROOTETC= $(ROOT)/etc
437c16fe14SdhainETCFLASHD=      $(ROOTETC)/flash
447c16fe14SdhainETCFLASHPOSTD=	$(ROOTETC)/flash/postdeployment
457c16fe14Sdhain
467c16fe14SdhainDIRS=   $(ETCFLASHD) $(ETCFLASHPOSTD)
477c16fe14Sdhain
487c16fe14SdhainETCFLASHPOSTDPROG= $(FLASHPOSTDPROG:%=$(ETCFLASHPOSTD)/%)
497c16fe14Sdhain
507c16fe14Sdhain$(ETCFLASHD)		:= DIRMODE=	755
517c16fe14Sdhain$(ETCFLASHPOSTD)	:= DIRMODE=	755
527c16fe14Sdhain$(ETCFLASHPOSTDPROG)	:= FILEMODE=	0744
537c16fe14Sdhain
547c16fe14Sdhain.KEEP_STATE:
557c16fe14Sdhain
567c16fe14Sdhainall:	$(FLASHPOSTDPROG)
577c16fe14Sdhain
587c16fe14Sdhaininstall: all .WAIT $(DIRS) $(ETCFLASHPOSTDPROG)
597c16fe14Sdhain
607c16fe14Sdhain$(DIRS):
617c16fe14Sdhain	$(INS.dir)
627c16fe14Sdhain
637c16fe14Sdhain$(ETCFLASHPOSTD)/%: %
647c16fe14Sdhain	$(INS.file)
657c16fe14Sdhain
667c16fe14Sdhainclean:
677c16fe14Sdhain
687c16fe14Sdhainclobber: clean
697c16fe14Sdhain	$(RM) $(FLASHPOSTDPROG)
707c16fe14Sdhain	$(RM) $(ETCFLASHPOSTD)/$(FLASHPOSTDPROG)
71