1 # Copyright 2000, International Business Machines Corporation and others.
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
9 include @TOP_OBJDIR@/src/config/Makefile.config
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16 CFLAGS=-g -I. -I${srcdir} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS} ${ARCHFLAGS}
18 HEADERS = ../rxkad.h stress.h stress_internal.h stress_errs.h
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 \
31 THLIBS= ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/libcom_err.a \
32 ${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a \
33 ${MT_LIBS} ${ULIBS} ${XLIBS} ${LIBRPC} -lpthread
35 THRULE = ${MT_CC} ${CFLAGS} ${MT_CFLAGS}
37 noversion all test system: stress
40 $(RM) -f *.o stress.cs.c stress.ss.c stress.xdr.c stress.h \
41 stress_errs.c stress_errs.h stress th_*
43 stress.ss.o: stress.ss.c
44 stress.cs.o: stress.cs.c
45 stress.xdr.o: stress.xdr.c stress.h
47 th_stress.ss.o: stress.ss.c
48 ${THRULE} -c stress.ss.c -o th_stress.ss.o
50 th_stress.cs.o: stress.cs.c
51 ${THRULE} -c stress.cs.c -o th_stress.cs.o
53 th_stress.xdr.o: stress.xdr.c stress.h
54 ${THRULE} -c stress.xdr.c -o th_stress.xdr.o
56 stress.ss.c: stress.rg
57 ${RXGEN} -A -x -S -o stress.ss.c $(srcdir)/stress.rg
59 stress.cs.c: stress.rg
60 ${RXGEN} -A -x -C -o stress.cs.c $(srcdir)/stress.rg
62 stress.xdr.c: stress.rg
63 ${RXGEN} -A -x -c -o stress.xdr.c $(srcdir)/stress.rg
66 ${RXGEN} -A -x -h -o stress.h $(srcdir)/stress.rg
68 stress_errs.o: stress_errs.c
70 th_stress_errs.o: stress_errs.c
71 ${THRULE} -c $(srcdir)/stress_errs.c -o th_stress_errs.o
73 stress_errs.c stress_errs.h: stress_errs.et
74 $(RM) -f stress_errs.h stress_errs.c; ${COMPILE_ET} -p ${srcdir} stress_errs -h stress_errs
77 stress_c.o: ${HEADERS}
78 stress_s.o: ${HEADERS}
80 th_stress.o: stress.c ${HEADERS}
81 ${THRULE} -c $(srcdir)/stress.c -o th_stress.o
83 th_stress_c.o: stress_c.c ${HEADERS}
84 ${THRULE} -c $(srcdir)/stress_c.c -o th_stress_c.o
86 th_stress_s.o: stress_s.c ${HEADERS}
87 ${THRULE} -c $(srcdir)/stress_s.c -o th_stress_s.o
89 stress: stress.o stress.xdr.o stress_c.o stress_s.o stress.cs.o \
90 stress.ss.o stress_errs.o
91 $(CC) $(CFLAGS) -o stress stress.o stress.xdr.o stress_c.o \
92 stress_s.o stress.cs.o stress.ss.o stress_errs.o ${LIBS} ${XLIBS}
94 th_stress: th_stress.o th_stress.xdr.o th_stress_c.o th_stress_s.o \
95 th_stress.cs.o th_stress.ss.o stress_errs.o \
97 ${CC} ${CFLAGS} ${THFLAGS} -o th_stress th_stress.o th_stress.xdr.o \
98 th_stress_c.o th_stress_s.o th_stress.cs.o th_stress.ss.o \
99 stress_errs.o ${THLIBS} ${XLIBS}