Makefile.com revision 7014882c6a3672fd0e5d60200af8643ae53c5928
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# CDDL HEADER START
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# The contents of this file are subject to the terms of the
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Common Development and Distribution License (the "License").
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# You may not use this file except in compliance with the License.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# or http://www.opensolaris.org/os/licensing.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# See the License for the specific language governing permissions
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# and limitations under the License.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# When distributing Covered Code, include this CDDL HEADER in each
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# If applicable, add the following below this CDDL HEADER, with the
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# fields enclosed by brackets "[]" replaced with your own identifying
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# information: Portions Copyright [yyyy] [name of copyright owner]
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# CDDL HEADER END
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Use is subject to license terms.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerLIBRARY= libnvfru.a
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerVERS= .1
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerOBJECTS= nvfru.o
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# include library definitions
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panickerinclude $(SRC)/lib/Makefile.lib
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCLOBBERFILES += $(LIBLINKS)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerLIBS = $(DYNLIB)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerLINTFLAGS = -uxn
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerLINTFLAGS64 = $(LINTFLAGS) -m64
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerLINTOUT= lint.out
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerLINTSRC = $(LINTLIB:%.ln=%)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerROOTLINTDIR = $(ROOTLIBDIR)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCLEANFILES= $(LINTOUT)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCPPFLAGS += -I.. \
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker -I$(SRC)/lib/libfru/include \
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker -I$(SRC)/lib/libfruutils
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCPPFLAGS += -D_REENTRANT
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCFLAGS += $(CCVERBOSE)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker$(LINTLIB) := LINTFLAGS = -nvx -I..
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker$(LINTLIB) := LINTFLAGS64 = -nvx -m64 -I..
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerXGETFLAGS += -a
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker.KEEP_STATE:
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panickerall : $(LIBS)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panickerlint : lintcheck
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# include library targets
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panickerinclude $(SRC)/lib/Makefile.targ
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panickerpics/%.o: ../%.c
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker $(COMPILE.c) -o $@ $<
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker $(POST_PROCESS_O)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker$(ROOTLINTDIR)/%: ../%
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker $(INS.file)