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
13 INCDIRS= -I${TOP_INCDIR} -I.. -I. -I${srcdir} -I${srcdir}/.. -I${TOP_OBJDIR}/src/config
14 LDIRS= -L.. -L${TOP_LIBDIR}
15 LIBS= ${TOP_LIBDIR}/libcmd.a ../librx.a ${TOP_LIBDIR}/liblwp.a \
16 ${TOP_LIBDIR}/util.a ${TOP_LIBDIR}/libsys.a ${XLIBS}
18 CFLAGS = ${OPTIMIZE} ${INCDIRS} -DRXDEBUG ${LDIRS} ${XCFLAGS} ${ARCHFLAGS}
20 RXTESTOBJS = testclient.o testserver.o kstest.o kctest.o
22 BASICINCLS = ../rx_clock.h ../rx_queue.h ../rx_event.h
24 LINK = ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
26 TESTS = testclient testserver kstest kctest testqueue tableGen generator
28 TH_TESTS = th_testserver th_testclient
36 th_test th_tests: ${TH_TESTS}
38 testclient: ../librx.a testclient.o
41 testserver: ../librx.a testserver.o
44 kstest: ../librx.a kstest.o
47 kctest: ../librx.a kctest.o
50 # th_ versions only have link lines for Solaris now.
51 th_testclient: th_testclient.o ../../libafsrpc/libafsrpc.so
52 ${CC} ${CFLAGS} -mt -o th_testclient th_testclient.o \
53 ../../libafsrpc/libafsrpc.so -lpthread
55 th_testclient.o: testclient.c
56 ${CC} ${CFLAGS} -DAFS_PTHREAD_ENV -mt -c -o th_testclient.o \
57 ${srcdir}/testclient.c
59 th_testserver: th_testserver.o ../../libafsrpc/libafsrpc.so
60 ${CC} ${CFLAGS} -mt -o th_testserver th_testserver.o \
61 ../../libafsrpc/libafsrpc.so -lpthread
63 th_testserver.o: testserver.c
64 ${CC} ${CFLAGS} -DAFS_PTHREAD_ENV -mt -c -o th_testserver.o \
65 ${srcdir}/testserver.c
67 testqueue: ../librx.a testqueue.o
70 ${RXTESTOBJS}: ${BASICINCLS} ../rx.h
73 $(RM) -f *.o *.a ${TESTS} ${TH_TESTS} core