Makefile revision 36e852a172cba914383d7341c988128b2c667fbd
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# CDDL HEADER START
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# The contents of this file are subject to the terms of the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Common Development and Distribution License (the "License").
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# You may not use this file except in compliance with the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# or http://www.opensolaris.org/os/licensing.
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# See the License for the specific language governing permissions
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# and limitations under the License.
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# CDDL HEADER END
a737caf82de97c1907027c03e4b4509eb492b4b8Christian Maeder# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder# Use is subject to license terms.
2e2094a642e3775b0d76b890556407941d3a53b6Christian MaederPROG= $(BINPROG) $(SBINPROG) $(RPROG) $(SPROG) $(WPROG) $(TPROG)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichTSVCOBJS= rstat_main.o rstat_proc.o rstat_svc.o rstat_v2_svc.o rstat_v2_xdr.o
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian MaederDERIVED_FILES = rstat.x rstat.h rstat_svc.c rstat_v2.h rstat_v2_svc.c \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder rstat_v2_xdr.c spray.x spray.h spray_clnt.c spray_svc.c \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederOBJS= $(SCLNTOBJS) $(SSVCOBJS) $(WCLNTOBJS) $(WSVCOBJS) $(TSVCOBJS)
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederSRCS= $(OBJS:%.o=%.c) rusers.c rpc.rusersd.c rup.c
df35538fec1d9135602308d577255c0d466b6365Christian Maeder# non-default file attributes
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# install rules
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder$(RWALL)/% $(SPRAY)/% $(RUSERS)/% $(RSTAT)/%: %
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# multi-object targets
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederinstall: $(PROG) $(TXTS) .WAIT $(ROOTDIRS) .WAIT $(IBINPROG) $(ISBINPROG) \
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder $(IWPROG) $(ISPROG) $(IRPROG) $(ITPROG) $(IETCFILES) $(SUBDIRS) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Derived files
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(RPCGEN) -s datagram_v -s circuit_v spray.x > $@
42b12fba6830ada5057949f825fc27edf5574e5fChristian Maeder $(LINT.c) $(WCLNTOBJS:%.o=%.c) -lnsl -lrpcsvc