xref: /titanic_44/usr/src/cmd/rpcbind/Makefile (revision 1cb6af97c6f66f456d4f726ef056e1ebc0f73305)
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#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# cmd/rpcbind/Makefile
29
30PROG=		rpcbind
31MANIFEST=	bind.xml
32SVCMETHOD=	rpc-bind
33
34OBJS= check_bound.o pmap_svc.o rpcb_svc.o rpcb_svc_com.o rpcb_svc_4.o \
35	 rpcb_stat.o rpcbind.o warmstart.o selfcheck.o rpcb_check.o
36
37CLOBBERFILES += $(SVCMETHOD)
38
39SRC1= $(OBJS:%.o=%.c)
40SRCS= $(SRC1:selfcheck.c=../fs.d/nfs/lib/selfcheck.c)
41
42include ../Makefile.cmd
43
44ROOTMANIFESTDIR=	$(ROOTSVCNETWORKRPC)
45$(ROOTMANIFEST):=	FILEMODE= 444
46
47CPPFLAGS= -I. -DPORTMAP $(CPPFLAGS.master)
48CPPFLAGS += -I$(ROOTSFWINCLUDE) -D_REENTRANT
49LDLIBS += -lsocket -lnsl
50LDLIBS += -L$(ROOTSFWLIB) -lwrap -lscf
51LDFLAGS += -R$(SFW_ROOT)/lib
52
53.KEEP_STATE:
54
55all: $(PROG) $(SVCMETHOD)
56
57$(PROG): $(OBJS)
58	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
59	$(POST_PROCESS)
60
61selfcheck.o:    ../fs.d/nfs/lib/selfcheck.c
62		$(COMPILE.c) ../fs.d/nfs/lib/selfcheck.c
63		$(POST_PROCESS_O)
64
65install: all $(DIRS) $(ROOTUSRSBINPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
66
67$(DIRS):
68	$(INS.dir)
69
70check:	$(CHKMANIFEST)
71
72clean:
73	$(RM) $(OBJS)
74
75lint: lint_SRCS
76
77include ../Makefile.targ
78