xref: /onnv-gate/usr/src/cmd/picl/plugins/sun4u/ents/frudr/Makefile (revision 10207:87c40ea3fc4b)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*10207SJames.McPherson@Sun.COM# Common Development and Distribution License (the "License").
6*10207SJames.McPherson@Sun.COM# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
21*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
220Sstevel@tonic-gate# Use is subject to license terms.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate# cmd/picl/plugins/sun4u/ents/frudr/Makefile
250Sstevel@tonic-gate#
260Sstevel@tonic-gate
270Sstevel@tonic-gateinclude	$(SRC)/Makefile.psm
280Sstevel@tonic-gate
290Sstevel@tonic-gateVERS =		.1
300Sstevel@tonic-gate
310Sstevel@tonic-gate# include library definitions
320Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib
330Sstevel@tonic-gate
340Sstevel@tonic-gateROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-V250
350Sstevel@tonic-gateFRUDR_LINKTO_PLATFORM = SUNW,Sun-Fire-V240
360Sstevel@tonic-gate
370Sstevel@tonic-gateinclude	$(SRC)/cmd/picl/plugins/Makefile.com
380Sstevel@tonic-gate
390Sstevel@tonic-gateROOTLIBDIR	= $(ROOT_PLAT_PLUGINDIR)
400Sstevel@tonic-gate
410Sstevel@tonic-gateCONFS		= fru_PS0.conf fru_PS1.conf
420Sstevel@tonic-gateCONFS		+= fru_HDD0.conf fru_HDD1.conf fru_HDD2.conf
430Sstevel@tonic-gateCONFS		+= fru_HDD3.conf fru_HDD4.conf fru_HDD5.conf
440Sstevel@tonic-gateCONFS		+= fru_HDD6.conf fru_HDD7.conf
450Sstevel@tonic-gateCONFS		+= fru_SC.conf
460Sstevel@tonic-gateCONFS		+= fru_usb-a-1.conf fru_usb-a-2.conf
470Sstevel@tonic-gateCONFS		+= fru_usb-b-1.conf fru_usb-b-2.conf
480Sstevel@tonic-gateROOTCONF=	$(CONFS:%=$(ROOTLIBDIR)/%)
490Sstevel@tonic-gate$(ROOTCONF)	:= FILEMODE = 0644
500Sstevel@tonic-gateMAININFO=	$(CONFS:%.conf=%.info)
510Sstevel@tonic-gateOTHERINFOS	= fru_PS0_data.info fru_PS1_data.info
520Sstevel@tonic-gateOTHERINFOS	+= fru_HDD0_data.info fru_HDD1_data.info
530Sstevel@tonic-gateOTHERINFOS	+= fru_HDD2_data.info fru_HDD3_data.info
540Sstevel@tonic-gateOTHERINFOS	+= fru_HDD4_data.info fru_HDD5_data.info
550Sstevel@tonic-gateOTHERINFOS	+= fru_HDD6_data.info fru_HDD7_data.info
560Sstevel@tonic-gateOTHERINFOS	+= fru_SC_data.info SB-tables.info
570Sstevel@tonic-gateOTHERINFOS	+= fru_usb-a-1_data.info fru_usb-a-2_data.info
580Sstevel@tonic-gateOTHERINFOS	+= fru_usb-b-1_data.info fru_usb-b-2_data.info
590Sstevel@tonic-gate
600Sstevel@tonic-gateCLEANFILES =	$(LINTOUT) $(LINTLIB)
610Sstevel@tonic-gate
620Sstevel@tonic-gate.KEEP_STATE:
630Sstevel@tonic-gate
640Sstevel@tonic-gateall: $(CONFS)
650Sstevel@tonic-gate
660Sstevel@tonic-gateinstall:	all $(ROOTCONF); $(MAKE) $(FRUDR_LINK)
670Sstevel@tonic-gate
680Sstevel@tonic-gate$(CONFS): $(MAININFO) $(OTHERINFOS)
690Sstevel@tonic-gate	@$(RM) -f $@
700Sstevel@tonic-gate	@echo "# Copyright 2003 Sun Microsystems, Inc. " \
710Sstevel@tonic-gate	"All rights reserved." > $@
720Sstevel@tonic-gate	@echo "# Use is subject to license terms." >> $@
730Sstevel@tonic-gate	@echo "# This is a generated file. #ident lines identify sources" >> $@
740Sstevel@tonic-gate	$(CPP) -P $(@:%.conf=%.info) | \
750Sstevel@tonic-gate	$(SED) -e '/^[  ]*$$/d' >> $@
760Sstevel@tonic-gate	@$(CHMOD) 644 $@
770Sstevel@tonic-gate
780Sstevel@tonic-gate_msg: $(MSGDOMAIN)
790Sstevel@tonic-gate
800Sstevel@tonic-gate$(MSGDOMAIN):
810Sstevel@tonic-gate	$(INS.dir)
820Sstevel@tonic-gate
830Sstevel@tonic-gate$(LIBLINKS):	FRC
840Sstevel@tonic-gate	$(RM) $@; $(SYMLINK) $(DYNLIB) $@
850Sstevel@tonic-gate
860Sstevel@tonic-gate# include library targets
870Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ
880Sstevel@tonic-gateinclude	$(SRC)/cmd/picl/plugins/Makefile.targ
890Sstevel@tonic-gate
900Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../%
910Sstevel@tonic-gate	$(INS.file)
920Sstevel@tonic-gate
930Sstevel@tonic-gatelint:
940Sstevel@tonic-gate	@echo "nothing to lint"
950Sstevel@tonic-gate
960Sstevel@tonic-gateFRC:
970Sstevel@tonic-gate
980Sstevel@tonic-gateFRUDR_LINK=`cd $(ROOT_PLATFORM)/lib/picl/plugins/; \
990Sstevel@tonic-gaterm -f libpiclfrudr.so.1; \
1000Sstevel@tonic-gaterm -f libpiclfrudr.so; \
1010Sstevel@tonic-gateln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so.1 libpiclfrudr.so.1; \
1020Sstevel@tonic-gateln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so libpiclfrudr.so;`
103