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