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
8 BACKDIR=../../../../PARENT/dest/
9 include ../../config/Makefile.${SYS_NAME}
13 INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
15 HEADERS = ../rxkad.h stress.h stress_internal.h stress_errs.h
18 ULIBS = ${LDIR}afs/libcmd.a ${LDIR}afs/libcom_err.a ${DESTDIR}lib/afs/util.a
20 LIBS = ../librxkad.a ${LDIR}librx.a ${LDIR}libdes.a \
21 ${LDIR}liblwp.a ${ULIBS} ${XLIBS}
23 LIBRPC = ../../librpc/libafsrpc.so
24 THLIBS= ${LDIR}afs/libcmd.a ${LDIR}afs/libcom_err.a \
25 ${ULIBS} ${XLIBS} ${LIBRPC} -lpthread
27 CFLAGS = ${OPTIMIZE} ${INCDIRS} ${XCFLAGS}
30 THFLAGS = -mt -DAFS_PTHREAD_ENV
32 THRULE = ${CC} ${CFLAGS} ${THFLAGS} -c $?
34 COMPILE_ET = ${SRCDIR}bin/compile_et
36 noversion all test system: stress
39 rm -f *.o stress.cs.c stress.ss.c stress.xdr.c stress.h \
40 stress_errs.c stress_errs.h stress th_*
42 stress.ss.o: stress.ss.c
43 stress.cs.o: stress.cs.c
44 stress.xdr.o: stress.xdr.c stress.h
46 th_stress.ss.o: stress.ss.c
47 ${THRULE} -o th_stress.ss.o
49 th_stress.cs.o: stress.cs.c
50 ${THRULE} -o th_stress.cs.o
52 th_stress.xdr.o: stress.xdr.c stress.h
53 ${THRULE} -o th_stress.xdr.o
55 stress.ss.c stress.cs.c stress.xdr.c stress.h: stress.rg
56 ${SRCDIR}bin/rxgen stress.rg
58 stress_errs.o: stress_errs.c
60 th_stress_errs.o: stress_errs.c
61 ${THRULE} -o th_stress_errs.o
63 stress_errs.c stress_errs.h: stress_errs.et
64 rm -f stress_errs.h stress_errs.c; ${COMPILE_ET} stress_errs -h stress_errs
66 stress.o stress_c.o stress_s.o: ${HEADERS}
68 th_stress.o: stress.c ${HEADERS}
69 ${THRULE} -o th_stress.o
71 th_stress_c.o: stress_c.c ${HEADERS}
72 ${THRULE} -o th_stress_c.o
74 th_stress_s.o: stress_s.c ${HEADERS}
75 ${THRULE} -o th_stress_s.o
77 stress: stress.o stress.xdr.o stress_c.o stress_s.o stress.cs.o \
78 stress.ss.o stress_errs.o
79 $(CC) $(CFLAGS) -o stress stress.o stress.xdr.o stress_c.o \
80 stress_s.o stress.cs.o stress.ss.o stress_errs.o ${LIBS}
82 th_stress: th_stress.o th_stress.xdr.o th_stress_c.o th_stress_s.o \
83 th_stress.cs.o th_stress.ss.o stress_errs.o \
85 ${CC} ${CFLAGS} ${THFLAGS} -o th_stress th_stress.o th_stress.xdr.o \
86 th_stress_c.o th_stress_s.o th_stress.cs.o th_stress.ss.o \
87 stress_errs.o ${THLIBS}