Commit | Line | Data |
---|---|---|
ad787160 C |
1 | # |
2 | # @(#)Makefile 2.1 88/08/11 4.0 RPCSRC | |
3 | # | |
4 | BIN = printmsg msg_svc rprintmsg | |
5 | GEN = msg_clnt.c msg_svc.c msg.h | |
6 | LIB = -lrpclib | |
7 | RPCCOM = rpcgen | |
8 | ||
9 | all: $(BIN) | |
10 | ||
11 | # | |
12 | # This is the non-networked version of the program | |
13 | # | |
14 | printmsg: 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 | ||
24 | msg_svc: msg_proc.o msg_svc.o | |
25 | $(CC) -o $@ msg_proc.o msg_svc.o $(LIB) | |
26 | ||
27 | rprintmsg: rprintmsg.o msg_clnt.o | |
28 | $(CC) -o $@ rprintmsg.o msg_clnt.o $(LIB) | |
29 | ||
30 | rprintmsg.o: rprintmsg.c msg.h | |
31 | ||
32 | msg_proc.o: msg_proc.c msg.h | |
33 | ||
34 | clean cleanup: | |
35 | rm -f $(GEN) *.o $(BIN) | |
36 |