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# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28# cmd/picl/plugins/sun4u/ents/frudr/Makefile 29# 30 31include $(SRC)/Makefile.psm 32 33VERS = .1 34 35# include library definitions 36include $(SRC)/lib/Makefile.lib 37 38ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-V250 39FRUDR_LINKTO_PLATFORM = SUNW,Sun-Fire-V240 40 41include $(SRC)/cmd/picl/plugins/Makefile.com 42 43ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR) 44ROOTLIBDIR := OWNER = root 45ROOTLIBDIR := GROUP = sys 46 47CONFS = fru_PS0.conf fru_PS1.conf 48CONFS += fru_HDD0.conf fru_HDD1.conf fru_HDD2.conf 49CONFS += fru_HDD3.conf fru_HDD4.conf fru_HDD5.conf 50CONFS += fru_HDD6.conf fru_HDD7.conf 51CONFS += fru_SC.conf 52CONFS += fru_usb-a-1.conf fru_usb-a-2.conf 53CONFS += fru_usb-b-1.conf fru_usb-b-2.conf 54ROOTCONF= $(CONFS:%=$(ROOTLIBDIR)/%) 55$(ROOTCONF) := FILEMODE = 0644 56MAININFO= $(CONFS:%.conf=%.info) 57OTHERINFOS = fru_PS0_data.info fru_PS1_data.info 58OTHERINFOS += fru_HDD0_data.info fru_HDD1_data.info 59OTHERINFOS += fru_HDD2_data.info fru_HDD3_data.info 60OTHERINFOS += fru_HDD4_data.info fru_HDD5_data.info 61OTHERINFOS += fru_HDD6_data.info fru_HDD7_data.info 62OTHERINFOS += fru_SC_data.info SB-tables.info 63OTHERINFOS += fru_usb-a-1_data.info fru_usb-a-2_data.info 64OTHERINFOS += fru_usb-b-1_data.info fru_usb-b-2_data.info 65 66CLEANFILES = $(LINTOUT) $(LINTLIB) 67 68.KEEP_STATE: 69 70all: $(CONFS) 71 72install: all $(ROOTCONF); $(MAKE) $(FRUDR_LINK) 73 74$(CONFS): $(MAININFO) $(OTHERINFOS) 75 @$(RM) -f $@ 76 @echo "# Copyright 2003 Sun Microsystems, Inc. " \ 77 "All rights reserved." > $@ 78 @echo "# Use is subject to license terms." >> $@ 79 @echo "# This is a generated file. #ident lines identify sources" >> $@ 80 $(CPP) -P $(@:%.conf=%.info) | \ 81 $(SED) -e '/^[ ]*$$/d' >> $@ 82 @$(CHMOD) 644 $@ 83 84_msg: $(MSGDOMAIN) 85 86$(MSGDOMAIN): 87 $(INS.dir) 88 89$(LIBLINKS): FRC 90 $(RM) $@; $(SYMLINK) $(DYNLIB) $@ 91 92# include library targets 93include $(SRC)/lib/Makefile.targ 94include $(SRC)/cmd/picl/plugins/Makefile.targ 95 96$(ROOTLINTDIR)/%: ../% 97 $(INS.file) 98 99lint: 100 @echo "nothing to lint" 101 102FRC: 103 104FRUDR_LINK=`cd $(ROOT_PLATFORM)/lib/picl/plugins/; \ 105rm -f libpiclfrudr.so.1; \ 106rm -f libpiclfrudr.so; \ 107ln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so.1 libpiclfrudr.so.1; \ 108ln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so libpiclfrudr.so;` 109