xref: /titanic_51/usr/src/cmd/fs.d/nfs/nfsd/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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
5cee86682Scalum# Common Development and Distribution License (the "License").
6cee86682Scalum# 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#
217c478bd9Sstevel@tonic-gate#
22dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gateFSTYPE=		nfs
277c478bd9Sstevel@tonic-gateTYPEPROG=	nfsd
287c478bd9Sstevel@tonic-gateATTMK=		$(TYPEPROG)
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gateinclude		../../Makefile.fstype
317c478bd9Sstevel@tonic-gate
32dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesLDLIBS +=	-lnsl -lnvpair  -lscf
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateLOCAL=		nfsd.o
35dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesOBJS=		$(LOCAL) nfs_tbind.o thrpool.o daemon.o smfcfg.o
36dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesSRCS=		$(LOCAL:%.o=%.c) ../lib/nfs_tbind.c ../lib/thrpool.c ../lib/daemon.c \
37dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States		../lib/smfcfg.c
38dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
397c478bd9Sstevel@tonic-gateCPPFLAGS +=	-I../lib
40*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
41*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
42*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
43*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-extra
44dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
457c478bd9Sstevel@tonic-gate$(TYPEPROG):	$(OBJS)
467c478bd9Sstevel@tonic-gate		$(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
477c478bd9Sstevel@tonic-gate		$(POST_PROCESS)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gatenfs_tbind.o:	../lib/nfs_tbind.c
507c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../lib/nfs_tbind.c
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gatethrpool.o:	../lib/thrpool.c
537c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../lib/thrpool.c
547c478bd9Sstevel@tonic-gate
55250a0733Sth199096daemon.o:	../lib/daemon.c
56250a0733Sth199096		$(COMPILE.c) ../lib/daemon.c
57250a0733Sth199096
58dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Statessmfcfg.o:	../lib/smfcfg.c
59dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States		$(COMPILE.c) ../lib/smfcfg.c
60dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
617c478bd9Sstevel@tonic-gateclean:
627c478bd9Sstevel@tonic-gate		$(RM) $(OBJS)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gatelint:		$(SRCS) lint_SRCS
65