rename some variables in rxperf
[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
13 # impermanent build glue
14 #@ENABLE_XCB@include @TOP_OBJDIR@/src/mcas/Makefile.osi
15
16 INSTALL = @INSTALL@
17 INSTALL_DATA = @INSTALL_DATA@
18 INSTALL_PROGRAM = @INSTALL_PROGRAM@
19 INSTALL_SCRIPT = @INSTALL_SCRIPT@
20
21 RTL=@TOP_OBJDIR@/tests/rpctestlib
22 RX=@TOP_OBJDIR@/src/rx
23 VICED=@TOP_OBJDIR@/src/viced
24 UTIL=@TOP_OBJDIR@/src/util
25 FSINT=@TOP_OBJDIR@/src/fsint
26 MCAS=@TOP_OBJDIR@/src/mcas
27 OSI=@TOP_OBJDIR@/src/osi
28
29 CC=${MT_CC}
30 CFLAGS=${COMMON_CFLAGS} -DNINTERFACE ${MT_CFLAGS} -DRXDEBUG \
31         -DFSSYNC_BUILD_SERVER -DSALVSYNC_BUILD_CLIENT \
32         -I${TOP_SRCDIR} -I${RX} -I${MCAS} ${OSI_XCFLAGS} ${MCAS_CFLAGS} \
33         -DSUBSYS_LOG_MACRO=RTLLog
34
35 CCRULE=${CC} ${CFLAGS} -c $?
36 CCRULE2=${CC} ${CFLAGS} -c $? -o $@
37
38 headers= ${RTL}/rpc_test_procs.h
39
40 RTLOBJS= rpc_test_procs.o rpc_test_cb_procs.o
41
42 FSINTOBJS= afsaux.o afscbint.ss.o afsint.cs.o afscbint.xdr.o \
43         afsint.xdr.o
44
45 RXOBJS = rx_pthread.o
46
47 LIBOBJS= ${RTLOBJS} ${FSINTOBJS} ${RXOBJS}
48
49 LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/util.a
50
51 all: xmpl_driver
52
53 rx_pthread.o: ${RX}/rx_pthread.c
54         ${CCRULE} -DDPF_FSLOG
55
56 rpc_test_main.o: ${RTL}/rpc_test_main.c ${headers}
57         ${CCRULE}
58
59 rpc_test_procs.o: ${RTL}/rpc_test_procs.c ${headers}
60         ${CCRULE}
61
62 rpc_test_cb_procs.o: ${RTL}/rpc_test_cb_procs.c ${headers}
63         ${CCRULE}
64
65 afsaux.o: ${FSINT}/afsaux.c
66         ${CCRULE} -I{FSINT}
67
68 afscbint.ss.o: ${FSINT}/afscbint.ss.c
69         ${CCRULE}
70
71 afsint.cs.o: ${FSINT}/afsint.cs.c
72         ${CCRULE}
73
74 afsint.ss.o: ${FSINT}/afsint.ss.c
75         ${CCRULE}
76
77 afsint.xdr.o: ${FSINT}/afsint.xdr.c
78         ${CCRULE}
79
80 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
81         ${CCRULE}
82
83 xmpl_driver: librpc_test_lib.a rpc_test_main.o ${LIBS}
84         ${CC} ${LDFLAGS} -o $@ rpc_test_main.o \
85         librpc_test_lib.a ${LIBS} ${MT_LIBS} ${XLIBS}
86
87 librpc_test_lib.a: ${LIBOBJS}
88         $(RM) -f $@
89         $(AR) crv $@ ${LIBOBJS}
90         $(RANLIB) $@
91
92 install:
93
94 dest:
95
96 clean:
97         $(RM) -f *.o *.a *.gch xmpl_driver core
98
99 include @TOP_OBJDIR@/src/config/Makefile.version