xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/chalupa/frudr/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 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# cmd/picl/plugins/sun4u/chalupa/frudr/Makefile
29#
30include	$(SRC)/Makefile.psm
31
32# include library definitions
33include $(SRC)/lib/Makefile.lib
34
35ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-V440
36
37include	$(SRC)/cmd/picl/plugins/Makefile.com
38
39ROOTLIBDIR	= $(ROOT_PLAT_PLUGINDIR)
40ROOTLIBDIR	:= OWNER = root
41ROOTLIBDIR	:= GROUP = sys
42
43CONFS		= fru_PS0.conf fru_PS1.conf
44CONFS		+= fru_PSU0.conf fru_PSU1.conf fru_PSU2.conf fru_PSU3.conf
45CONFS		+= fru_HDD0.conf fru_HDD1.conf fru_HDD2.conf
46CONFS		+= fru_HDD3.conf
47CONFS		+= fru_SC.conf
48ROOTCONF=	$(CONFS:%=$(ROOTLIBDIR)/%)
49$(ROOTCONF)	:= FILEMODE = 0644
50MAININFO=	$(CONFS:%.conf=%.info)
51OTHERINFOS	= fru_PS0_data.info fru_PS1_data.info
52OTHERINFOS	+= fru_PSU0_data.info fru_PSU1_data.info fru_PSU2_data.info fru_PSU3_data.info
53OTHERINFOS	+= fru_HDD0_data.info fru_HDD1_data.info
54OTHERINFOS	+= fru_HDD2_data.info fru_HDD3_data.info
55OTHERINFOS	+= fru_SC_data.info SB-tables.info
56
57ROOTLINTDIR =	$(ROOTLIBDIR)
58
59.KEEP_STATE:
60
61SUBDIRS =
62
63all :=		TARGET= all
64install :=	TARGET= install
65clean :=	TARGET= clean
66clobber :=	TARGET= clobber
67lint :=		TARGET= lint
68
69all: $(LIBS) $(LIBLINKS) $(CONFS)
70
71install:	$(ROOTLIBDIR) $(ROOTCONF)
72
73$(CONFS): $(MAININFO) $(OTHERINFOS)
74	@$(RM) -f $@
75	@echo "# Copyright 2002 Sun Microsystems, Inc.  All rights reserved." \
76	> $@
77	@echo "# Use is subject to license terms." >> $@
78	@echo "# This is a generated file. #ident lines identify sources" >> $@
79	$(CPP) -P $(@:%.conf=%.info) | \
80	$(SED) -e '/^[  ]*$$/d' >> $@
81	@$(CHMOD) 644 $@
82
83# include library targets
84include $(SRC)/lib/Makefile.targ
85include	$(SRC)/cmd/picl/plugins/Makefile.targ
86
87$(ROOTLINTDIR)/%: ../%
88	$(INS.file)
89
90lint:
91
92$(SUBDIRS): FRC
93	@cd $@; pwd; $(MAKE) $(TARGET)
94
95FRC:
96