freebsd-dev/share/examples/sunrpc/msg/Makefile
Glen Barber a5921bc365 Update share/examples/* to properly install /usr/share/examples.
As result of this, a new examples package is now created.

Note, this is only effective with 'SHARED=copies' (the default),
as the 'SHARED=symlinks' mechanism will create a symlink to the
source tree version of the file(s).

Sponsored by:	The FreeBSD Foundation
2016-05-10 00:51:50 +00:00

41 lines
712 B
Makefile

#
# @(#)Makefile 2.1 88/08/11 4.0 RPCSRC
#
# $FreeBSD$
#
PACKAGE=examples
FILESDIR=${SHAREDIR}/examples/sunrpc/msg
BIN = printmsg msg_svc rprintmsg
GEN = msg_clnt.c msg_svc.c msg.h
LIB = -lrpclib
RPCCOM = rpcgen
all: $(BIN)
#
# This is the non-networked version of the program
#
printmsg: printmsg.o
$(CC) -o $@ printmsg.o
#
# note: no xdr routines are generated here, due this service's
# use of basic data types.
#
$(GEN): msg.x
$(RPCCOM) msg.x
msg_svc: msg_proc.o msg_svc.o
$(CC) -o $@ msg_proc.o msg_svc.o $(LIB)
rprintmsg: rprintmsg.o msg_clnt.o
$(CC) -o $@ rprintmsg.o msg_clnt.o $(LIB)
rprintmsg.o: rprintmsg.c msg.h
msg_proc.o: msg_proc.c msg.h
clean cleanup:
rm -f $(GEN) *.o $(BIN)