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