Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / rx / simple.example / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3 #
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11 # This set of definitions tests the lwp RX library
12 # include @TOP_OBJDIR@/src/config/Makefile.lwp
13 # LIBS=${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/liblwp.a
14
15 # This set of definitions tests the pthread one
16 include @TOP_OBJDIR@/src/config/Makefile.pthread
17 LIBS=$(TOP_LIBDIR)/libafsauthent.a $(TOP_LIBDIR)/libafsrpc.a \
18 $(TOP_LIBDIR)/util.a
19
20 all: sample_client sample_server
21
22 sample_client: sample_client.o ${LIBS} sample.cs.o
23 $(AFS_LDRULE) sample_client.o sample.cs.o ${LIBS}
24
25 sample_server: sample_server.o sample.ss.o ${LIBS}
26 $(AFS_LDRULE) sample_server.o sample.ss.o ${LIBS}
27
28 sample_client.o: sample.h
29 sample_server.o: sample.h
30 sample.cs.c: sample.xg
31 $(RXGEN) -A -x -C -o $@ sample.xg
32 sample.ss.c: sample.xg
33 $(RXGEN) -A -x -S -o $@ sample.xg
34 sample.h: sample.xg
35 $(RXGEN) -A -x -h -o $@ sample.xg
36
37 clean:
38 rm -f *.o sample.cs.c sample.ss.c sample_client sample_server