df82732a15ae17747cd6dd87a40e74fb9584b16a
[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 RTL=@TOP_OBJDIR@/tests/rpctestlib
15 RX = ${srcdir}/../../src/rx
16 VICED=@TOP_OBJDIR@/src/viced
17 FSINT=@TOP_OBJDIR@/src/fsint
18 OSI=@TOP_OBJDIR@/src/osi
19
20 MODULE_CFLAGS=-DNINTERFACE -DRXDEBUG -DFSSYNC_BUILD_SERVER \
21               -DSALVSYNC_BUILD_CLIENT -I${RX} ${OSI_XCFLAGS} \
22               -DSUBSYS_LOG_MACRO=RTLLog
23
24 headers= ${RTL}/rpc_test_procs.h
25
26 RTLOBJS= rpc_test_procs.o rpc_test_cb_procs.o
27
28 FSINTOBJS= afscbint.ss.o afsint.cs.o afscbint.xdr.o \
29         afsint.xdr.o
30
31 RXOBJS = rx_pthread.o
32
33 LIBOBJS= ${RTLOBJS} ${FSINTOBJS} ${RXOBJS}
34
35 LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/libopr.a \
36      $(top_builddir)/src/util/liboafs_util.la
37
38 all: xmpl_driver
39
40 CFLAGS_rx_pthread.o = -DDPF_FSLOG
41
42 rx_pthread.o: ${RX}/rx_pthread.c
43         $(AFS_CCRULE) $(RX)/rx_pthread.c
44
45 rpc_test_main.o: ${RTL}/rpc_test_main.c ${headers}
46 rpc_test_procs.o: ${RTL}/rpc_test_procs.c ${headers}
47 rpc_test_cb_procs.o: ${RTL}/rpc_test_cb_procs.c ${headers}
48
49 afscbint.ss.o: ${FSINT}/afscbint.ss.c
50         $(AFS_CCRULE) ${FSINT}/afscbint.ss.c
51 afsint.cs.o: ${FSINT}/afsint.cs.c
52         $(AFS_CCRULE) ${FSINT}/afsint.cs.c
53 afsint.ss.o: ${FSINT}/afsint.ss.c
54         $(AFS_CCRULE) ${FSINT}/afsint.ss.c
55 afsint.xdr.o: ${FSINT}/afsint.xdr.c
56         $(AFS_CCRULE) ${FSINT}/afsint.xdr.c
57 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
58         $(AFS_CCRULE) ${FSINT}/afscbint.xdr.c
59
60 xmpl_driver: librpc_test_lib.a rpc_test_main.o ${LIBS}
61         $(LT_LDRULE_static) rpc_test_main.o librpc_test_lib.a \
62                 ${LIBS} ${LIB_hcrypto} ${MT_LIBS}
63
64 librpc_test_lib.a: ${LIBOBJS}
65         $(RM) -f $@
66         $(AR) crv $@ ${LIBOBJS}
67         $(RANLIB) $@
68
69 install:
70
71 dest:
72
73 clean:
74         $(LT_CLEAN)
75         $(RM) -f *.o *.a *.gch xmpl_driver core
76
77 include @TOP_OBJDIR@/src/config/Makefile.version