xref: /freebsd/share/examples/sunrpc/msg/Makefile (revision d933e97f9d7c919e68dc6aca4a6819a13ab3fbbf)
1#
2# @(#)Makefile	2.1 88/08/11 4.0 RPCSRC
3#
4# $FreeBSD$
5#
6PACKAGE=examples
7FILESDIR=${SHAREDIR}/examples/sunrpc/msg
8BIN = printmsg msg_svc rprintmsg
9GEN = msg_clnt.c msg_svc.c msg.h
10LIB = -lrpclib
11RPCCOM = rpcgen
12
13all: $(BIN)
14
15#
16# This is the non-networked version of the program
17#
18printmsg: printmsg.o
19	$(CC) -o $@ printmsg.o
20
21#
22# note: no xdr routines are generated here, due this service's
23#       use of basic data types.
24#
25$(GEN): msg.x
26	$(RPCCOM) msg.x
27
28msg_svc: msg_proc.o msg_svc.o
29	$(CC) -o $@ msg_proc.o msg_svc.o $(LIB)
30
31rprintmsg: rprintmsg.o msg_clnt.o
32	$(CC) -o $@ rprintmsg.o msg_clnt.o $(LIB)
33
34rprintmsg.o: rprintmsg.c msg.h
35
36msg_proc.o: msg_proc.c msg.h
37
38clean cleanup:
39	rm -f $(GEN) *.o $(BIN)
40
41