Makefile revision 06e46062ef4f5f4b687cbafb4518fb123fe23920
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# CDDL HEADER START
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# The contents of this file are subject to the terms of the
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# Common Development and Distribution License (the "License").
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# You may not use this file except in compliance with the License.
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# or http://www.opensolaris.org/os/licensing.
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# See the License for the specific language governing permissions
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# and limitations under the License.
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# When distributing Covered Code, include this CDDL HEADER in each
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# If applicable, add the following below this CDDL HEADER, with the
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# fields enclosed by brackets "[]" replaced with your own identifying
107e00c8104649437b9520d0ba298dba659e7cd7JazzyNico# information: Portions Copyright [yyyy] [name of copyright owner]
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# CDDL HEADER END
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# Use is subject to license terms.
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# ident "%Z%%M% %I% %E% SMI"
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# cmd/picl/plugins/sun4u/boston/frudr/Makefile
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico#
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoinclude $(SRC)/Makefile.psm
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# include library definitions
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNicoinclude $(SRC)/lib/Makefile.lib
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNicoROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-V445
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNicoFRUDR_LINKTO_PLATFORM = SUNW,Sun-Fire-V240
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoinclude $(SRC)/cmd/picl/plugins/Makefile.com
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoROOTLIBDIR := OWNER = root
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoROOTLIBDIR := GROUP = sys
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoCONFS = fru_PSU0.conf fru_PSU1.conf fru_PSU2.conf fru_PSU3.conf
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoCONFS += fru_HDD0.conf fru_HDD1.conf fru_HDD2.conf
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoCONFS += fru_HDD3.conf fru_HDD4.conf fru_HDD5.conf
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoCONFS += fru_HDD6.conf fru_HDD7.conf
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoCONFS += fru_SC.conf
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoCONFS += fru_usb-a-1.conf fru_usb-a-2.conf
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoCONFS += fru_usb-a-3.conf fru_usb-a-4.conf
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoROOTCONF= $(CONFS:%=$(ROOTLIBDIR)/%)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico$(ROOTCONF) := FILEMODE = 0644
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoMAININFO= $(CONFS:%.conf=%.info)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoOTHERINFOS = fru_PSU0_data.info fru_PSU1_data.info fru_PSU2_data.info fru_PSU3_data.info
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoOTHERINFOS += fru_HDD0_data.info fru_HDD1_data.info
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoOTHERINFOS += fru_HDD2_data.info fru_HDD3_data.info
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoOTHERINFOS += fru_HDD3_data.info fru_HDD4_data.info
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoOTHERINFOS += fru_HDD6_data.info fru_HDD7_data.info
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoOTHERINFOS += fru_SC_data.info SB-tables.info
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoOTHERINFOS += fru_usb-a-1_data.info fru_usb-a-2_data.info
3626239912f1d2e7effe313bd1fab54e10364f09Johan B. C. EngelenOTHERINFOS += fru_usb-a-3_data.info fru_usb-a-4_data.info
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoROOTLINTDIR = $(ROOTLIBDIR)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico.KEEP_STATE:
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoSUBDIRS =
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoall := TARGET= all
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoinstall := TARGET= install
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoclean := TARGET= clean
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoclobber := TARGET= clobber
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicolint := TARGET= lint
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoall: $(LIBS) $(LIBLINKS) $(CONFS)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoinstall: $(ROOTLIBDIR) $(ROOTCONF) $(FRUDR_LINK)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico $(MAKE) $(FRUDR_LINK)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico$(CONFS): $(MAININFO) $(OTHERINFOS)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico @$(RM) -f $@
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico @echo "# Copyright 2005 Sun Microsystems, Inc. All rights reserved." \
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico > $@
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico @echo "# Use is subject to license terms." >> $@
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico @echo "# This is a generated file. #ident lines identify sources" >> $@
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico $(CPP) -P $(@:%.conf=%.info) | \
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico $(SED) -e '/^[ ]*$$/d' >> $@
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico @$(CHMOD) 644 $@
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico# include library targets
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoinclude $(SRC)/lib/Makefile.targ
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoinclude $(SRC)/cmd/picl/plugins/Makefile.targ
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico$(ROOTLINTDIR)/%: ../%
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico $(INS.file)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicolint:
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico$(SUBDIRS): FRC
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico @cd $@; pwd; $(MAKE) $(TARGET)
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoFRC:
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoFRUDR_LINK=`cd $(ROOT_PLATFORM)/lib/picl/plugins/; \
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicorm -f libpiclfrudr.so.1; \
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicorm -f libpiclfrudr.so; \
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so.1 libpiclfrudr.so.1; \
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNicoln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so libpiclfrudr.so;`
20e9b1f7cd4a3104e934c17ed5536a259054ad84JazzyNico