build-system-specific-makefile-configuration-from-configure-20011031
[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 INCDIRS= -I${DESTDIR}/include -I..
13
14 HEADERS = ../rxkad.h stress.h stress_internal.h stress_errs.h
15
16 LDIR= ${DESTDIR}/lib/
17 ULIBS = ${LDIR}/afs/libcmd.a ${LDIR}/afs/libcom_err.a ${DESTDIR}/lib/afs/util.a
18
19 LIBS = ../librxkad.a  ${LDIR}/librx.a ${LDIR}/libdes.a \
20         ${LDIR}/liblwp.a  ${ULIBS} ${XLIBS}
21
22 LIBRPC = ../../librpc/libafsrpc.so
23 THLIBS= ${LDIR}/afs/libcmd.a  ${LDIR}/afs/libcom_err.a \
24         ${ULIBS} ${XLIBS} ${LIBRPC} -lpthread
25
26 CFLAGS = ${OPTIMIZE} ${INCDIRS} ${XCFLAGS}
27
28
29 THFLAGS = -mt -DAFS_PTHREAD_ENV
30
31 THRULE = ${CC} ${CFLAGS} ${THFLAGS} -c $?
32
33 COMPILE_ET = ${SRCDIR}/bin/compile_et
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} -o th_stress.ss.o
47
48 th_stress.cs.o: stress.cs.c
49         ${THRULE} -o th_stress.cs.o
50         
51 th_stress.xdr.o: stress.xdr.c stress.h
52         ${THRULE} -o th_stress.xdr.o
53
54 stress.ss.c stress.cs.c stress.xdr.c stress.h: stress.rg
55         ${SRCDIR}/bin/rxgen stress.rg
56
57 stress_errs.o: stress_errs.c
58
59 th_stress_errs.o: stress_errs.c
60         ${THRULE} -o th_stress_errs.o
61
62 stress_errs.c stress_errs.h: stress_errs.et
63         $(RM) -f stress_errs.h stress_errs.c; ${COMPILE_ET} -p ${srcdir} stress_errs -h stress_errs
64
65 stress.o stress_c.o stress_s.o: ${HEADERS}
66
67 th_stress.o: stress.c ${HEADERS}
68         ${THRULE} -o th_stress.o
69
70 th_stress_c.o: stress_c.c ${HEADERS}
71         ${THRULE} -o th_stress_c.o
72
73 th_stress_s.o: stress_s.c ${HEADERS}
74         ${THRULE} -o th_stress_s.o
75
76 stress: stress.o stress.xdr.o stress_c.o stress_s.o stress.cs.o \
77                 stress.ss.o stress_errs.o 
78         $(CC) $(CFLAGS) -o stress stress.o stress.xdr.o stress_c.o \
79                 stress_s.o stress.cs.o stress.ss.o stress_errs.o ${LIBS}
80
81 th_stress: th_stress.o th_stress.xdr.o th_stress_c.o th_stress_s.o \
82                 th_stress.cs.o th_stress.ss.o stress_errs.o \
83                 ${LIBRPC}
84         ${CC} ${CFLAGS} ${THFLAGS} -o th_stress th_stress.o th_stress.xdr.o \
85                 th_stress_c.o th_stress_s.o th_stress.cs.o th_stress.ss.o \
86                 stress_errs.o ${THLIBS}
87