Makefile revision 06e46062ef4f5f4b687cbafb4518fb123fe23920
1332N/A#
1332N/A# CDDL HEADER START
1332N/A#
1332N/A# The contents of this file are subject to the terms of the
1332N/A# Common Development and Distribution License (the "License").
1332N/A# You may not use this file except in compliance with the License.
1332N/A#
1332N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1332N/A# or http://www.opensolaris.org/os/licensing.
1332N/A# See the License for the specific language governing permissions
1332N/A# and limitations under the License.
1332N/A#
1332N/A# When distributing Covered Code, include this CDDL HEADER in each
1332N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1332N/A# If applicable, add the following below this CDDL HEADER, with the
1332N/A# fields enclosed by brackets "[]" replaced with your own identifying
1332N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1332N/A#
1332N/A# CDDL HEADER END
1332N/A#
1332N/A
1332N/A#
3817N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
1332N/A# Use is subject to license terms.
1332N/A#
1332N/A
1332N/A#
1332N/A# ident "%Z%%M% %I% %E% SMI"
1332N/A#
1332N/A# cmd/picl/plugins/sun4u/seattle/frudr/Makefile
1332N/A#
1332N/A
1332N/Ainclude $(SRC)/Makefile.psm
1332N/A
1332N/AVERS = .1
1332N/A
1332N/A# include library definitions
2899N/Ainclude $(SRC)/lib/Makefile.lib
2899N/A
2818N/AROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-V215
2899N/AFRUDR_LINKTO_PLATFORM = SUNW,Sun-Fire-V240
2818N/A
3817N/Ainclude $(SRC)/cmd/picl/plugins/Makefile.com
3817N/A
3817N/AROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
1332N/AROOTLIBDIR := OWNER = root
3497N/AROOTLIBDIR := GROUP = sys
3497N/A
3497N/ACONFS = fru_PS0.conf fru_PS1.conf
3497N/ACONFS += fru_HDD0.conf fru_HDD1.conf
3497N/ACONFS += fru_HDD2.conf fru_HDD3.conf
2367N/ACONFS += fru_SC.conf
2367N/ACONFS += fru_usb-a-1.conf fru_usb-a-2.conf
2367N/ACONFS += fru_usb-a-3.conf fru_usb-a-4.conf
2367N/AROOTCONF= $(CONFS:%=$(ROOTLIBDIR)/%)
1938N/A$(ROOTCONF) := FILEMODE = 0644
1938N/AMAININFO= $(CONFS:%.conf=%.info)
1332N/AOTHERINFOS = fru_PS0_data.info fru_PS1_data.info
2367N/AOTHERINFOS += fru_HDD0_data.info fru_HDD1_data.info
1332N/AOTHERINFOS += fru_HDD2_data.info fru_HDD3_data.info
2367N/AOTHERINFOS += fru_SC_data.info SB-tables.info
1332N/AOTHERINFOS += fru_usb-a-1_data.info fru_usb-a-2_data.info
1332N/AOTHERINFOS += fru_usb-a-3_data.info fru_usb-a-4_data.info
1332N/A
1332N/ACLEANFILES = $(LINTOUT) $(LINTLIB)
3817N/A
3817N/A.KEEP_STATE:
3817N/A
3817N/Aall: $(CONFS)
3817N/A
install: all $(ROOTCONF); $(MAKE) $(FRUDR_LINK)
$(CONFS): $(MAININFO) $(OTHERINFOS)
@$(RM) -f $@
@echo "# Copyright 2005 Sun Microsystems, Inc. " \
"All rights reserved." > $@
@echo "# Use is subject to license terms." >> $@
@echo "# This is a generated file. #ident lines identify sources" >> $@
$(CPP) -P $(@:%.conf=%.info) | \
$(SED) -e '/^[ ]*$$/d' >> $@
@$(CHMOD) 644 $@
$(LIBLINKS): FRC
$(RM) $@; $(SYMLINK) $(DYNLIB) $@
# include library targets
include $(SRC)/lib/Makefile.targ
include $(SRC)/cmd/picl/plugins/Makefile.targ
$(ROOTLINTDIR)/%: ../%
$(INS.file)
lint:
@echo "nothing to lint"
FRC:
FRUDR_LINK=`cd $(ROOT_PLATFORM)/lib/picl/plugins/; \
rm -f libpiclfrudr.so.1; \
rm -f libpiclfrudr.so; \
ln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so.1 libpiclfrudr.so.1; \
ln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so libpiclfrudr.so;`