faca0a8ab4b45ad0e9025069541aeb27f02480f0
[openafs.git] / src / rxkad / test / Makefile.in
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
11
12 CFLAGS=-g -I. -I${srcdir} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS}
13
14 HEADERS = ../rxkad.h stress.h stress_internal.h stress_errs.h
15
16 LIBS=${TOP_LIBDIR}/librx.a \
17         ${TOP_LIBDIR}/liblwp.a \
18         ${TOP_LIBDIR}/libcmd.a \
19         ${TOP_LIBDIR}/librxkad.a \
20         ${TOP_LIBDIR}/libdes.a \
21         ${TOP_LIBDIR}/librx.a \
22         ${TOP_LIBDIR}/libcom_err.a \
23         ${TOP_LIBDIR}/util.a
24
25 LIBRPC = ../../librpc/libafsrpc.so
26 THLIBS= ${LDIR}/afs/libcmd.a  ${LDIR}/afs/libcom_err.a \
27         ${ULIBS} ${XLIBS} ${LIBRPC} -lpthread
28
29 THFLAGS = -mt -DAFS_PTHREAD_ENV
30
31 THRULE = ${CC} ${CFLAGS} ${THFLAGS} -c $?
32
33 noversion all test system: stress
34
35 clean:
36         $(RM) -f *.o stress.cs.c stress.ss.c stress.xdr.c stress.h \
37                 stress_errs.c stress_errs.h stress th_*
38
39 stress.ss.o: stress.ss.c
40 stress.cs.o: stress.cs.c
41 stress.xdr.o: stress.xdr.c stress.h
42
43 th_stress.ss.o: stress.ss.c
44         ${THRULE} -o th_stress.ss.o
45
46 th_stress.cs.o: stress.cs.c
47         ${THRULE} -o th_stress.cs.o
48         
49 th_stress.xdr.o: stress.xdr.c stress.h
50         ${THRULE} -o th_stress.xdr.o
51
52 stress.ss.c stress.cs.c stress.xdr.c stress.h: stress.rg
53         ${RXGEN} stress.rg
54
55 stress_errs.o: stress_errs.c
56
57 th_stress_errs.o: stress_errs.c
58         ${THRULE} -o th_stress_errs.o
59
60 stress_errs.c stress_errs.h: stress_errs.et
61         $(RM) -f stress_errs.h stress_errs.c; ${COMPILE_ET} -p ${srcdir} stress_errs -h stress_errs
62
63 stress.o stress_c.o stress_s.o: ${HEADERS}
64
65 th_stress.o: stress.c ${HEADERS}
66         ${THRULE} -o th_stress.o
67
68 th_stress_c.o: stress_c.c ${HEADERS}
69         ${THRULE} -o th_stress_c.o
70
71 th_stress_s.o: stress_s.c ${HEADERS}
72         ${THRULE} -o th_stress_s.o
73
74 stress: stress.o stress.xdr.o stress_c.o stress_s.o stress.cs.o \
75                 stress.ss.o stress_errs.o 
76         $(CC) $(CFLAGS) -o stress stress.o stress.xdr.o stress_c.o \
77                 stress_s.o stress.cs.o stress.ss.o stress_errs.o ${LIBS}
78
79 th_stress: th_stress.o th_stress.xdr.o th_stress_c.o th_stress_s.o \
80                 th_stress.cs.o th_stress.ss.o stress_errs.o \
81                 ${LIBRPC}
82         ${CC} ${CFLAGS} ${THFLAGS} -o th_stress th_stress.o th_stress.xdr.o \
83                 th_stress_c.o th_stress_s.o th_stress.cs.o th_stress.ss.o \
84                 stress_errs.o ${THLIBS}
85