Makefile revision 8326d453818c9fb78ac1670cf49d26fa4da15003
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# CDDL HEADER START
054900ab42a8b865a2257f94c66484e0a022a90cLukas Slebodnik#
054900ab42a8b865a2257f94c66484e0a022a90cLukas Slebodnik# The contents of this file are subject to the terms of the
054900ab42a8b865a2257f94c66484e0a022a90cLukas Slebodnik# Common Development and Distribution License (the "License").
054900ab42a8b865a2257f94c66484e0a022a90cLukas Slebodnik# You may not use this file except in compliance with the License.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# or http://www.opensolaris.org/os/licensing.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# See the License for the specific language governing permissions
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# and limitations under the License.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# When distributing Covered Code, include this CDDL HEADER in each
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# If applicable, add the following below this CDDL HEADER, with the
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# fields enclosed by brackets "[]" replaced with your own identifying
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# information: Portions Copyright [yyyy] [name of copyright owner]
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# CDDL HEADER END
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# Use is subject to license terms.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# ident "%Z%%M% %I% %E% SMI"
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# cmd/picl/plugins/sun4u/boston/frudr/Makefile
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekinclude $(SRC)/Makefile.psm
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek# include library definitions
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekinclude $(SRC)/lib/Makefile.lib
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-V445
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekFRUDR_LINKTO_PLATFORM = SUNW,Sun-Fire-V240
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekinclude $(SRC)/cmd/picl/plugins/Makefile.com
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekROOTLIBDIR := OWNER = root
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekROOTLIBDIR := GROUP = sys
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekCONFS = fru_PS0.conf fru_PS1.conf fru_PS2.conf fru_PS3.conf
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekCONFS += fru_HDD0.conf fru_HDD1.conf fru_HDD2.conf
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekCONFS += fru_HDD3.conf fru_HDD4.conf fru_HDD5.conf
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekCONFS += fru_HDD6.conf fru_HDD7.conf
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekCONFS += fru_SC.conf
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekCONFS += fru_usb-a-1.conf fru_usb-a-2.conf
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekCONFS += fru_usb-a-3.conf fru_usb-a-4.conf
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekCONFS += fru_FT0.conf fru_FT1.conf fru_FT2.conf
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekCONFS += fru_FT3.conf fru_FT4.conf fru_FT5.conf
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekROOTCONF= $(CONFS:%=$(ROOTLIBDIR)/%)
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek$(ROOTCONF) := FILEMODE = 0644
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekMAININFO= $(CONFS:%.conf=%.info)
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS = fru_PS0_data.info fru_PS1_data.info fru_PS2_data.info fru_PS3_data.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS += fru_HDD0_data.info fru_HDD1_data.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS += fru_HDD2_data.info fru_HDD3_data.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS += fru_HDD3_data.info fru_HDD4_data.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS += fru_HDD6_data.info fru_HDD7_data.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS += fru_SC_data.info SB-tables.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS += fru_usb-a-1_data.info fru_usb-a-2_data.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS += fru_usb-a-3_data.info fru_usb-a-4_data.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS += fru_FT0_data.info fru_FT1_data.info fru_FT2_data.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekOTHERINFOS += fru_FT3_data.info fru_FT4_data.info fru_FT5_data.info
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub HrozekROOTLINTDIR = $(ROOTLIBDIR)
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek.KEEP_STATE:
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub HrozekSUBDIRS =
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekall := TARGET= all
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekinstall := TARGET= install
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekclean := TARGET= clean
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekclobber := TARGET= clobber
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozeklint := TARGET= lint
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekall: $(LIBS) $(LIBLINKS) $(CONFS)
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekinstall: $(ROOTLIBDIR) $(ROOTCONF) $(FRUDR_LINK)
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek $(MAKE) $(FRUDR_LINK)
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek$(CONFS): $(MAININFO) $(OTHERINFOS)
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek @$(RM) -f $@
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek @echo "# Copyright 2006 Sun Microsystems, Inc. All rights reserved." \
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek > $@
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek @echo "# Use is subject to license terms." >> $@
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek @echo "# This is a generated file. #ident lines identify sources" >> $@
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek $(CPP) -P $(@:%.conf=%.info) | \
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek $(SED) -e '/^[ ]*$$/d' >> $@
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek @$(CHMOD) 644 $@
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek# include library targets
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekinclude $(SRC)/lib/Makefile.targ
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekinclude $(SRC)/cmd/picl/plugins/Makefile.targ
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek$(ROOTLINTDIR)/%: ../%
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek $(INS.file)
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozeklint:
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek$(SUBDIRS): FRC
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek @cd $@; pwd; $(MAKE) $(TARGET)
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub HrozekFRC:
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub HrozekFRUDR_LINK=`cd $(ROOT_PLATFORM)/lib/picl/plugins/; \
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekrm -f libpiclfrudr.so.1; \
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekrm -f libpiclfrudr.so; \
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so.1 libpiclfrudr.so.1; \
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so libpiclfrudr.so;`
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek