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
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
17 INCDIRS= -I${TOP_INCDIR} -I.. -I. -I${srcdir} -I${srcdir}/.. -I${TOP_OBJDIR}/src/config
18 LDIRS= -L.. -L${TOP_LIBDIR}
19 LIBS= ${TOP_LIBDIR}/libcmd.a ../librx.a ${TOP_LIBDIR}/liblwp.a \
20 ${TOP_LIBDIR}/util.a ${TOP_LIBDIR}/libsys.a ${XLIBS}
22 CFLAGS = ${OPTIMIZE} ${INCDIRS} -DRXDEBUG ${LDIRS} ${XCFLAGS} ${ARCHFLAGS}
24 RXTESTOBJS = testclient.o testserver.o kstest.o kctest.o
26 BASICINCLS = ../rx_clock.h ../rx_queue.h ../rx_event.h
28 LINK = ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
30 TESTS = testclient testserver kstest kctest testqueue tableGen generator
32 TH_TESTS = th_testserver th_testclient
40 th_test th_tests: ${TH_TESTS}
42 testclient: ../librx.a testclient.o
45 testserver: ../librx.a testserver.o
48 kstest: ../librx.a kstest.o
51 kctest: ../librx.a kctest.o
54 # th_ versions only have link lines for Solaris now.
55 th_testclient: th_testclient.o ../../libafsrpc/libafsrpc.so
56 ${CC} ${CFLAGS} -mt -o th_testclient th_testclient.o \
57 ../../libafsrpc/libafsrpc.so -lpthread
59 th_testclient.o: testclient.c
60 ${CC} ${CFLAGS} -DAFS_PTHREAD_ENV -mt -c -o th_testclient.o \
61 ${srcdir}/testclient.c
63 th_testserver: th_testserver.o ../../libafsrpc/libafsrpc.so
64 ${CC} ${CFLAGS} -mt -o th_testserver th_testserver.o \
65 ../../libafsrpc/libafsrpc.so -lpthread
67 th_testserver.o: testserver.c
68 ${CC} ${CFLAGS} -DAFS_PTHREAD_ENV -mt -c -o th_testserver.o \
69 ${srcdir}/testserver.c
71 testqueue: ../librx.a testqueue.o
74 ${RXTESTOBJS}: ${BASICINCLS} ../rx.h
77 $(RM) -f *.o *.a ${TESTS} ${TH_TESTS} core