Import Upstream version 1.8.5
[hcoop/debian/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 include @TOP_OBJDIR@/src/config/Makefile.lwp
11 top_builddir=@TOP_OBJDIR@
12
13
14 CFLAGS=-g -I. -I${srcdir} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS} ${ARCHFLAGS}
15
16 HEADERS = ../rxkad.h stress.h stress_internal.h stress_errs.h
17
18 LIBS=${TOP_LIBDIR}/libauth.a \
19 ${TOP_LIBDIR}/librx.a \
20 ${TOP_LIBDIR}/liblwp.a \
21 ${TOP_LIBDIR}/libsys.a \
22 ${TOP_LIBDIR}/libcmd.a \
23 ${TOP_LIBDIR}/librxkad.a \
24 ${TOP_LIBDIR}/libafshcrypto_lwp.a \
25 ${TOP_LIBDIR}/librx.a \
26 ${TOP_LIBDIR}/libafscom_err.a \
27 ${TOP_LIBDIR}/util.a
28
29 THLIBS= $(top_builddir)/src/cmd/liboafs_cmd.la \
30 ${TOP_LIBDIR}/libafscom_err.a \
31 ${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a \
32 ${MT_LIBS} ${ULIBS} ${LIBRPC} -lpthread
33
34 THRULE = ${MT_CC} $(COMMON_CFLAGS) $(MT_CFLAGS)
35
36 noversion all test system: stress
37
38 clean:
39 $(LT_CLEAN)
40 $(RM) -f *.o stress.cs.c stress.ss.c stress.xdr.c stress.h \
41 stress_errs.c stress_errs.h stress th_*
42
43 stress.ss.o: stress.ss.c
44 stress.cs.o: stress.cs.c
45 stress.xdr.o: stress.xdr.c stress.h
46
47 th_stress.ss.o: stress.ss.c
48 ${THRULE} -c stress.ss.c -o th_stress.ss.o
49
50 th_stress.cs.o: stress.cs.c
51 ${THRULE} -c stress.cs.c -o th_stress.cs.o
52
53 th_stress.xdr.o: stress.xdr.c stress.h
54 ${THRULE} -c stress.xdr.c -o th_stress.xdr.o
55
56 stress.ss.c: stress.rg
57 ${RXGEN} -A -x -S -o stress.ss.c $(srcdir)/stress.rg
58
59 stress.cs.c: stress.rg
60 ${RXGEN} -A -x -C -o stress.cs.c $(srcdir)/stress.rg
61
62 stress.xdr.c: stress.rg
63 ${RXGEN} -A -x -c -o stress.xdr.c $(srcdir)/stress.rg
64
65 stress.h: stress.rg
66 ${RXGEN} -A -x -h -o stress.h $(srcdir)/stress.rg
67
68 stress_errs.o: stress_errs.c
69
70 th_stress_errs.o: stress_errs.c
71 ${THRULE} -c $(srcdir)/stress_errs.c -o th_stress_errs.o
72
73 stress_errs.c: stress_errs.et
74 ${COMPILE_ET_C} -p ${srcdir} stress_errs
75
76 stress_errs.h: stress_errs.et
77 ${COMPILE_ET_H} -p ${srcdir} stress_errs
78
79 stress_c.o: stress_errs.h
80 stress.o: stress_errs.h
81 stress_s.o: stress_errs.h
82
83 stress.o: ${HEADERS}
84 stress_c.o: ${HEADERS}
85 stress_s.o: ${HEADERS}
86
87 th_stress.o: stress.c ${HEADERS}
88 ${THRULE} -c $(srcdir)/stress.c -o th_stress.o
89
90 th_stress_c.o: stress_c.c ${HEADERS}
91 ${THRULE} -c $(srcdir)/stress_c.c -o th_stress_c.o
92
93 th_stress_s.o: stress_s.c ${HEADERS}
94 ${THRULE} -c $(srcdir)/stress_s.c -o th_stress_s.o
95
96 stress: stress.o stress.xdr.o stress_c.o stress_s.o stress.cs.o \
97 stress.ss.o stress_errs.o
98 $(AFS_LDRULE) stress.o stress.xdr.o stress_c.o \
99 stress_s.o stress.cs.o stress.ss.o stress_errs.o \
100 ${LIBS} ${XLIBS}
101
102 th_stress: th_stress.o th_stress.xdr.o th_stress_c.o th_stress_s.o \
103 th_stress.cs.o th_stress.ss.o stress_errs.o \
104 ${LIBRPC}
105 $(LT_LDRULE_static) th_stress.o th_stress.xdr.o th_stress_c.o \
106 th_stress_s.o th_stress.cs.o th_stress.ss.o stress_errs.o \
107 ${THLIBS}
108