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