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# 210Sstevel@tonic-gate# 22*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/Makefile 260Sstevel@tonic-gate# 270Sstevel@tonic-gate 280Sstevel@tonic-gateLIBRARY= libfruaccess.a 290Sstevel@tonic-gateVERS= .1 300Sstevel@tonic-gate 310Sstevel@tonic-gateOBJECTS= libfruaccess.o piclsmc.o piclsdr.o piclfruaccess_platmod.o \ 320Sstevel@tonic-gate crcutils.o crcmodel.o 330Sstevel@tonic-gate 340Sstevel@tonic-gate# include library definitions 350Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib 360Sstevel@tonic-gateinclude $(SRC)/Makefile.psm 370Sstevel@tonic-gateinclude $(SRC)/cmd/picl/plugins/Makefile.com 380Sstevel@tonic-gate 390Sstevel@tonic-gateROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Netra-CP2300 400Sstevel@tonic-gate 410Sstevel@tonic-gateSRCS= libfruaccess.c piclsmc.c piclsdr.c piclfruaccess_platmod.c\ 420Sstevel@tonic-gate ../../../lib/fruaccess/crcutils.c \ 430Sstevel@tonic-gate ../../../lib/fruaccess/crcmodel.c 440Sstevel@tonic-gate 450Sstevel@tonic-gateSRCDIR= ../../../lib/fruaccess/. 460Sstevel@tonic-gate 470Sstevel@tonic-gateLIBS = $(DYNLIB) 480Sstevel@tonic-gate 490Sstevel@tonic-gateCLEANFILES= $(LINTOUT) $(LINTLIB) 500Sstevel@tonic-gate 510Sstevel@tonic-gateROOTLIBDIR = $(ROOT_PLAT_LIBDIR) 520Sstevel@tonic-gate 530Sstevel@tonic-gateLINTSRC = $(LINTLIB:%.ln=%) 540Sstevel@tonic-gateROOTLINTDIR = $(ROOTLIBDIR) 550Sstevel@tonic-gateROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%) 560Sstevel@tonic-gate 570Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 580Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/uts/sun4u/sys 590Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/cmd/picl/plugins/sun4u/lib/fruaccess 600Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/lib/libfruutils 610Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/lib/libfru/include 620Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc 630Sstevel@tonic-gate 640Sstevel@tonic-gateLDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH) 650Sstevel@tonic-gateLDLIBS += -L $(ROOT)/usr/platform/SUNW,Netra-CP2300/lib 660Sstevel@tonic-gateLDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc 670Sstevel@tonic-gateLDLIBS += -R/usr/platform/sun4u/lib 680Sstevel@tonic-gateLDLIBS += -R/usr/platform/SUNW,Netra-CP2300/lib 690Sstevel@tonic-gateLDLIBS += -lc -lpicltree -lfruutils -lctsmc 700Sstevel@tonic-gate 710Sstevel@tonic-gate.KEEP_STATE: 720Sstevel@tonic-gate 730Sstevel@tonic-gateSUBDIRS= 740Sstevel@tonic-gate 750Sstevel@tonic-gateall := TARGET= all 760Sstevel@tonic-gateinstall := TARGET= install 770Sstevel@tonic-gateclean := TARGET= clean 780Sstevel@tonic-gateclobber := TARGET= clobber 790Sstevel@tonic-gatelint := TARGET= lint 800Sstevel@tonic-gate_msg := TARGET= _msg 810Sstevel@tonic-gate 820Sstevel@tonic-gateall: $(LIBS) $(LIBLINKS) 830Sstevel@tonic-gate 840Sstevel@tonic-gateinstall:$(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) 850Sstevel@tonic-gate 860Sstevel@tonic-gate$(LIBLINKS): FRC 870Sstevel@tonic-gate $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS) 880Sstevel@tonic-gate 890Sstevel@tonic-gate_msg: 900Sstevel@tonic-gate 910Sstevel@tonic-gate# include library targets 920Sstevel@tonic-gateinclude $(SRC)/cmd/picl/plugins/Makefile.targ 930Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ 940Sstevel@tonic-gate 950Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../% 960Sstevel@tonic-gate $(INS.file) 970Sstevel@tonic-gate 980Sstevel@tonic-gatelint : 990Sstevel@tonic-gate $(LINT.c) $(SRCS) 1000Sstevel@tonic-gate 1010Sstevel@tonic-gate$(SUBDIRS): FRC 1020Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1030Sstevel@tonic-gate 1040Sstevel@tonic-gateFRC: 105