xref: /titanic_44/usr/src/lib/librpcsvc/Makefile.com (revision 8eea8e29cc4374d1ee24c25a07f45af132db3499)
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# lib/librpcsvc/Makefile
29#
30
31LIBRARY= librpcsvc.a
32VERS = .1
33
34OBJECTS= rstat_simple.o rstat_xdr.o rusers_simple.o rusersxdr.o rusers_xdr.o \
35	 rwallxdr.o spray_xdr.o nlm_prot.o sm_inter_xdr.o nsm_addr_xdr.o \
36	 bootparam_prot_xdr.o mount_xdr.o mountlist_xdr.o rpc_sztypes.o \
37	 bindresvport.o
38
39# include library definitions
40include ../../Makefile.lib
41
42# install this library in the root filesystem
43include ../../Makefile.rootfs
44
45# Don't mess with this. DAAMAPFILE gets correctly overridden
46# for 64bit.
47MAPFILE=	$(MAPDIR)/mapfile
48
49CLOBBERFILES +=	$(MAPFILE)
50
51SRCS=		$(OBJECTS:%.o=../common/%.c)
52
53pics/%.o: ../common/%.c
54	$(COMPILE.c) -o $@ $<
55	$(POST_PROCESS_O)
56
57LIBS = $(DYNLIB)
58
59
60CPPFLAGS += -DYP
61LDLIBS += -lnsl -lc
62DYNFLAGS += -M $(MAPFILE)
63
64.KEEP_STATE:
65
66
67$(DYNLIB): $(MAPFILE)
68$(MAPFILE):
69	@cd $(MAPDIR); $(MAKE) mapfile
70
71lint:	lintcheck
72
73# include library targets
74include ../../Makefile.targ
75