1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate# 28*7c478bd9Sstevel@tonic-gate# cmd/fs.d/nfs/mount/Makefile 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateFSTYPE= nfs 31*7c478bd9Sstevel@tonic-gateLIBPROG= mount 32*7c478bd9Sstevel@tonic-gateROOTFS_PROG= $(LIBPROG) 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gate# duplicate ROOTLIBFSTYPE value needed for installation rule 35*7c478bd9Sstevel@tonic-gate# we must define this before including Makefile.fstype 36*7c478bd9Sstevel@tonic-gateROOTLIBFSTYPE = $(ROOT)/usr/lib/fs/$(FSTYPE) 37*7c478bd9Sstevel@tonic-gate$(ROOTLIBFSTYPE)/%: $(ROOTLIBFSTYPE) % 38*7c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../../../../etc/fs/$(FSTYPE)/$(LIBPROG) $@ 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.fstype 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gateCOMMON= $(FSLIB) nfs_sec.o replica.o nfs_subr.o selfcheck.o 43*7c478bd9Sstevel@tonic-gateOBJS= $(LIBPROG).o $(COMMON) webnfs_client.o webnfs_xdr.o 44*7c478bd9Sstevel@tonic-gateSRCS= $(LIBPROG).c $(FSLIBSRC) ../lib/nfs_sec.c ../lib/replica.c \ 45*7c478bd9Sstevel@tonic-gate ../lib/nfs_subr.c webnfs_xdr.c webnfs_client.c ../lib/selfcheck.c 46*7c478bd9Sstevel@tonic-gate 47*7c478bd9Sstevel@tonic-gateUNCHECKED_HDRS= webnfs.h 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gate# 50*7c478bd9Sstevel@tonic-gate# Message catalog 51*7c478bd9Sstevel@tonic-gate# 52*7c478bd9Sstevel@tonic-gatePOFILE= mount.po 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gateLDLIBS += -lrpcsvc -lnsl -lsocket -lcmd 55*7c478bd9Sstevel@tonic-gateCPPFLAGS += -I. -I../.. -I../lib 56*7c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gatenfs_sec.o := CPPFLAGS += -DWNFS_SEC_NEGO 59*7c478bd9Sstevel@tonic-gate 60*7c478bd9Sstevel@tonic-gateROOTETCPROG = $(LIBPROG:%=$(ROOTETCFSTYPE)/%) 61*7c478bd9Sstevel@tonic-gateCLOBBERFILES += $(LIBPROG) 62*7c478bd9Sstevel@tonic-gate 63*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 64*7c478bd9Sstevel@tonic-gate 65*7c478bd9Sstevel@tonic-gateall: $(ROOTFS_PROG) 66*7c478bd9Sstevel@tonic-gate 67*7c478bd9Sstevel@tonic-gate$(LIBPROG): webnfs.h $(OBJS) 68*7c478bd9Sstevel@tonic-gate $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 69*7c478bd9Sstevel@tonic-gate $(POST_PROCESS) 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gatenfs_sec.o: ../lib/nfs_sec.c 72*7c478bd9Sstevel@tonic-gate $(COMPILE.c) ../lib/nfs_sec.c 73*7c478bd9Sstevel@tonic-gate 74*7c478bd9Sstevel@tonic-gatereplica.o: ../lib/replica.c 75*7c478bd9Sstevel@tonic-gate $(COMPILE.c) ../lib/replica.c 76*7c478bd9Sstevel@tonic-gate 77*7c478bd9Sstevel@tonic-gatenfs_subr.o: ../lib/nfs_subr.c 78*7c478bd9Sstevel@tonic-gate $(COMPILE.c) ../lib/nfs_subr.c 79*7c478bd9Sstevel@tonic-gate 80*7c478bd9Sstevel@tonic-gateselfcheck.o: ../lib/selfcheck.c 81*7c478bd9Sstevel@tonic-gate $(COMPILE.c) ../lib/selfcheck.c 82*7c478bd9Sstevel@tonic-gate 83*7c478bd9Sstevel@tonic-gatenfs_tbind.o: ../lib/nfs_tbind.c 84*7c478bd9Sstevel@tonic-gate $(COMPILE.c) ../lib/nfs_tbind.c 85*7c478bd9Sstevel@tonic-gate 86*7c478bd9Sstevel@tonic-gatewebnfs_xdr.c: webnfs.x 87*7c478bd9Sstevel@tonic-gate $(RPCGEN) -C -c -o $@ webnfs.x 88*7c478bd9Sstevel@tonic-gate 89*7c478bd9Sstevel@tonic-gatewebnfs_client.c: webnfs.x 90*7c478bd9Sstevel@tonic-gate $(RPCGEN) -C -l -o $@ webnfs.x 91*7c478bd9Sstevel@tonic-gate 92*7c478bd9Sstevel@tonic-gatewebnfs.h: webnfs.x 93*7c478bd9Sstevel@tonic-gate $(RPCGEN) -C -h -o $@ webnfs.x 94*7c478bd9Sstevel@tonic-gate 95*7c478bd9Sstevel@tonic-gatewebnfs.x: ../lib/webnfs.x 96*7c478bd9Sstevel@tonic-gate $(RM) webnfs.x 97*7c478bd9Sstevel@tonic-gate cp ../lib/webnfs.x . 98*7c478bd9Sstevel@tonic-gate 99*7c478bd9Sstevel@tonic-gate# 100*7c478bd9Sstevel@tonic-gate# message catalog 101*7c478bd9Sstevel@tonic-gate# 102*7c478bd9Sstevel@tonic-gatecatalog: $(POFILE) 103*7c478bd9Sstevel@tonic-gate 104*7c478bd9Sstevel@tonic-gate$(POFILE): $(SRCS) 105*7c478bd9Sstevel@tonic-gate $(RM) $@ 106*7c478bd9Sstevel@tonic-gate $(COMPILE.cpp) $(SRCS) > $(POFILE).i 107*7c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) $(POFILE).i 108*7c478bd9Sstevel@tonic-gate sed "/^domain/d" messages.po > $@ 109*7c478bd9Sstevel@tonic-gate $(RM) $(POFILE).i messages.po 110*7c478bd9Sstevel@tonic-gate 111*7c478bd9Sstevel@tonic-gateinstall: $(ROOTETCPROG) 112*7c478bd9Sstevel@tonic-gate 113*7c478bd9Sstevel@tonic-gatelint: webnfs.h webnfs_xdr.c webnfs_client.c lint_SRCS 114*7c478bd9Sstevel@tonic-gate 115*7c478bd9Sstevel@tonic-gateclean: 116*7c478bd9Sstevel@tonic-gate $(RM) $(OBJS) webnfs.x webnfs.h webnfs_xdr.c webnfs_client.c 117