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