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/lib/fruaccess/Makefile 260Sstevel@tonic-gate# 270Sstevel@tonic-gateLIBRARY= libfruaccess.a 280Sstevel@tonic-gateVERS= .1 290Sstevel@tonic-gateOBJECTS= fru_access.o cvrt_spd_data.o crcutils.o crcmodel.o 300Sstevel@tonic-gate 310Sstevel@tonic-gate# include library definitions 320Sstevel@tonic-gateinclude $(SRC)/Makefile.psm 330Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib 340Sstevel@tonic-gate 350Sstevel@tonic-gateROOT_PLATFORM = $(USR_PLAT_DIR)/sun4u 360Sstevel@tonic-gate 370Sstevel@tonic-gateinclude $(SRC)/cmd/picl/plugins/Makefile.com 380Sstevel@tonic-gate 390Sstevel@tonic-gateSRCS= $(OBJECTS:%.o=%.c) 400Sstevel@tonic-gate 410Sstevel@tonic-gateLIBS= $(DYNLIB) 420Sstevel@tonic-gate 430Sstevel@tonic-gateROOTLIBDIR = $(ROOT_PLATFORM)/lib 440Sstevel@tonic-gate 450Sstevel@tonic-gateCONF = fru_container.conf 460Sstevel@tonic-gateROOTCONF= $(CONF:%=$(ROOTLIBDIR)/%) 470Sstevel@tonic-gate$(ROOTCONF) := FILEMODE = 0644 480Sstevel@tonic-gate 490Sstevel@tonic-gate 500Sstevel@tonic-gateCLEANFILES= $(LINTOUT) $(LINTLIB) 510Sstevel@tonic-gateCLOBBERFILES += $(LIBLINKS) 520Sstevel@tonic-gateCSTYLE = cstyle -p -P 530Sstevel@tonic-gateHDRCHK = hdrchk 540Sstevel@tonic-gate 550Sstevel@tonic-gate 560Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/lib/libfru/include 570Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/lib/libfruutils/ 580Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) -DBIG_ENDIAN 590Sstevel@tonic-gateLDLIBS += -L$(SRC)/lib/libfruutils/$(MACH) 600Sstevel@tonic-gateLDLIBS += -lc -lpicltree -lfruutils 610Sstevel@tonic-gateLDLIBS += -ldevinfo 620Sstevel@tonic-gateLDLIBS += -Wl,-f/opt/SUNWSMS/lib/$(DYNLIBPSR) # SMS before platform 630Sstevel@tonic-gateLDLIBS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR) 640Sstevel@tonic-gate 650Sstevel@tonic-gate.KEEP_STATE: 660Sstevel@tonic-gate 670Sstevel@tonic-gate 680Sstevel@tonic-gateSUBDIRS= 690Sstevel@tonic-gate 700Sstevel@tonic-gateall := TARGET= all 710Sstevel@tonic-gateinstall := TARGET= install 720Sstevel@tonic-gateclean := TARGET= clean 730Sstevel@tonic-gateclobber := TARGET= clobber 740Sstevel@tonic-gatelint := TARGET= lint 750Sstevel@tonic-gate_msg := TARGET= _msg 760Sstevel@tonic-gate 770Sstevel@tonic-gateLN = ln -s 780Sstevel@tonic-gate 790Sstevel@tonic-gatePOFILE= $(LIBRARY:.a=.po) 800Sstevel@tonic-gate 810Sstevel@tonic-gateall: $(DYNLIB) $(LIBLINKS) $(CONF) 820Sstevel@tonic-gate 830Sstevel@tonic-gateinstall: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF) 840Sstevel@tonic-gate 850Sstevel@tonic-gate_msg: $(MSGDOMAIN) $(POFILE) 860Sstevel@tonic-gate $(RM) $(MSGDOMAIN)/$(POFILE) 870Sstevel@tonic-gate $(CP) $(POFILE) $(MSGDOMAIN) 880Sstevel@tonic-gate 890Sstevel@tonic-gate$(POFILE): 900Sstevel@tonic-gate $(RM) $@ messages.po 910Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]* 920Sstevel@tonic-gate $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 930Sstevel@tonic-gate $(RM) messages.po 940Sstevel@tonic-gate 950Sstevel@tonic-gate$(MSGDOMAIN): 960Sstevel@tonic-gate $(INS.dir) 970Sstevel@tonic-gate 980Sstevel@tonic-gate$(LIBLINKS): FRC 990Sstevel@tonic-gate $(RM) $@; $(SYMLINK) $(DYNLIB) $@ 1000Sstevel@tonic-gate 1010Sstevel@tonic-gatecheck-style: 1020Sstevel@tonic-gate $(CSTYLE) *.cc *.c *.h 1030Sstevel@tonic-gate $(HDRCHK) *.h 1040Sstevel@tonic-gate 1050Sstevel@tonic-gate# include library targets 1060Sstevel@tonic-gateinclude $(SRC)/cmd/picl/plugins/Makefile.targ 1070Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ 1080Sstevel@tonic-gate 1090Sstevel@tonic-gatelint : 1100Sstevel@tonic-gate $(LINT.c) -m $(SRCS) 1110Sstevel@tonic-gate 1120Sstevel@tonic-gate$(SUBDIRS): FRC 1130Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1140Sstevel@tonic-gate 1150Sstevel@tonic-gateFRC: 116