xref: /freebsd/share/examples/sunrpc/msg/Makefile (revision a5921bc3653e2e286715e6fe8d473ec0d02da38c)
1944fcc15SGarrett Wollman#
2944fcc15SGarrett Wollman# @(#)Makefile	2.1 88/08/11 4.0 RPCSRC
3944fcc15SGarrett Wollman#
4*a5921bc3SGlen Barber# $FreeBSD$
5*a5921bc3SGlen Barber#
6*a5921bc3SGlen BarberPACKAGE=examples
7*a5921bc3SGlen BarberFILESDIR=${SHAREDIR}/examples/sunrpc/msg
8944fcc15SGarrett WollmanBIN = printmsg msg_svc rprintmsg
9944fcc15SGarrett WollmanGEN = msg_clnt.c msg_svc.c msg.h
10944fcc15SGarrett WollmanLIB = -lrpclib
11944fcc15SGarrett WollmanRPCCOM = rpcgen
12944fcc15SGarrett Wollman
13944fcc15SGarrett Wollmanall: $(BIN)
14944fcc15SGarrett Wollman
15944fcc15SGarrett Wollman#
16944fcc15SGarrett Wollman# This is the non-networked version of the program
17944fcc15SGarrett Wollman#
18944fcc15SGarrett Wollmanprintmsg: printmsg.o
19944fcc15SGarrett Wollman	$(CC) -o $@ printmsg.o
20944fcc15SGarrett Wollman
21944fcc15SGarrett Wollman#
22944fcc15SGarrett Wollman# note: no xdr routines are generated here, due this service's
23944fcc15SGarrett Wollman#       use of basic data types.
24944fcc15SGarrett Wollman#
25944fcc15SGarrett Wollman$(GEN): msg.x
26944fcc15SGarrett Wollman	$(RPCCOM) msg.x
27944fcc15SGarrett Wollman
28944fcc15SGarrett Wollmanmsg_svc: msg_proc.o msg_svc.o
29944fcc15SGarrett Wollman	$(CC) -o $@ msg_proc.o msg_svc.o $(LIB)
30944fcc15SGarrett Wollman
31944fcc15SGarrett Wollmanrprintmsg: rprintmsg.o msg_clnt.o
32944fcc15SGarrett Wollman	$(CC) -o $@ rprintmsg.o msg_clnt.o $(LIB)
33944fcc15SGarrett Wollman
34944fcc15SGarrett Wollmanrprintmsg.o: rprintmsg.c msg.h
35944fcc15SGarrett Wollman
36944fcc15SGarrett Wollmanmsg_proc.o: msg_proc.c msg.h
37944fcc15SGarrett Wollman
38944fcc15SGarrett Wollmanclean cleanup:
39944fcc15SGarrett Wollman	rm -f $(GEN) *.o $(BIN)
40944fcc15SGarrett Wollman
41