1 # Copyright 2000, International Business Machines Corporation and others.
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
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
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}
17 MODULE_CFLAGS=-DRXDEBUG
19 RXTESTOBJS = testclient.o testserver.o kstest.o kctest.o
21 BASICINCLS = ../rx_clock.h ../rx_queue.h ../rx_event.h
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)
27 TESTS = testclient testserver kstest kctest testqueue tableGen generator
29 TH_TESTS = th_testserver th_testclient
37 th_test th_tests: ${TH_TESTS}
39 testclient: ../librx.a testclient.o
42 testserver: ../librx.a testserver.o
45 kstest: ../librx.a kstest.o
48 kctest: ../librx.a kctest.o
51 rxperf: rxperf.o ../librx.a
54 # th_ versions only have link lines for Solaris now.
55 th_testclient: th_testclient.o $(TOP_LIBDIR)/libafsrpc.a
58 th_testclient.o: testclient.c
59 $(MT_CC) $(COMMON_CFLAGS) $(MT_CFLAGS) -c -o th_testclient.o \
60 ${srcdir}/testclient.c
62 th_testserver: th_testserver.o $(TOP_LIBDIR)/libafsrpc.a
65 th_testserver.o: testserver.c
66 $(MT_CC) $(COMMON_CFLAGS) $(MT_CFLAGS) -c -o th_testserver.o \
67 ${srcdir}/testserver.c
69 th_rxperf: th_rxperf.o ${TOP_LIBDIR}/libafsrpc.a
73 $(MT_CC) $(COMMON_CFLAGS) $(MT_CFLAGS) -c $(srcdir)/rxperf.c \
76 testqueue: ../librx.a testqueue.o
79 ${RXTESTOBJS}: ${BASICINCLS} ../rx.h
82 $(RM) -f *.o *.a ${TESTS} ${TH_TESTS} core