xref: /illumos-gate/usr/src/cmd/fs.d/nfs/nfsd/Makefile (revision a5f20e891eb1b5d2af2255e766a1dc3b35ac9936)
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#
245661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
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
407014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
417014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
427014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
437014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-extra
44dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
455661bb76SJohn Levon# not linted
465661bb76SJohn LevonSMATCH=off
475661bb76SJohn Levon
487c478bd9Sstevel@tonic-gate$(TYPEPROG):	$(OBJS)
49*58e78d16SToomas Soome		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
507c478bd9Sstevel@tonic-gate		$(POST_PROCESS)
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gatenfs_tbind.o:	../lib/nfs_tbind.c
537c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../lib/nfs_tbind.c
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gatethrpool.o:	../lib/thrpool.c
567c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../lib/thrpool.c
577c478bd9Sstevel@tonic-gate
58250a0733Sth199096daemon.o:	../lib/daemon.c
59250a0733Sth199096		$(COMPILE.c) ../lib/daemon.c
60250a0733Sth199096
61dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Statessmfcfg.o:	../lib/smfcfg.c
62dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States		$(COMPILE.c) ../lib/smfcfg.c
63dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
647c478bd9Sstevel@tonic-gateclean:
657c478bd9Sstevel@tonic-gate		$(RM) $(OBJS)
66