Makefile revision b56bf881a9655cb27b53cba1468312f7c6dfb0a2
5089N/A#
5089N/A# CDDL HEADER START
5089N/A#
5089N/A# The contents of this file are subject to the terms of the
5089N/A# Common Development and Distribution License (the "License").
5089N/A# You may not use this file except in compliance with the License.
5089N/A#
5089N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5089N/A# or http://www.opensolaris.org/os/licensing.
5089N/A# See the License for the specific language governing permissions
5089N/A# and limitations under the License.
5089N/A#
5089N/A# When distributing Covered Code, include this CDDL HEADER in each
5089N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5089N/A# If applicable, add the following below this CDDL HEADER, with the
5089N/A# fields enclosed by brackets "[]" replaced with your own identifying
5089N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5089N/A#
5089N/A# CDDL HEADER END
5089N/A#
5454N/A# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
5089N/A#
5089N/A# cmd/fs.d/nfs/mount/Makefile
5089N/A
5089N/AFSTYPE= nfs
5089N/ALIBPROG= mount
5089N/AROOTFS_PROG= $(LIBPROG)
5089N/A
5089N/A# duplicate ROOTLIBFSTYPE value needed for installation rule
5089N/A# we must define this before including Makefile.fstype
5089N/AROOTLIBFSTYPE = $(ROOT)/usr/lib/fs/$(FSTYPE)
5089N/A$(ROOTLIBFSTYPE)/%: $(ROOTLIBFSTYPE) %
5089N/A $(RM) $@; $(SYMLINK) ../../../../etc/fs/$(FSTYPE)/$(LIBPROG) $@
5089N/A
5089N/Ainclude ../../Makefile.fstype
5089N/A
5089N/ACOMMON= $(FSLIB) nfs_sec.o replica.o nfs_subr.o selfcheck.o
5089N/AOBJS= $(LIBPROG).o $(COMMON) webnfs_client.o webnfs_xdr.o
5089N/ASRCS= $(LIBPROG).c $(FSLIBSRC) ../lib/nfs_sec.c ../lib/replica.c \
5089N/A ../lib/nfs_subr.c webnfs_xdr.c webnfs_client.c ../lib/selfcheck.c
5089N/A
5089N/AUNCHECKED_HDRS= webnfs.h
5089N/A
5089N/A#
5089N/A# Message catalog
5089N/A#
5089N/APOFILE= mount.po
5089N/A
5089N/ALDLIBS += -lrpcsvc -lnsl -lsocket -lscf
5089N/ACPPFLAGS += -I. -I../.. -I../lib
5454N/ACFLAGS += $(CCVERBOSE)
5089N/A
5454N/Anfs_sec.o := CPPFLAGS += -DWNFS_SEC_NEGO
5089N/A
5454N/AROOTETCPROG = $(LIBPROG:%=$(ROOTETCFSTYPE)/%)
5089N/ACLOBBERFILES += $(LIBPROG)
5089N/A
5089N/A.KEEP_STATE:
5089N/A
5089N/Aall: $(ROOTFS_PROG)
5100N/A
5089N/A$(LIBPROG): webnfs.h $(OBJS)
5089N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
5089N/A $(POST_PROCESS)
nfs_sec.o: ../lib/nfs_sec.c
$(COMPILE.c) ../lib/nfs_sec.c
replica.o: ../lib/replica.c
$(COMPILE.c) ../lib/replica.c
nfs_subr.o: ../lib/nfs_subr.c
$(COMPILE.c) ../lib/nfs_subr.c
selfcheck.o: ../lib/selfcheck.c
$(COMPILE.c) ../lib/selfcheck.c
nfs_tbind.o: ../lib/nfs_tbind.c
$(COMPILE.c) ../lib/nfs_tbind.c
webnfs_xdr.c: webnfs.x
$(RPCGEN) -M -C -c -o $@ webnfs.x
webnfs_client.c: webnfs.x
$(RPCGEN) -M -C -l -o $@ webnfs.x
webnfs.h: webnfs.x
$(RPCGEN) -M -C -h -o $@ webnfs.x
webnfs.x: ../lib/webnfs.x
$(RM) webnfs.x
cp ../lib/webnfs.x .
#
# message catalog
#
catalog: $(POFILE)
$(POFILE): $(SRCS)
$(RM) $@
$(COMPILE.cpp) $(SRCS) > $(POFILE).i
$(XGETTEXT) $(XGETFLAGS) $(POFILE).i
sed "/^domain/d" messages.po > $@
$(RM) $(POFILE).i messages.po
install: $(ROOTETCPROG)
lint: webnfs.h webnfs_xdr.c webnfs_client.c lint_SRCS
clean:
$(RM) $(OBJS) webnfs.x webnfs.h webnfs_xdr.c webnfs_client.c