Makefile.com revision 549ec3fff108310966327d1dc9004551b63210b7
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# CDDL HEADER START
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# The contents of this file are subject to the terms of the
549ec3fff108310966327d1dc9004551b63210b7dougm# Common Development and Distribution License (the "License").
549ec3fff108310966327d1dc9004551b63210b7dougm# You may not use this file except in compliance with the License.
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
549ec3fff108310966327d1dc9004551b63210b7dougm# or http://www.opensolaris.org/os/licensing.
549ec3fff108310966327d1dc9004551b63210b7dougm# See the License for the specific language governing permissions
549ec3fff108310966327d1dc9004551b63210b7dougm# and limitations under the License.
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# When distributing Covered Code, include this CDDL HEADER in each
549ec3fff108310966327d1dc9004551b63210b7dougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
549ec3fff108310966327d1dc9004551b63210b7dougm# If applicable, add the following below this CDDL HEADER, with the
549ec3fff108310966327d1dc9004551b63210b7dougm# fields enclosed by brackets "[]" replaced with your own identifying
549ec3fff108310966327d1dc9004551b63210b7dougm# information: Portions Copyright [yyyy] [name of copyright owner]
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# CDDL HEADER END
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# ident "%Z%%M% %I% %E% SMI"
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
549ec3fff108310966327d1dc9004551b63210b7dougm# Use is subject to license terms.
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmLIBRARY = libshare_nfs.a
549ec3fff108310966327d1dc9004551b63210b7dougmVERS = .1
549ec3fff108310966327d1dc9004551b63210b7dougmNFSLIB_DIR = $(SRC)/cmd/fs.d/nfs/lib
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmLIBOBJS = libshare_nfs.o
549ec3fff108310966327d1dc9004551b63210b7dougmOTHOBJS = nfs_sec.o nfslog_config.o nfslogtab.o
549ec3fff108310966327d1dc9004551b63210b7dougmOBJECTS = $(LIBOBJS) $(OTHOBJS)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougminclude ../../../Makefile.lib
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmROOTLIBDIR = $(ROOT)/usr/lib/fs/nfs
549ec3fff108310966327d1dc9004551b63210b7dougmROOTLIBDIR64 = $(ROOT)/usr/lib/fs/nfs/$(MACH64)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmLIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
549ec3fff108310966327d1dc9004551b63210b7dougm# we don't want to lint the sources for OTHOBJS since they are pre-existing files
549ec3fff108310966327d1dc9004551b63210b7dougm# that are not lint free.
549ec3fff108310966327d1dc9004551b63210b7dougmlintcheck := SRCS = $(LIBSRCS)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmLIBS = $(DYNLIB)
549ec3fff108310966327d1dc9004551b63210b7dougmLDLIBS += -lshare -lnsl -lscf -lumem -lc
549ec3fff108310966327d1dc9004551b63210b7dougmall install := LDLIBS += -lxml2
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougm#add nfs/lib directory as part of the include path
549ec3fff108310966327d1dc9004551b63210b7dougmCFLAGS += $(CCVERBOSE)
549ec3fff108310966327d1dc9004551b63210b7dougmCPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) -I/usr/include/libxml2 \
549ec3fff108310966327d1dc9004551b63210b7dougm -I$(SRCDIR)/../common
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougm.KEEP_STATE:
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmall: $(LIBS)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougminstall: all
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmlint: lintcheck
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmpics/%.o: $(NFSLIB_DIR)/%.c
549ec3fff108310966327d1dc9004551b63210b7dougm $(COMPILE.c) -o $@ $<
549ec3fff108310966327d1dc9004551b63210b7dougm $(POST_PROCESS_O)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougminclude ../../../Makefile.targ