tests: Add a RX functionality test
[openafs.git] / tests / rpctestlib / 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 # Portions Copyright (c) 2003 Apple Computer, Inc.
9
10 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 include @TOP_OBJDIR@/src/config/Makefile.pthread
13
14
15 RTL=@TOP_OBJDIR@/tests/rpctestlib
16 RX=@TOP_OBJDIR@/src/rx
17 VICED=@TOP_OBJDIR@/src/viced
18 UTIL=@TOP_OBJDIR@/src/util
19 FSINT=@TOP_OBJDIR@/src/fsint
20 MCAS=@TOP_OBJDIR@/src/mcas
21 OSI=@TOP_OBJDIR@/src/osi
22
23 MODULE_CFLAGS=-DNINTERFACE -DRXDEBUG -DFSSYNC_BUILD_SERVER \
24               -DSALVSYNC_BUILD_CLIENT -I${RX} -I${MCAS} ${OSI_XCFLAGS} \
25               ${MCAS_CFLAGS} -DSUBSYS_LOG_MACRO=RTLLog
26
27 headers= ${RTL}/rpc_test_procs.h
28
29 RTLOBJS= rpc_test_procs.o rpc_test_cb_procs.o
30
31 FSINTOBJS= afsaux.o afscbint.ss.o afsint.cs.o afscbint.xdr.o \
32         afsint.xdr.o
33
34 RXOBJS = rx_pthread.o
35
36 LIBOBJS= ${RTLOBJS} ${FSINTOBJS} ${RXOBJS}
37
38 LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/util.a
39
40 all: xmpl_driver
41
42 CFLAGS_rx_pthread.o = -DDPF_FSLOG
43
44 rx_pthread.o: ${RX}/rx_pthread.c
45
46 rpc_test_main.o: ${RTL}/rpc_test_main.c ${headers}
47 rpc_test_procs.o: ${RTL}/rpc_test_procs.c ${headers}
48 rpc_test_cb_procs.o: ${RTL}/rpc_test_cb_procs.c ${headers}
49
50 CFLAGS_afsaux.o = -I{FSINT}
51 afsaux.o: ${FSINT}/afsaux.c
52 afscbint.ss.o: ${FSINT}/afscbint.ss.c
53 afsint.cs.o: ${FSINT}/afsint.cs.c
54 afsint.ss.o: ${FSINT}/afsint.ss.c
55 afsint.xdr.o: ${FSINT}/afsint.xdr.c
56 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
57
58 xmpl_driver: librpc_test_lib.a rpc_test_main.o ${LIBS}
59         $(AFS_LDRULE) rpc_test_main.o librpc_test_lib.a \
60                 ${LIBS} ${MT_LIBS} ${XLIBS}
61
62 librpc_test_lib.a: ${LIBOBJS}
63         $(RM) -f $@
64         $(AR) crv $@ ${LIBOBJS}
65         $(RANLIB) $@
66
67 install:
68
69 dest:
70
71 clean:
72         $(RM) -f *.o *.a *.gch xmpl_driver core
73
74 include @TOP_OBJDIR@/src/config/Makefile.version