xref: /onnv-gate/usr/src/lib/libmapid/Makefile.com (revision 13080:fcc1e406c13f)
11741Srmesta#
21741Srmesta# CDDL HEADER START
31741Srmesta#
41741Srmesta# The contents of this file are subject to the terms of the
51741Srmesta# Common Development and Distribution License (the "License").
61741Srmesta# You may not use this file except in compliance with the License.
71741Srmesta#
81741Srmesta# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91741Srmesta# or http://www.opensolaris.org/os/licensing.
101741Srmesta# See the License for the specific language governing permissions
111741Srmesta# and limitations under the License.
121741Srmesta#
131741Srmesta# When distributing Covered Code, include this CDDL HEADER in each
141741Srmesta# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151741Srmesta# If applicable, add the following below this CDDL HEADER, with the
161741Srmesta# fields enclosed by brackets "[]" replaced with your own identifying
171741Srmesta# information: Portions Copyright [yyyy] [name of copyright owner]
181741Srmesta#
191741Srmesta# CDDL HEADER END
201741Srmesta#
211741Srmesta#
22*13080SPavan.Mettu@Oracle.COM# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
231741Srmesta#
241741Srmesta#
251741Srmesta
261741SrmestaLIBRARY =	libmapid.a
271741SrmestaVERS	=	.1
28*13080SPavan.Mettu@Oracle.COMSMF_DIR	=	$(SRC)/cmd/fs.d/nfs/lib
29*13080SPavan.Mettu@Oracle.COM
30*13080SPavan.Mettu@Oracle.COMLIBOBJS	=	mapid.o
31*13080SPavan.Mettu@Oracle.COMOTHOBJS	=	smfcfg.o
32*13080SPavan.Mettu@Oracle.COMOBJECTS =	$(LIBOBJS) $(OTHOBJS)
331741Srmesta
341741Srmestainclude $(SRC)/lib/Makefile.lib
351741Srmesta
361741SrmestaLIBS	=	$(DYNLIB) $(LINTLIB)
371741Srmesta
381741Srmesta#
391741Srmesta# This library will be installed w/all other nfs
401741Srmesta# binaries in /usr/lib/nfs, so define it as such.
411741Srmesta#
421741SrmestaROOTLIBDIR   =	$(ROOT)/usr/lib/nfs
431741Srmesta
441741Srmesta#
451741Srmesta# SRCS is defined to be $(OBJECTS:%.o=$(SRCDIR)/%.c)
461741Srmesta#
471741SrmestaSRCDIR	=	../common
48*13080SPavan.Mettu@Oracle.COMLIBSRCS	= $(LIBOBJS:%.o=$(SRCDIR)/%.c)
49*13080SPavan.Mettu@Oracle.COM$(LINTLIB) := SRCS = $(LINTSRC:%=$(SRCDIR)/%)
50*13080SPavan.Mettu@Oracle.COMlintcheck  :=	SRCS = $(LIBSRCS)
511741Srmesta
52*13080SPavan.Mettu@Oracle.COMLDLIBS	+=	-lresolv -lc -lscf
531741Srmesta
541741SrmestaCFLAGS	+=	$(CCVERBOSE)
55*13080SPavan.Mettu@Oracle.COMCPPFLAGS +=	-I$(SRCDIR) -I$(SMF_DIR) -D_REENTRANT
56*13080SPavan.Mettu@Oracle.COM
571741Srmesta
581741Srmesta.KEEP_STATE:
591741Srmesta
60*13080SPavan.Mettu@Oracle.COMall:  $(LIBS)
61*13080SPavan.Mettu@Oracle.COM
62*13080SPavan.Mettu@Oracle.COMinstall: $(ROOTLIBDIR) all
63*13080SPavan.Mettu@Oracle.COM
64*13080SPavan.Mettu@Oracle.COMlint:	$(LINTLIB) lintcheck
651741Srmesta
66*13080SPavan.Mettu@Oracle.COMpics/%.o:	$(SMF_DIR)/%.c
67*13080SPavan.Mettu@Oracle.COM	$(COMPILE.c) -o $@ $<
68*13080SPavan.Mettu@Oracle.COM	$(POST_PROCESS_O)
691741Srmesta
70*13080SPavan.Mettu@Oracle.COM$(ROOTLIBDIR):
71*13080SPavan.Mettu@Oracle.COM	$(INS.dir)
72*13080SPavan.Mettu@Oracle.COM
73*13080SPavan.Mettu@Oracle.COMinclude ../../Makefile.targ
74