makefile-cleanup-remove-extraneous-semicolons-and-other-unused-bits-20010910
[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 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13 include ../../config/Makefile.${SYS_NAME}
14
15 OPTIMIZE=-g
16
17 INCDIRS= -I${DESTDIR}/include -I..
18
19 HEADERS = ../rxkad.h stress.h stress_internal.h stress_errs.h
20
21 LDIR= ${DESTDIR}/lib/
22 ULIBS = ${LDIR}/afs/libcmd.a ${LDIR}/afs/libcom_err.a ${DESTDIR}/lib/afs/util.a
23
24 LIBS = ../librxkad.a  ${LDIR}/librx.a ${LDIR}/libdes.a \
25         ${LDIR}/liblwp.a  ${ULIBS} ${XLIBS}
26
27 LIBRPC = ../../librpc/libafsrpc.so
28 THLIBS= ${LDIR}/afs/libcmd.a  ${LDIR}/afs/libcom_err.a \
29         ${ULIBS} ${XLIBS} ${LIBRPC} -lpthread
30
31 CFLAGS = ${OPTIMIZE} ${INCDIRS} ${XCFLAGS}
32
33
34 THFLAGS = -mt -DAFS_PTHREAD_ENV
35
36 THRULE = ${CC} ${CFLAGS} ${THFLAGS} -c $?
37
38 COMPILE_ET = ${SRCDIR}/bin/compile_et
39
40 noversion all test system: stress
41
42 clean:
43         $(RM) -f *.o stress.cs.c stress.ss.c stress.xdr.c stress.h \
44                 stress_errs.c stress_errs.h stress th_*
45
46 stress.ss.o: stress.ss.c
47 stress.cs.o: stress.cs.c
48 stress.xdr.o: stress.xdr.c stress.h
49
50 th_stress.ss.o: stress.ss.c
51         ${THRULE} -o th_stress.ss.o
52
53 th_stress.cs.o: stress.cs.c
54         ${THRULE} -o th_stress.cs.o
55         
56 th_stress.xdr.o: stress.xdr.c stress.h
57         ${THRULE} -o th_stress.xdr.o
58
59 stress.ss.c stress.cs.c stress.xdr.c stress.h: stress.rg
60         ${SRCDIR}/bin/rxgen stress.rg
61
62 stress_errs.o: stress_errs.c
63
64 th_stress_errs.o: stress_errs.c
65         ${THRULE} -o th_stress_errs.o
66
67 stress_errs.c stress_errs.h: stress_errs.et
68         $(RM) -f stress_errs.h stress_errs.c; ${COMPILE_ET} stress_errs -h stress_errs
69
70 stress.o stress_c.o stress_s.o: ${HEADERS}
71
72 th_stress.o: stress.c ${HEADERS}
73         ${THRULE} -o th_stress.o
74
75 th_stress_c.o: stress_c.c ${HEADERS}
76         ${THRULE} -o th_stress_c.o
77
78 th_stress_s.o: stress_s.c ${HEADERS}
79         ${THRULE} -o th_stress_s.o
80
81 stress: stress.o stress.xdr.o stress_c.o stress_s.o stress.cs.o \
82                 stress.ss.o stress_errs.o 
83         $(CC) $(CFLAGS) -o stress stress.o stress.xdr.o stress_c.o \
84                 stress_s.o stress.cs.o stress.ss.o stress_errs.o ${LIBS}
85
86 th_stress: th_stress.o th_stress.xdr.o th_stress_c.o th_stress_s.o \
87                 th_stress.cs.o th_stress.ss.o stress_errs.o \
88                 ${LIBRPC}
89         ${CC} ${CFLAGS} ${THFLAGS} -o th_stress th_stress.o th_stress.xdr.o \
90                 th_stress_c.o th_stress_s.o th_stress.cs.o th_stress.ss.o \
91                 stress_errs.o ${THLIBS}
92