xref: /illumos-gate/usr/src/stand/lib/fs/nfs/Makefile (revision bd97c7ce2344fa3252d8785c35895490916bc79b)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY = libnfs.a
30LOCOBJS = auth_none.o auth_unix.o bootparams.o getdents.o \
31	  getdents3.o getdents4.o lookup.o mount.o \
32	  nfsops.o nfs2ops.o nfs3ops.o nfs4ops.o pathname.o pmap.o rpc.o \
33	  clnt_budp.o clnt_btcp.o nfs_xdr.o nfs3_xdr.o nfs4_xdr.o xdr_rec.o
34
35RPC_CMNOBJS = rpc_prot.o
36CMNOBJS = bootparam_xdr.o
37OBJECTS = $(LOCOBJS) $(RPC_CMNOBJS) $(CMNOBJS)
38
39include ../Makefile.com
40
41RPC_CMNDIR = $(TOPDIR)/uts/common/rpc
42CMNDIR = $(TOPDIR)/uts/common/fs/nfs
43SRCS	= $(LOCOBJS:%.o=$(SRCDIR)/%.c) $(RPC_CMNOBJS:%.o=$(RPC_CMNDIR)/%.c) \
44		$(CMNOBJS:%.o=$(CMNDIR)/%.c)
45
46LDLIBS += -linet -lsock -lxdr
47CPPFLAGS += $(SOCKCPPFLAGS) $(DHCPCPPFLAGS) -I../../inet
48CPPFLAGS += -I$(STANDDIR)/lib/sa -I$(TOPDIR)/head
49
50#
51# This is really wrong, but we have no choice since <rpc/*.h> needs to
52# resolve types that are in <sys/stream.h>.  Thankfully, we don't use
53# anything from libsock.a that relies on the definition of an mblk_t.
54#
55CPPFLAGS += -U_SYS_STREAM_H
56
57objs/%.o: $(RPC_CMNDIR)/%.c
58	$(COMPILE.c) -o $@ $<
59	$(POST_PROCESS_O)
60
61include ../../Makefile.targ
62