1 # Copyright 2000, International Business Machines Corporation and others.
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
8 # Portions Copyright (c) 2003 Apple Computer, Inc.
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 include @TOP_OBJDIR@/src/config/Makefile.pthread
14 RTL=@TOP_OBJDIR@/tests/rpctestlib
15 RX = ${srcdir}/../../src/rx
16 VICED=@TOP_OBJDIR@/src/viced
17 UTIL=@TOP_OBJDIR@/src/util
18 FSINT=@TOP_OBJDIR@/src/fsint
19 MCAS=@TOP_OBJDIR@/src/mcas
20 OSI=@TOP_OBJDIR@/src/osi
22 MODULE_CFLAGS=-DNINTERFACE -DRXDEBUG -DFSSYNC_BUILD_SERVER \
23 -DSALVSYNC_BUILD_CLIENT -I${RX} -I${MCAS} ${OSI_XCFLAGS} \
24 ${MCAS_CFLAGS} -DSUBSYS_LOG_MACRO=RTLLog
26 headers= ${RTL}/rpc_test_procs.h
28 RTLOBJS= rpc_test_procs.o rpc_test_cb_procs.o
30 FSINTOBJS= afsaux.o afscbint.ss.o afsint.cs.o afscbint.xdr.o \
35 LIBOBJS= ${RTLOBJS} ${FSINTOBJS} ${RXOBJS}
37 LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/libopr.a ${TOP_LIBDIR}/util.a
41 CFLAGS_rx_pthread.o = -DDPF_FSLOG
43 rx_pthread.o: ${RX}/rx_pthread.c
44 $(AFS_CCRULE) $(RX)/rx_pthread.c
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}
50 CFLAGS_afsaux.o = -I{FSINT}
51 afsaux.o: ${FSINT}/afsaux.c
52 $(AFS_CCRULE) ${FSINT}/afsaux.c
53 afscbint.ss.o: ${FSINT}/afscbint.ss.c
54 $(AFS_CCRULE) ${FSINT}/afscbint.ss.c
55 afsint.cs.o: ${FSINT}/afsint.cs.c
56 $(AFS_CCRULE) ${FSINT}/afsint.cs.c
57 afsint.ss.o: ${FSINT}/afsint.ss.c
58 $(AFS_CCRULE) ${FSINT}/afsint.ss.c
59 afsint.xdr.o: ${FSINT}/afsint.xdr.c
60 $(AFS_CCRULE) ${FSINT}/afsint.xdr.c
61 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
62 $(AFS_CCRULE) ${FSINT}/afscbint.xdr.c
64 xmpl_driver: librpc_test_lib.a rpc_test_main.o ${LIBS}
65 $(AFS_LDRULE) rpc_test_main.o librpc_test_lib.a \
66 ${LIBS} $(LIB_hcrypto) $(LIB_roken) ${MT_LIBS} ${XLIBS}
68 librpc_test_lib.a: ${LIBOBJS}
70 $(AR) crv $@ ${LIBOBJS}
78 $(RM) -f *.o *.a *.gch xmpl_driver core
80 include @TOP_OBJDIR@/src/config/Makefile.version