backport to buster
[hcoop/debian/openafs.git] / src / rx / test / 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
8srcdir=@srcdir@
9include @TOP_OBJDIR@/src/config/Makefile.config
10include @TOP_OBJDIR@/src/config/Makefile.lwp
11
12
13LDIRS= -L.. -L${TOP_LIBDIR}
14LIBS= ${TOP_LIBDIR}/libcmd.a ../librx.a ${TOP_LIBDIR}/liblwp.a \
15 ${TOP_LIBDIR}/util.a ${TOP_LIBDIR}/libsys.a ${XLIBS}
16
17MODULE_CFLAGS=-DRXDEBUG
18
19RXTESTOBJS = testclient.o testserver.o kstest.o kctest.o
20
21BASICINCLS = ../rx_clock.h ../rx_queue.h ../rx_event.h
22
23LINK = $(AFS_LDRULE) $@.o ${LIBS}
24MT_LINK = $(CC) $(MT_CFLAGS) $(COMMON_CFLAGS) $(AFS_LDFLAGS) -o $@ \
25 $@.o $(TOP_LIBDIR)/libafsrpc.a $(TOP_LIBDIR)/libopr.a \
26 $(LIB_hcrypto) $(LIB_roken) \
27 $(MT_LIBS)
28
29TESTS = testclient testserver kstest kctest testqueue tableGen generator
30
31TH_TESTS = th_testserver th_testclient
32
33
34all: test
35
36test tests: ${TESTS}
37
38th_test th_tests: ${TH_TESTS}
39
40testclient: ../librx.a testclient.o
41 ${LINK}
42
43testserver: ../librx.a testserver.o
44 ${LINK}
45
46kstest: ../librx.a kstest.o
47 ${LINK}
48
49kctest: ../librx.a kctest.o
50 ${LINK}
51
52rxperf: rxperf.o ../librx.a
53 ${LINK}
54
55# th_ versions only have link lines for Solaris now.
56th_testclient: th_testclient.o $(TOP_LIBDIR)/libafsrpc.a
57 $(MT_LINK)
58
59th_testclient.o: testclient.c
60 $(MT_CC) $(COMMON_CFLAGS) $(MT_CFLAGS) -c -o th_testclient.o \
61 ${srcdir}/testclient.c
62
63th_testserver: th_testserver.o $(TOP_LIBDIR)/libafsrpc.a
64 $(MT_LINK)
65
66th_testserver.o: testserver.c
67 $(MT_CC) $(COMMON_CFLAGS) $(MT_CFLAGS) -c -o th_testserver.o \
68 ${srcdir}/testserver.c
69
70th_rxperf: th_rxperf.o ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/libopr.a
71 $(MT_LINK)
72
73th_rxperf.o: rxperf.c
74 $(MT_CC) $(COMMON_CFLAGS) $(MT_CFLAGS) -c $(srcdir)/rxperf.c \
75 -o th_rxperf.o
76
77testqueue: ../librx.a testqueue.o
78 ${LINK}
79
80${RXTESTOBJS}: ${BASICINCLS} ../rx.h
81
82clean:
83 $(RM) -f *.o *.a ${TESTS} ${TH_TESTS} core