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 38a7123019Skucharsklint:= TARGET= lint 39a7123019Skucharsk 40a7123019SkucharskROOTETC= $(ROOT)/etc 41a7123019SkucharskETCFLASHD= $(ROOTETC)/flash 42a7123019SkucharskETCFLASHPREC= $(ROOTETC)/flash/precreation 43a7123019SkucharskETCFLASHPREE= $(ROOTETC)/flash/preexit 44a7123019SkucharskETCFLASHPOSTC= $(ROOTETC)/flash/postcreation 45a7123019Skucharsk 46a7123019SkucharskDIRS= $(ETCFLASHPREC) $(ETCFLASHPREE) $(ETCFLASHPOSTC) 47a7123019Skucharsk 48a7123019SkucharskETCFLASHPREPROG= $(FLASHPREPROG:%=$(ETCFLASHPREC)/%) 49a7123019Skucharsk 50a7123019Skucharsk$(ETCFLASHD) := DIRMODE= 755 51a7123019Skucharsk$(ETCFLASHPREC) := DIRMODE= 700 52a7123019Skucharsk$(ETCFLASHPREE) := DIRMODE= 700 53a7123019Skucharsk$(ETCFLASHPOSTC) := DIRMODE= 700 54a7123019Skucharsk$(ETCFLASHPREPROG) := FILEMODE= 0500 55a7123019Skucharsk 56a7123019Skucharsk.KEEP_STATE: 57a7123019Skucharsk 58a7123019Skucharskall: $(FLASHPREPROG) 59a7123019Skucharsk 60a7123019Skucharskinstall: all .WAIT $(DIRS) .WAIT $(ETCFLASHPREPROG) 61a7123019Skucharsk 62a7123019Skucharskcstyle: 63a7123019Skucharsk 64a7123019Skucharsklint: 65a7123019Skucharsk 66a7123019Skucharsk$(FLASHPREPROG): $(FLASHPRESRC) 67a7123019Skucharsk $(CP) $@.ksh $@ 68a7123019Skucharsk 69a7123019Skucharsk$(DIRS): 70a7123019Skucharsk $(INS.dir) 71a7123019Skucharsk 72a7123019Skucharsk$(ETCFLASHPREC)/% : % 73a7123019Skucharsk $(INS.file) 74a7123019Skucharsk 75a7123019Skucharsk$(ETCFLASHPREE)/% : % 76a7123019Skucharsk $(INS.file) 77a7123019Skucharsk 78a7123019Skucharsk$(ETCFLASHPOSTC)/% : % 79a7123019Skucharsk $(INS.file) 80a7123019Skucharsk 81a7123019Skucharskclean: 82a7123019Skucharsk $(RM) $(FLASHPREPROG) 83a7123019Skucharsk 84a7123019Skucharskclobber: clean 85a7123019Skucharsk $(RM) $(ETCFLASHPREPROG) 86