Build system: Move install definitions to include
[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
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_LIBDIR}/libcmd.a  ${TOP_LIBDIR}/libafscom_err.a \
30         ${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a \
31         ${MT_LIBS} ${ULIBS} ${XLIBS} ${LIBRPC} -lpthread
32
33 THRULE = ${MT_CC} $(COMMON_CFLAGS) $(MT_CFLAGS)
34
35 noversion all test system: stress
36
37 clean:
38         $(RM) -f *.o stress.cs.c stress.ss.c stress.xdr.c stress.h \
39                 stress_errs.c stress_errs.h stress th_*
40
41 stress.ss.o: stress.ss.c
42 stress.cs.o: stress.cs.c
43 stress.xdr.o: stress.xdr.c stress.h
44
45 th_stress.ss.o: stress.ss.c
46         ${THRULE} -c stress.ss.c -o th_stress.ss.o
47
48 th_stress.cs.o: stress.cs.c
49         ${THRULE} -c stress.cs.c -o th_stress.cs.o
50         
51 th_stress.xdr.o: stress.xdr.c stress.h
52         ${THRULE} -c stress.xdr.c -o th_stress.xdr.o
53
54 stress.ss.c: stress.rg
55         ${RXGEN} -A -x -S -o stress.ss.c $(srcdir)/stress.rg
56
57 stress.cs.c: stress.rg
58         ${RXGEN} -A -x -C -o stress.cs.c $(srcdir)/stress.rg
59
60 stress.xdr.c: stress.rg
61         ${RXGEN} -A -x -c -o stress.xdr.c $(srcdir)/stress.rg
62
63 stress.h: stress.rg
64         ${RXGEN} -A -x -h -o stress.h $(srcdir)/stress.rg
65
66 stress_errs.o: stress_errs.c
67
68 th_stress_errs.o: stress_errs.c
69         ${THRULE} -c $(srcdir)/stress_errs.c -o th_stress_errs.o
70
71 stress_errs.c stress_errs.h: stress_errs.et
72         $(RM) -f stress_errs.h stress_errs.c; ${COMPILE_ET} -p ${srcdir} stress_errs -h stress_errs
73
74 stress.o: ${HEADERS}
75 stress_c.o: ${HEADERS}
76 stress_s.o: ${HEADERS}
77
78 th_stress.o: stress.c ${HEADERS}
79         ${THRULE} -c $(srcdir)/stress.c -o th_stress.o
80
81 th_stress_c.o: stress_c.c ${HEADERS}
82         ${THRULE} -c $(srcdir)/stress_c.c -o th_stress_c.o
83
84 th_stress_s.o: stress_s.c ${HEADERS}
85         ${THRULE} -c $(srcdir)/stress_s.c -o th_stress_s.o
86
87 stress: stress.o stress.xdr.o stress_c.o stress_s.o stress.cs.o \
88                 stress.ss.o stress_errs.o 
89         $(AFS_LDRULE) stress.o stress.xdr.o stress_c.o \
90                 stress_s.o stress.cs.o stress.ss.o stress_errs.o \
91                 ${LIBS} ${XLIBS}
92
93 th_stress: th_stress.o th_stress.xdr.o th_stress_c.o th_stress_s.o \
94                 th_stress.cs.o th_stress.ss.o stress_errs.o \
95                 ${LIBRPC}
96         $(AFS_LDRULE) th_stress.o th_stress.xdr.o th_stress_c.o \
97                 th_stress_s.o th_stress.cs.o th_stress.ss.o stress_errs.o \
98                 ${THLIBS} ${XLIBS}
99