Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER START
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# The contents of this file are subject to the terms of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Common Development and Distribution License, Version 1.0 only
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# (the "License"). You may not use this file except in compliance
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# with the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# or http://www.opensolaris.org/os/licensing.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# See the License for the specific language governing permissions
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# and limitations under the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# If applicable, add the following below this CDDL HEADER, with the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER END
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Use is subject to license terms.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# ident "%Z%%M% %I% %E% SMI"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncFSTYPE= nfs
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncTYPEPROG= mountd
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncATTMK= $(TYPEPROG)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude ../../Makefile.fstype
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMMON= $(FSLIB) nfs_sec.o sharetab.o
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLOCAL= mountd.o netgroup.o rmtab.o nfsauth.o \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync nfsauth_xdr.o svc_local.o exportlist.o hashset.o
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncOBJS= $(LOCAL) $(COMMON)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSRCS= $(LOCAL:%.o=%.c) \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(FSLIBSRC) ../lib/nfs_sec.c ../lib/sharetab.c
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLDLIBS += -lrpcsvc -lnsl -lbsm -lsocket -lcmd
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCFLAGS += -o $@
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCPPFLAGS += -D_REENTRANT
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync$(TYPEPROG): $(OBJS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(POST_PROCESS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncnfsauth_xdr.c: $(ROOT)/usr/include/rpcsvc/nfsauth_prot.x
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(RPCGEN) -C -c -o $@ $(ROOT)/usr/include/rpcsvc/nfsauth_prot.x
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncnfs_sec.o: ../lib/nfs_sec.c
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(COMPILE.c) ../lib/nfs_sec.c
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsharetab.o: ../lib/sharetab.c
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(COMPILE.c) ../lib/sharetab.c
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynclint:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(LINT.c) $(SRCS) $(LDLIBS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncclean:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(RM) $(OBJS) nfsauth_xdr.c
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync