]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/examples/sunrpc/msg/Makefile
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / share / examples / sunrpc / msg / Makefile
1 #
2 # @(#)Makefile  2.1 88/08/11 4.0 RPCSRC
3 #
4 # $FreeBSD$
5 #
6 PACKAGE=examples
7 FILESDIR=${SHAREDIR}/examples/sunrpc/msg
8 BIN = printmsg msg_svc rprintmsg
9 GEN = msg_clnt.c msg_svc.c msg.h
10 LIB = -lrpclib
11 RPCCOM = rpcgen
12
13 all: $(BIN)
14
15 #
16 # This is the non-networked version of the program
17 #
18 printmsg: 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
28 msg_svc: msg_proc.o msg_svc.o
29         $(CC) -o $@ msg_proc.o msg_svc.o $(LIB)
30
31 rprintmsg: rprintmsg.o msg_clnt.o
32         $(CC) -o $@ rprintmsg.o msg_clnt.o $(LIB)
33
34 rprintmsg.o: rprintmsg.c msg.h
35
36 msg_proc.o: msg_proc.c msg.h
37
38 clean cleanup:
39         rm -f $(GEN) *.o $(BIN)
40