summaryrefslogtreecommitdiff
path: root/rpc_demo/Makefile.host
diff options
context:
space:
mode:
Diffstat (limited to 'rpc_demo/Makefile.host')
-rw-r--r--rpc_demo/Makefile.host26
1 files changed, 26 insertions, 0 deletions
diff --git a/rpc_demo/Makefile.host b/rpc_demo/Makefile.host
new file mode 100644
index 0000000..5f18def
--- /dev/null
+++ b/rpc_demo/Makefile.host
@@ -0,0 +1,26 @@
+CFLAGS += -g
+
+all: server rprintmsg
+
+rprintmsg: rprintmsg.o msg_clnt.o
+ $(CC) $(CFLAGS) -o rprintmsg rprintmsg.o msg_clnt.o
+
+server: msg_main.o msg_proc.o
+ $(CC) $(CFLAGS) -o server msg_main.o msg_proc.o
+
+clean:
+ rm -f rprintmsg server \
+ msg_main.o msg_server.o msg_proc.o \
+ rprintmsg.o msg_clnt.o \
+ msg_server.h msg_clnt.c msg.h
+
+msg_main.o: msg.h msg_server.h
+
+msg.h: msg.x
+ rpcgen -h msg.x >msg.h
+
+msg_server.h: msg.x
+ rpcgen -m msg.x >msg_server.h
+
+msg_clnt.c: msg.x
+ rpcgen -l msg.x >msg_clnt.c