xref: /titanic_44/usr/src/psm/stand/bootblks/hsfs/Makefile.hsfs (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5986fd29aSsetje# Common Development and Distribution License (the "License").
6986fd29aSsetje# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
21*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22986fd29aSsetje# Use is subject to license terms.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate# psm/stand/bootblks/hsfs/Makefile.hsfs
257c478bd9Sstevel@tonic-gate#
26986fd29aSsetje
277c478bd9Sstevel@tonic-gateinclude $(BASEDIR)/Makefile.com
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate#
30986fd29aSsetje# Define FS dependent targets
31986fd29aSsetje#
32986fd29aSsetje
33986fd29aSsetjeHSFS_DIR			= $(BASEDIR)/hsfs/common
34986fd29aSsetje
35986fd29aSsetjeFS_FCODE		= boot-hsfs.fcode
36986fd29aSsetjeFS_BB			= hsfs.bb
37986fd29aSsetje
38986fd29aSsetjeHSFSBOOT_FTH		= $(HSFS_DIR)/boot-hsfs.fth
39986fd29aSsetjeHSFS_FTH		= $(HSFS_DIR)/hsfs.fth
40986fd29aSsetje
41986fd29aSsetje#
42986fd29aSsetje# This program is used to install the boot block
43986fd29aSsetje#
44986fd29aSsetjeINSTALLBOOT		= installboot
45986fd29aSsetje
46986fd29aSsetje#
47986fd29aSsetje# Where and how stuff gets installed
487c478bd9Sstevel@tonic-gate#
49d876c67dSjgROOT_PSM_BOOTBLOCK	= $(ROOT_PSM_LIB_HSFS_DIR)/$(PROG)
507c478bd9Sstevel@tonic-gateUSR_PSM_BOOTBLOCK	= $(USR_PSM_LIB_HSFS_DIR)/$(PROG)
51d876c67dSjgBOOTBLK_LINK		= $(BOOTBLK_LINK_PREFIX)/hsfs/$(PROG)
52986fd29aSsetje
53986fd29aSsetjeUSR			= $(ROOT)/usr
54986fd29aSsetjeUSR_SBIN		= $(USR)/sbin
55986fd29aSsetjeUSR_SBIN_INSTALLBOOT	= $(USR_SBIN)/$(INSTALLBOOT)
56986fd29aSsetje
57986fd29aSsetje#
58986fd29aSsetje# Overrides for installing installboot.
59986fd29aSsetje#
60986fd29aSsetjeINS.file.555		= $(RM) $@; $(INS) -s -m 555 -f $(@D) $<
61986fd29aSsetje
62986fd29aSsetje#
63986fd29aSsetje# dependencies
64986fd29aSsetje#
65986fd29aSsetje%.fcode:	$(HSFS_DIR)/%.fth
66986fd29aSsetje	$(TOKENIZE) $<
67986fd29aSsetje
68986fd29aSsetje$(FS_FCODE):	$(UTIL_FTH) $(HSFS_FTH) $(BOOT_FTH)
69986fd29aSsetje	$(TOKENIZE) $(HSFSBOOT_FTH)
70986fd29aSsetje
71986fd29aSsetje#
72986fd29aSsetje# install rules
73986fd29aSsetje#
74986fd29aSsetje$(USR_SBIN)/%:	% $(USR_SBIN)
75986fd29aSsetje	$(INS.file.555)
76