xref: /titanic_44/usr/src/psm/stand/bootblks/ufs/sparc/Makefile (revision 54925bf60766fbb4f1f2d7c843721406a7b7a3fb)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# psm/stand/bootblks/ufs/sparc/Makefile
29#
30
31BASEDIR = ../..
32
33include $(BASEDIR)/ufs/Makefile.ufs
34
35SUBDIRS	= unix sun4c sun4m sun4d sun4u sun4v
36
37all	:=	TARGET= all
38install	:=	TARGET= install
39clean	:=	TARGET= clean
40clobber	:=	TARGET= clobber
41lint	:=	TARGET= lint
42
43.KEEP_STATE:
44
45all: $(INSTALLBOOT) $(SUBDIRS)
46
47install: $(USR_SBIN_INSTALLBOOT) $(SUBDIRS)
48
49lint clean: $(SUBDIRS)
50
51clobber: $(SUBDIRS)
52	-$(RM) $(INSTALLBOOT)
53
54$(SUBDIRS): FRC
55	@cd $@; pwd; $(MAKE) $(TARGET)
56
57FRC:
58
59#
60# Pattern matching rules for source in this directory
61#
62%: %.sh
63	$(RM) $@
64	cat $< > $@
65	chmod +x $@
66