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