xref: /titanic_52/usr/src/lib/libmapid/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
18200fe25Srmesta#
28200fe25Srmesta# CDDL HEADER START
38200fe25Srmesta#
48200fe25Srmesta# The contents of this file are subject to the terms of the
58200fe25Srmesta# Common Development and Distribution License (the "License").
68200fe25Srmesta# You may not use this file except in compliance with the License.
78200fe25Srmesta#
88200fe25Srmesta# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98200fe25Srmesta# or http://www.opensolaris.org/os/licensing.
108200fe25Srmesta# See the License for the specific language governing permissions
118200fe25Srmesta# and limitations under the License.
128200fe25Srmesta#
138200fe25Srmesta# When distributing Covered Code, include this CDDL HEADER in each
148200fe25Srmesta# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
158200fe25Srmesta# If applicable, add the following below this CDDL HEADER, with the
168200fe25Srmesta# fields enclosed by brackets "[]" replaced with your own identifying
178200fe25Srmesta# information: Portions Copyright [yyyy] [name of copyright owner]
188200fe25Srmesta#
198200fe25Srmesta# CDDL HEADER END
208200fe25Srmesta#
218200fe25Srmesta#
22dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
238200fe25Srmesta#
248200fe25Srmesta#
258200fe25Srmesta
268200fe25SrmestaLIBRARY =	libmapid.a
278200fe25SrmestaVERS	=	.1
28dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesSMF_DIR	=	$(SRC)/cmd/fs.d/nfs/lib
29dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
30dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesLIBOBJS	=	mapid.o
31dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesOTHOBJS	=	smfcfg.o
32dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesOBJECTS =	$(LIBOBJS) $(OTHOBJS)
338200fe25Srmesta
348200fe25Srmestainclude $(SRC)/lib/Makefile.lib
358200fe25Srmesta
368200fe25SrmestaLIBS	=	$(DYNLIB) $(LINTLIB)
378200fe25Srmesta
388200fe25Srmesta#
398200fe25Srmesta# This library will be installed w/all other nfs
408200fe25Srmesta# binaries in /usr/lib/nfs, so define it as such.
418200fe25Srmesta#
428200fe25SrmestaROOTLIBDIR   =	$(ROOT)/usr/lib/nfs
438200fe25Srmesta
448200fe25Srmesta#
458200fe25Srmesta# SRCS is defined to be $(OBJECTS:%.o=$(SRCDIR)/%.c)
468200fe25Srmesta#
478200fe25SrmestaSRCDIR	=	../common
48dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesLIBSRCS	= $(LIBOBJS:%.o=$(SRCDIR)/%.c)
49dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States$(LINTLIB) := SRCS = $(LINTSRC:%=$(SRCDIR)/%)
50dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Stateslintcheck  :=	SRCS = $(LIBSRCS)
518200fe25Srmesta
52dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesLDLIBS	+=	-lresolv -lc -lscf
538200fe25Srmesta
548200fe25SrmestaCFLAGS	+=	$(CCVERBOSE)
55dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesCPPFLAGS +=	-I$(SRCDIR) -I$(SMF_DIR) -D_REENTRANT
56dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
57*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
58*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
59*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
608200fe25Srmesta
618200fe25Srmesta.KEEP_STATE:
628200fe25Srmesta
63dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Statesall:  $(LIBS)
648200fe25Srmesta
65dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Statesinstall: $(ROOTLIBDIR) all
668200fe25Srmesta
67dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Stateslint:	$(LINTLIB) lintcheck
68dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
69dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Statespics/%.o:	$(SMF_DIR)/%.c
70dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	$(COMPILE.c) -o $@ $<
71dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	$(POST_PROCESS_O)
72dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
73dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States$(ROOTLIBDIR):
74dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	$(INS.dir)
75dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
76dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Statesinclude ../../Makefile.targ
77