1a7123019Skucharsk# 2a7123019Skucharsk# CDDL HEADER START 3a7123019Skucharsk# 4a7123019Skucharsk# The contents of this file are subject to the terms of the 5*24fe0b3bSjmcp# Common Development and Distribution License (the "License"). 6*24fe0b3bSjmcp# You may not use this file except in compliance with the License. 7a7123019Skucharsk# 8a7123019Skucharsk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9a7123019Skucharsk# or http://www.opensolaris.org/os/licensing. 10a7123019Skucharsk# See the License for the specific language governing permissions 11a7123019Skucharsk# and limitations under the License. 12a7123019Skucharsk# 13a7123019Skucharsk# When distributing Covered Code, include this CDDL HEADER in each 14a7123019Skucharsk# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15a7123019Skucharsk# If applicable, add the following below this CDDL HEADER, with the 16a7123019Skucharsk# fields enclosed by brackets "[]" replaced with your own identifying 17a7123019Skucharsk# information: Portions Copyright [yyyy] [name of copyright owner] 18a7123019Skucharsk# 19a7123019Skucharsk# CDDL HEADER END 20a7123019Skucharsk# 21*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22a7123019Skucharsk# Use is subject to license terms. 23a7123019Skucharsk# 24a7123019Skucharsk# Makefile for libc-related x86 flarcreate precreation scripts 25a7123019Skucharsk# 26a7123019Skucharsk# 27a7123019Skucharsk# libc/i386_etc/Makefile 28a7123019Skucharsk 29a7123019Skucharskinclude ../../../../Makefile.master 30a7123019Skucharsk 31a7123019SkucharskFLASHPRESRC= caplib.ksh 32a7123019SkucharskFLASHPREPROG= $(FLASHPRESRC:%.ksh=%) 33a7123019Skucharsk 34a7123019Skucharskall:= TARGET= all 35a7123019Skucharskinstall:= TARGET= install 36a7123019Skucharskclean:= TARGET= clean 37a7123019Skucharskclobber:= TARGET= clobber 38a7123019Skucharsk 39a7123019SkucharskROOTETC= $(ROOT)/etc 40a7123019SkucharskETCFLASHD= $(ROOTETC)/flash 41a7123019SkucharskETCFLASHPREC= $(ROOTETC)/flash/precreation 42a7123019SkucharskETCFLASHPREE= $(ROOTETC)/flash/preexit 43a7123019SkucharskETCFLASHPOSTC= $(ROOTETC)/flash/postcreation 44a7123019Skucharsk 45a7123019SkucharskDIRS= $(ETCFLASHPREC) $(ETCFLASHPREE) $(ETCFLASHPOSTC) 46a7123019Skucharsk 47a7123019SkucharskETCFLASHPREPROG= $(FLASHPREPROG:%=$(ETCFLASHPREC)/%) 48a7123019Skucharsk 49a7123019Skucharsk$(ETCFLASHD) := DIRMODE= 755 50a7123019Skucharsk$(ETCFLASHPREC) := DIRMODE= 700 51a7123019Skucharsk$(ETCFLASHPREE) := DIRMODE= 700 52a7123019Skucharsk$(ETCFLASHPOSTC) := DIRMODE= 700 53a7123019Skucharsk$(ETCFLASHPREPROG) := FILEMODE= 0500 54a7123019Skucharsk 55a7123019Skucharsk.KEEP_STATE: 56a7123019Skucharsk 57a7123019Skucharskall: $(FLASHPREPROG) 58a7123019Skucharsk 59a7123019Skucharskinstall: all .WAIT $(DIRS) .WAIT $(ETCFLASHPREPROG) 60a7123019Skucharsk 61a7123019Skucharskcstyle: 62a7123019Skucharsk 63a7123019Skucharsk 64a7123019Skucharsk$(FLASHPREPROG): $(FLASHPRESRC) 65a7123019Skucharsk $(CP) $@.ksh $@ 66a7123019Skucharsk 67a7123019Skucharsk$(DIRS): 68a7123019Skucharsk $(INS.dir) 69a7123019Skucharsk 70a7123019Skucharsk$(ETCFLASHPREC)/% : % 71a7123019Skucharsk $(INS.file) 72a7123019Skucharsk 73a7123019Skucharsk$(ETCFLASHPREE)/% : % 74a7123019Skucharsk $(INS.file) 75a7123019Skucharsk 76a7123019Skucharsk$(ETCFLASHPOSTC)/% : % 77a7123019Skucharsk $(INS.file) 78a7123019Skucharsk 79a7123019Skucharskclean: 80a7123019Skucharsk $(RM) $(FLASHPREPROG) 81a7123019Skucharsk 82a7123019Skucharskclobber: clean 83a7123019Skucharsk $(RM) $(ETCFLASHPREPROG) 84