1*6bbe0590SSundeep Panicker# 2*6bbe0590SSundeep Panicker# CDDL HEADER START 3*6bbe0590SSundeep Panicker# 4*6bbe0590SSundeep Panicker# The contents of this file are subject to the terms of the 5*6bbe0590SSundeep Panicker# Common Development and Distribution License (the "License"). 6*6bbe0590SSundeep Panicker# You may not use this file except in compliance with the License. 7*6bbe0590SSundeep Panicker# 8*6bbe0590SSundeep Panicker# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*6bbe0590SSundeep Panicker# or http://www.opensolaris.org/os/licensing. 10*6bbe0590SSundeep Panicker# See the License for the specific language governing permissions 11*6bbe0590SSundeep Panicker# and limitations under the License. 12*6bbe0590SSundeep Panicker# 13*6bbe0590SSundeep Panicker# When distributing Covered Code, include this CDDL HEADER in each 14*6bbe0590SSundeep Panicker# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*6bbe0590SSundeep Panicker# If applicable, add the following below this CDDL HEADER, with the 16*6bbe0590SSundeep Panicker# fields enclosed by brackets "[]" replaced with your own identifying 17*6bbe0590SSundeep Panicker# information: Portions Copyright [yyyy] [name of copyright owner] 18*6bbe0590SSundeep Panicker# 19*6bbe0590SSundeep Panicker# CDDL HEADER END 20*6bbe0590SSundeep Panicker# 21*6bbe0590SSundeep Panicker# 22*6bbe0590SSundeep Panicker# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*6bbe0590SSundeep Panicker# Use is subject to license terms. 24*6bbe0590SSundeep Panicker# 25*6bbe0590SSundeep Panicker 26*6bbe0590SSundeep PanickerLIBRARY= libfruraw.a 27*6bbe0590SSundeep PanickerVERS= .1 28*6bbe0590SSundeep Panicker 29*6bbe0590SSundeep PanickerOBJECTS= fruraw.o raw_access.o crcmodel.o crcutils.o 30*6bbe0590SSundeep Panicker 31*6bbe0590SSundeep Panicker# include library definitions 32*6bbe0590SSundeep Panickerinclude $(SRC)/lib/Makefile.lib 33*6bbe0590SSundeep Panicker 34*6bbe0590SSundeep PanickerCLOBBERFILES += $(LIBLINKS) 35*6bbe0590SSundeep Panicker 36*6bbe0590SSundeep PanickerLIBS = $(DYNLIB) 37*6bbe0590SSundeep Panicker 38*6bbe0590SSundeep PanickerMAPFILES = 39*6bbe0590SSundeep Panicker 40*6bbe0590SSundeep PanickerLINTFLAGS = -uxn 41*6bbe0590SSundeep PanickerLINTFLAGS64 = $(LINTFLAGS) -m64 42*6bbe0590SSundeep PanickerLINTOUT= lint.out 43*6bbe0590SSundeep PanickerLINTSRC = $(LINTLIB:%.ln=%) 44*6bbe0590SSundeep PanickerROOTLINTDIR = $(ROOTLIBDIR) 45*6bbe0590SSundeep PanickerROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%) 46*6bbe0590SSundeep Panicker 47*6bbe0590SSundeep PanickerCLEANFILES= $(LINTOUT) 48*6bbe0590SSundeep Panicker 49*6bbe0590SSundeep PanickerCPPFLAGS += -I.. \ 50*6bbe0590SSundeep Panicker -I$(SRC)/lib/libfru/include \ 51*6bbe0590SSundeep Panicker -I$(SRC)/lib/libfruutils 52*6bbe0590SSundeep PanickerCPPFLAGS += -D_REENTRANT 53*6bbe0590SSundeep PanickerCFLAGS += $(CCVERBOSE) 54*6bbe0590SSundeep Panicker 55*6bbe0590SSundeep Panicker$(LINTLIB) := LINTFLAGS = -nvx -I.. 56*6bbe0590SSundeep Panicker$(LINTLIB) := LINTFLAGS64 = -nvx -m64 -I.. 57*6bbe0590SSundeep Panicker 58*6bbe0590SSundeep PanickerXGETFLAGS += -a 59*6bbe0590SSundeep PanickerPOFILE= picl.po 60*6bbe0590SSundeep Panicker 61*6bbe0590SSundeep Panicker.KEEP_STATE: 62*6bbe0590SSundeep Panicker 63*6bbe0590SSundeep Panickerall : $(LIBS) 64*6bbe0590SSundeep Panicker chmod 755 $(DYNLIB) 65*6bbe0590SSundeep Panicker 66*6bbe0590SSundeep Panickerlint : lintcheck 67*6bbe0590SSundeep Panicker 68*6bbe0590SSundeep Panicker%.po: ../%.c 69*6bbe0590SSundeep Panicker $(CP) $< $<.i 70*6bbe0590SSundeep Panicker $(BUILD.po) 71*6bbe0590SSundeep Panicker 72*6bbe0590SSundeep Panicker_msg: $(MSGDOMAIN) $(POFILE) 73*6bbe0590SSundeep Panicker $(RM) $(MSGDOMAIN)/$(POFILE) 74*6bbe0590SSundeep Panicker $(CP) $(POFILE) $(MSGDOMAIN) 75*6bbe0590SSundeep Panicker 76*6bbe0590SSundeep Panicker# include library targets 77*6bbe0590SSundeep Panickerinclude $(SRC)/lib/Makefile.targ 78*6bbe0590SSundeep Panicker 79*6bbe0590SSundeep Panickerpics/%.o: ../%.c 80*6bbe0590SSundeep Panicker $(COMPILE.c) -o $@ $< 81*6bbe0590SSundeep Panicker $(POST_PROCESS_O) 82*6bbe0590SSundeep Panicker 83*6bbe0590SSundeep Panicker$(ROOTLINTDIR)/%: ../% 84*6bbe0590SSundeep Panicker $(INS.file) 85