xref: /illumos-gate/usr/src/cmd/fs.d/nfs/mount/Makefile (revision 7014882c)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
506e1a714Sraf# Common Development and Distribution License (the "License").
606e1a714Sraf# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
21b56bf881SAntonello Cruz# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
227c478bd9Sstevel@tonic-gate#
237c478bd9Sstevel@tonic-gate# cmd/fs.d/nfs/mount/Makefile
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateFSTYPE=		nfs
267c478bd9Sstevel@tonic-gateLIBPROG=	mount
277c478bd9Sstevel@tonic-gateROOTFS_PROG=	$(LIBPROG)
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate# duplicate ROOTLIBFSTYPE value needed for installation rule
307c478bd9Sstevel@tonic-gate# we must define this before including Makefile.fstype
317c478bd9Sstevel@tonic-gateROOTLIBFSTYPE = $(ROOT)/usr/lib/fs/$(FSTYPE)
327c478bd9Sstevel@tonic-gate$(ROOTLIBFSTYPE)/%:	$(ROOTLIBFSTYPE) %
337c478bd9Sstevel@tonic-gate	$(RM) $@; $(SYMLINK) ../../../../etc/fs/$(FSTYPE)/$(LIBPROG) $@
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gateinclude		../../Makefile.fstype
367c478bd9Sstevel@tonic-gate
37dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesCOMMON= $(FSLIB) nfs_sec.o replica.o nfs_subr.o selfcheck.o smfcfg.o
387c478bd9Sstevel@tonic-gateOBJS=	$(LIBPROG).o $(COMMON) webnfs_client.o webnfs_xdr.o
397c478bd9Sstevel@tonic-gateSRCS=	$(LIBPROG).c $(FSLIBSRC) ../lib/nfs_sec.c ../lib/replica.c \
40dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	../lib/nfs_subr.c webnfs_xdr.c webnfs_client.c ../lib/selfcheck.c \
41dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	../lib/smfcfg.c
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gateUNCHECKED_HDRS=	webnfs.h
447c478bd9Sstevel@tonic-gate
45*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
46*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch
47*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
48*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
49*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-address
50*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function
51*7014882cSRichard Lowe
527c478bd9Sstevel@tonic-gate#
537c478bd9Sstevel@tonic-gate# Message catalog
547c478bd9Sstevel@tonic-gate#
557c478bd9Sstevel@tonic-gatePOFILE= mount.po
567c478bd9Sstevel@tonic-gate
57b56bf881SAntonello CruzLDLIBS += -lrpcsvc -lnsl -lsocket -lscf
587c478bd9Sstevel@tonic-gateCPPFLAGS += -I. -I../.. -I../lib
597c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE)
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gatenfs_sec.o :=	CPPFLAGS += -DWNFS_SEC_NEGO
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gateROOTETCPROG	= $(LIBPROG:%=$(ROOTETCFSTYPE)/%)
647c478bd9Sstevel@tonic-gateCLOBBERFILES	+= $(LIBPROG)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate.KEEP_STATE:
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gateall:	$(ROOTFS_PROG)
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gate$(LIBPROG):	webnfs.h $(OBJS)
717c478bd9Sstevel@tonic-gate		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
727c478bd9Sstevel@tonic-gate		$(POST_PROCESS)
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gatenfs_sec.o:	../lib/nfs_sec.c
757c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../lib/nfs_sec.c
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gatereplica.o:	../lib/replica.c
787c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../lib/replica.c
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gatenfs_subr.o:	../lib/nfs_subr.c
817c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../lib/nfs_subr.c
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gateselfcheck.o:	../lib/selfcheck.c
847c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../lib/selfcheck.c
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gatenfs_tbind.o:	../lib/nfs_tbind.c
877c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../lib/nfs_tbind.c
887c478bd9Sstevel@tonic-gate
89dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Statessmfcfg.o:	../lib/smfcfg.c
90dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States		$(COMPILE.c) ../lib/smfcfg.c
91dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
927c478bd9Sstevel@tonic-gatewebnfs_xdr.c:	webnfs.x
93bfa62c28SVallish Vaidyeshwara	$(RPCGEN) -M -C -c -o $@ webnfs.x
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gatewebnfs_client.c:	webnfs.x
96bfa62c28SVallish Vaidyeshwara	$(RPCGEN) -M -C -l -o $@ webnfs.x
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gatewebnfs.h:	webnfs.x
99bfa62c28SVallish Vaidyeshwara	$(RPCGEN) -M -C -h -o $@ webnfs.x
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gatewebnfs.x:	../lib/webnfs.x
1027c478bd9Sstevel@tonic-gate		$(RM) webnfs.x
1037c478bd9Sstevel@tonic-gate		cp ../lib/webnfs.x .
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gate#
1067c478bd9Sstevel@tonic-gate# message catalog
1077c478bd9Sstevel@tonic-gate#
1087c478bd9Sstevel@tonic-gatecatalog: $(POFILE)
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gate$(POFILE): $(SRCS)
1117c478bd9Sstevel@tonic-gate	$(RM) $@
1127c478bd9Sstevel@tonic-gate	$(COMPILE.cpp) $(SRCS)   > $(POFILE).i
1137c478bd9Sstevel@tonic-gate	$(XGETTEXT)     $(XGETFLAGS) $(POFILE).i
1147c478bd9Sstevel@tonic-gate	sed "/^domain/d"        messages.po     > $@
1157c478bd9Sstevel@tonic-gate	$(RM) $(POFILE).i messages.po
1167c478bd9Sstevel@tonic-gate
1177c478bd9Sstevel@tonic-gateinstall:	$(ROOTETCPROG)
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gatelint:	webnfs.h webnfs_xdr.c webnfs_client.c lint_SRCS
1207c478bd9Sstevel@tonic-gate
1217c478bd9Sstevel@tonic-gateclean:
1227c478bd9Sstevel@tonic-gate	$(RM) $(OBJS) webnfs.x webnfs.h webnfs_xdr.c webnfs_client.c
123