Makefile revision 10207:87c40ea3fc4b
139213Sgibbs#
239213Sgibbs# CDDL HEADER START
339213Sgibbs#
439213Sgibbs# The contents of this file are subject to the terms of the
539213Sgibbs# Common Development and Distribution License (the "License").
639213Sgibbs# You may not use this file except in compliance with the License.
739213Sgibbs#
839213Sgibbs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
939213Sgibbs# or http://www.opensolaris.org/os/licensing.
1039213Sgibbs# See the License for the specific language governing permissions
1139213Sgibbs# and limitations under the License.
1239213Sgibbs#
1339213Sgibbs# When distributing Covered Code, include this CDDL HEADER in each
1439213Sgibbs# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1539213Sgibbs# If applicable, add the following below this CDDL HEADER, with the
1639213Sgibbs# fields enclosed by brackets "[]" replaced with your own identifying
1739213Sgibbs# information: Portions Copyright [yyyy] [name of copyright owner]
1839213Sgibbs#
1939213Sgibbs# CDDL HEADER END
2039213Sgibbs#
2139213Sgibbs# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2239213Sgibbs# Use is subject to license terms.
2339213Sgibbs#
2439213Sgibbs# cmd/picl/plugins/sun4u/chalupa/frutree/Makefile
2539213Sgibbs#
2639213Sgibbs
2739213Sgibbsinclude	$(SRC)/Makefile.psm
2839213Sgibbs
2939213Sgibbs# include library definitions
3039213Sgibbsinclude $(SRC)/lib/Makefile.lib
3139213Sgibbs
3239213SgibbsROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-V440
3339213Sgibbs
3439213Sgibbsinclude	$(SRC)/cmd/picl/plugins/Makefile.com
3539213Sgibbs
3639213SgibbsROOTLIBDIR	= $(ROOT_PLAT_PLUGINDIR)
3739213Sgibbs
3839213SgibbsINCDIR1		= .
3939213SgibbsINCDIR2		= ../frudr
4039213SgibbsINCS		= -I$(INCDIR1) -I$(INCDIR2)
4139213SgibbsCONFS		= piclfrutree.conf
4239213SgibbsROOTCONF	= $(CONFS:%=$(ROOTLIBDIR)/%)
4339213Sgibbs$(ROOTCONF)	:= FILEMODE = 0644
4439213SgibbsMAININFO	= $(CONFS:%.conf=%.info)
4539213SgibbsOTHERINFOS	= $(INCDIR1)/system-board.info
4639213SgibbsOTHERINFOS	+= $(INCDIR2)/fru_HDD0_data.info
4739213SgibbsOTHERINFOS	+= $(INCDIR2)/fru_HDD1_data.info
4839213SgibbsOTHERINFOS	+= $(INCDIR2)/fru_HDD2_data.info
4939213SgibbsOTHERINFOS	+= $(INCDIR2)/fru_HDD2_data.info
5039213SgibbsOTHERINFOS	+= $(INCDIR2)/fru_PS0_data.info
5139213SgibbsOTHERINFOS	+= $(INCDIR2)/fru_PS1_data.info
5239213SgibbsOTHERINFOS	+= $(INCDIR2)/fru_SC_data.info
5339213Sgibbs
5439213SgibbsROOTLINTDIR =   $(ROOTLIBDIR)
5539213Sgibbs
5639213Sgibbs.KEEP_STATE:
5739213Sgibbs
5839213SgibbsSUBDIRS=
5939213Sgibbs
6039213Sgibbsall	:=	TARGET= all
6139213Sgibbsinstall :=	TARGET= install
6239213Sgibbsclean	:=	TARGET= clean
6339213Sgibbsclobber	:=	TARGET= clobber
6439213Sgibbslint	:=	TARGET= lint
6539213Sgibbs
6639213Sgibbsall:	$(CONFS) 
6739213Sgibbs
6839213Sgibbsinstall:	$(ROOTLIBDIR) $(ROOTCONF)
6939213Sgibbs
7039213Sgibbs$(CONFS): $(MAININFO) $(OTHERINFOS)
7139213Sgibbs	@$(RM) -f $@
7239213Sgibbs	@echo "# Copyright 2002 Sun Microsystems, Inc.  All rights reserved." \
7339213Sgibbs	> $@
7439213Sgibbs	@echo "# Use is subject to license terms." >> $@
7539213Sgibbs	@echo "# This is a generated file. #ident lines identify sources" >> $@
7639213Sgibbs	$(CPP) -P $(INCS) $(@:%.conf=%.info) | \
7739213Sgibbs	$(SED) -e '/^[ 	]*$$/d' >> $@
7839213Sgibbs	@$(CHMOD) 444 $@
7939213Sgibbs
8039213Sgibbs# include library targets
8139213Sgibbsinclude $(SRC)/lib/Makefile.targ
8239213Sgibbsinclude	$(SRC)/cmd/picl/plugins/Makefile.targ
8339213Sgibbs
8439213Sgibbs$(ROOTLINTDIR)/%: ../%
8539213Sgibbs	$(INS.file)
8639213Sgibbs
8739213Sgibbslint:
8839213Sgibbs
8939213Sgibbs$(SUBDIRS): FRC
9039213Sgibbs	@cd $@; pwd; $(MAKE) $(TARGET)
9139213Sgibbs
9239213SgibbsFRC:
9339213Sgibbs