Commit | Line | Data |
---|---|---|
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 | 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 $(TOP_LIBDIR)/libopr.a \ | |
26 | $(LIB_hcrypto) $(LIB_roken) \ | |
27 | $(MT_LIBS) | |
28 | ||
29 | TESTS = testclient testserver kstest kctest testqueue tableGen generator | |
30 | ||
31 | TH_TESTS = th_testserver th_testclient | |
32 | ||
33 | ||
34 | all: test | |
35 | ||
36 | test tests: ${TESTS} | |
37 | ||
38 | th_test th_tests: ${TH_TESTS} | |
39 | ||
40 | testclient: ../librx.a testclient.o | |
41 | ${LINK} | |
42 | ||
43 | testserver: ../librx.a testserver.o | |
44 | ${LINK} | |
45 | ||
46 | kstest: ../librx.a kstest.o | |
47 | ${LINK} | |
48 | ||
49 | kctest: ../librx.a kctest.o | |
50 | ${LINK} | |
51 | ||
52 | rxperf: rxperf.o ../librx.a | |
53 | ${LINK} | |
54 | ||
55 | # th_ versions only have link lines for Solaris now. | |
56 | th_testclient: th_testclient.o $(TOP_LIBDIR)/libafsrpc.a | |
57 | $(MT_LINK) | |
58 | ||
59 | th_testclient.o: testclient.c | |
60 | $(MT_CC) $(COMMON_CFLAGS) $(MT_CFLAGS) -c -o th_testclient.o \ | |
61 | ${srcdir}/testclient.c | |
62 | ||
63 | th_testserver: th_testserver.o $(TOP_LIBDIR)/libafsrpc.a | |
64 | $(MT_LINK) | |
65 | ||
66 | th_testserver.o: testserver.c | |
67 | $(MT_CC) $(COMMON_CFLAGS) $(MT_CFLAGS) -c -o th_testserver.o \ | |
68 | ${srcdir}/testserver.c | |
69 | ||
70 | th_rxperf: th_rxperf.o ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/libopr.a | |
71 | $(MT_LINK) | |
72 | ||
73 | th_rxperf.o: rxperf.c | |
74 | $(MT_CC) $(COMMON_CFLAGS) $(MT_CFLAGS) -c $(srcdir)/rxperf.c \ | |
75 | -o th_rxperf.o | |
76 | ||
77 | testqueue: ../librx.a testqueue.o | |
78 | ${LINK} | |
79 | ||
80 | ${RXTESTOBJS}: ${BASICINCLS} ../rx.h | |
81 | ||
82 | clean: | |
83 | $(RM) -f *.o *.a ${TESTS} ${TH_TESTS} core |