16bbe0590SSundeep Panicker# 26bbe0590SSundeep Panicker# CDDL HEADER START 36bbe0590SSundeep Panicker# 46bbe0590SSundeep Panicker# The contents of this file are subject to the terms of the 56bbe0590SSundeep Panicker# Common Development and Distribution License (the "License"). 66bbe0590SSundeep Panicker# You may not use this file except in compliance with the License. 76bbe0590SSundeep Panicker# 86bbe0590SSundeep Panicker# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 96bbe0590SSundeep Panicker# or http://www.opensolaris.org/os/licensing. 106bbe0590SSundeep Panicker# See the License for the specific language governing permissions 116bbe0590SSundeep Panicker# and limitations under the License. 126bbe0590SSundeep Panicker# 136bbe0590SSundeep Panicker# When distributing Covered Code, include this CDDL HEADER in each 146bbe0590SSundeep Panicker# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 156bbe0590SSundeep Panicker# If applicable, add the following below this CDDL HEADER, with the 166bbe0590SSundeep Panicker# fields enclosed by brackets "[]" replaced with your own identifying 176bbe0590SSundeep Panicker# information: Portions Copyright [yyyy] [name of copyright owner] 186bbe0590SSundeep Panicker# 196bbe0590SSundeep Panicker# CDDL HEADER END 206bbe0590SSundeep Panicker# 216bbe0590SSundeep Panicker# 226bbe0590SSundeep Panicker# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 236bbe0590SSundeep Panicker# Use is subject to license terms. 246bbe0590SSundeep Panicker# 256bbe0590SSundeep Panicker 266bbe0590SSundeep PanickerLIBRARY= libfruraw.a 276bbe0590SSundeep PanickerVERS= .1 286bbe0590SSundeep Panicker 296bbe0590SSundeep PanickerOBJECTS= fruraw.o raw_access.o crcmodel.o crcutils.o 306bbe0590SSundeep Panicker 316bbe0590SSundeep Panicker# include library definitions 326bbe0590SSundeep Panickerinclude $(SRC)/lib/Makefile.lib 336bbe0590SSundeep Panicker 346bbe0590SSundeep PanickerCLOBBERFILES += $(LIBLINKS) 356bbe0590SSundeep Panicker 366bbe0590SSundeep PanickerLIBS = $(DYNLIB) 376bbe0590SSundeep Panicker 386bbe0590SSundeep PanickerMAPFILES = 396bbe0590SSundeep Panicker 406bbe0590SSundeep PanickerLINTFLAGS = -uxn 416bbe0590SSundeep PanickerLINTFLAGS64 = $(LINTFLAGS) -m64 426bbe0590SSundeep PanickerLINTOUT= lint.out 436bbe0590SSundeep PanickerLINTSRC = $(LINTLIB:%.ln=%) 446bbe0590SSundeep PanickerROOTLINTDIR = $(ROOTLIBDIR) 456bbe0590SSundeep PanickerROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%) 466bbe0590SSundeep Panicker 476bbe0590SSundeep PanickerCLEANFILES= $(LINTOUT) 486bbe0590SSundeep Panicker 496bbe0590SSundeep PanickerCPPFLAGS += -I.. \ 506bbe0590SSundeep Panicker -I$(SRC)/lib/libfru/include \ 516bbe0590SSundeep Panicker -I$(SRC)/lib/libfruutils 526bbe0590SSundeep PanickerCPPFLAGS += -D_REENTRANT 536bbe0590SSundeep PanickerCFLAGS += $(CCVERBOSE) 546bbe0590SSundeep Panicker 55*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 56*7014882cSRichard Lowe 576bbe0590SSundeep Panicker$(LINTLIB) := LINTFLAGS = -nvx -I.. 586bbe0590SSundeep Panicker$(LINTLIB) := LINTFLAGS64 = -nvx -m64 -I.. 596bbe0590SSundeep Panicker 606bbe0590SSundeep PanickerXGETFLAGS += -a 616bbe0590SSundeep PanickerPOFILE= picl.po 626bbe0590SSundeep Panicker 636bbe0590SSundeep Panicker.KEEP_STATE: 646bbe0590SSundeep Panicker 656bbe0590SSundeep Panickerall : $(LIBS) 666bbe0590SSundeep Panicker chmod 755 $(DYNLIB) 676bbe0590SSundeep Panicker 686bbe0590SSundeep Panickerlint : lintcheck 696bbe0590SSundeep Panicker 706bbe0590SSundeep Panicker%.po: ../%.c 716bbe0590SSundeep Panicker $(CP) $< $<.i 726bbe0590SSundeep Panicker $(BUILD.po) 736bbe0590SSundeep Panicker 746bbe0590SSundeep Panicker_msg: $(MSGDOMAIN) $(POFILE) 756bbe0590SSundeep Panicker $(RM) $(MSGDOMAIN)/$(POFILE) 766bbe0590SSundeep Panicker $(CP) $(POFILE) $(MSGDOMAIN) 776bbe0590SSundeep Panicker 786bbe0590SSundeep Panicker# include library targets 796bbe0590SSundeep Panickerinclude $(SRC)/lib/Makefile.targ 806bbe0590SSundeep Panicker 816bbe0590SSundeep Panickerpics/%.o: ../%.c 826bbe0590SSundeep Panicker $(COMPILE.c) -o $@ $< 836bbe0590SSundeep Panicker $(POST_PROCESS_O) 846bbe0590SSundeep Panicker 856bbe0590SSundeep Panicker$(ROOTLINTDIR)/%: ../% 866bbe0590SSundeep Panicker $(INS.file) 87