xref: /titanic_52/usr/src/cmd/fs.d/nfs/rp_basic/Makefile.com (revision 2f172c55ef76964744bc62b4500ece87f3089b4d)
1*2f172c55SRobert Thurlow#
2*2f172c55SRobert Thurlow# CDDL HEADER START
3*2f172c55SRobert Thurlow#
4*2f172c55SRobert Thurlow# The contents of this file are subject to the terms of the
5*2f172c55SRobert Thurlow# Common Development and Distribution License (the "License").
6*2f172c55SRobert Thurlow# You may not use this file except in compliance with the License.
7*2f172c55SRobert Thurlow#
8*2f172c55SRobert Thurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2f172c55SRobert Thurlow# or http://www.opensolaris.org/os/licensing.
10*2f172c55SRobert Thurlow# See the License for the specific language governing permissions
11*2f172c55SRobert Thurlow# and limitations under the License.
12*2f172c55SRobert Thurlow#
13*2f172c55SRobert Thurlow# When distributing Covered Code, include this CDDL HEADER in each
14*2f172c55SRobert Thurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2f172c55SRobert Thurlow# If applicable, add the following below this CDDL HEADER, with the
16*2f172c55SRobert Thurlow# fields enclosed by brackets "[]" replaced with your own identifying
17*2f172c55SRobert Thurlow# information: Portions Copyright [yyyy] [name of copyright owner]
18*2f172c55SRobert Thurlow#
19*2f172c55SRobert Thurlow# CDDL HEADER END
20*2f172c55SRobert Thurlow#
21*2f172c55SRobert Thurlow# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22*2f172c55SRobert Thurlow# Use is subject to license terms.
23*2f172c55SRobert Thurlow#
24*2f172c55SRobert Thurlow
25*2f172c55SRobert ThurlowLIBRARY =	libnfs_basic.a
26*2f172c55SRobert ThurlowVERS =		.1
27*2f172c55SRobert Thurlow
28*2f172c55SRobert ThurlowLIBOBJS =	libnfs_basic.o
29*2f172c55SRobert ThurlowCOMMON =	ref_subr.o
30*2f172c55SRobert ThurlowOBJECTS =	$(LIBOBJS) $(COMMON)
31*2f172c55SRobert Thurlow
32*2f172c55SRobert Thurlowinclude $(SRC)/lib/Makefile.lib
33*2f172c55SRobert Thurlow
34*2f172c55SRobert Thurlowlintcheck := SRCS = ../libnfs_basic.c ../../lib/ref_subr.c
35*2f172c55SRobert Thurlow
36*2f172c55SRobert ThurlowROOTLIBDIR =	$(ROOT)/usr/lib/reparse
37*2f172c55SRobert ThurlowROOTLIBDIR64 =	$(ROOT)/usr/lib/reparse/$(MACH64)
38*2f172c55SRobert Thurlow
39*2f172c55SRobert ThurlowLIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
40*2f172c55SRobert Thurlow
41*2f172c55SRobert ThurlowLIBS =		$(DYNLIB)
42*2f172c55SRobert ThurlowLDLIBS +=	-lc -lnsl
43*2f172c55SRobert Thurlow
44*2f172c55SRobert ThurlowCFLAGS +=	$(CCVERBOSE)
45*2f172c55SRobert ThurlowCPPFLAGS +=	-D_REENTRANT -I$(SRC)/cmd/fs.d/nfs/lib
46*2f172c55SRobert Thurlow
47*2f172c55SRobert Thurlow.KEEP_STATE:
48*2f172c55SRobert Thurlow
49*2f172c55SRobert Thurlowall: $(LIBS)
50*2f172c55SRobert Thurlow
51*2f172c55SRobert Thurlowinstall: $(ROOTLIBDIR) $(ROOTLIBDIR64) all
52*2f172c55SRobert Thurlow
53*2f172c55SRobert Thurlowlint: lintcheck
54*2f172c55SRobert Thurlow
55*2f172c55SRobert Thurlowpics/ref_subr.o:     ../../lib/ref_subr.c
56*2f172c55SRobert Thurlow	$(COMPILE.c) -o pics/ref_subr.o ../../lib/ref_subr.c
57*2f172c55SRobert Thurlow	$(POST_PROCESS_O)
58*2f172c55SRobert Thurlow
59*2f172c55SRobert Thurlow$(ROOTLIBDIR):
60*2f172c55SRobert Thurlow	$(INS.dir)
61*2f172c55SRobert Thurlow
62*2f172c55SRobert Thurlow$(ROOTLIBDIR64):
63*2f172c55SRobert Thurlow	$(INS.dir)
64*2f172c55SRobert Thurlow
65*2f172c55SRobert Thurlowinclude $(SRC)/lib/Makefile.targ
66