Unix: Rework build system
[openafs.git] / src / rxkad / test / Makefile.in
index 7f6ed11..97ce973 100644 (file)
@@ -7,6 +7,8 @@
 
 srcdir=@srcdir@
 include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.lwp
+
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -32,7 +34,7 @@ THLIBS= ${TOP_LIBDIR}/libcmd.a  ${TOP_LIBDIR}/libcom_err.a \
        ${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a \
        ${MT_LIBS} ${ULIBS} ${XLIBS} ${LIBRPC} -lpthread
 
-THRULE = ${MT_CC} ${CFLAGS} ${MT_CFLAGS}
+THRULE = ${MT_CC} $(COMMON_CFLAGS) $(MT_CFLAGS)
 
 noversion all test system: stress
 
@@ -88,13 +90,14 @@ th_stress_s.o: stress_s.c ${HEADERS}
 
 stress: stress.o stress.xdr.o stress_c.o stress_s.o stress.cs.o \
                stress.ss.o stress_errs.o 
-       $(CC) $(CFLAGS) -o stress stress.o stress.xdr.o stress_c.o \
-               stress_s.o stress.cs.o stress.ss.o stress_errs.o ${LIBS} ${XLIBS}
+       $(AFS_LDRULE) stress.o stress.xdr.o stress_c.o \
+               stress_s.o stress.cs.o stress.ss.o stress_errs.o \
+               ${LIBS} ${XLIBS}
 
 th_stress: th_stress.o th_stress.xdr.o th_stress_c.o th_stress_s.o \
                th_stress.cs.o th_stress.ss.o stress_errs.o \
                ${LIBRPC}
-       ${CC} ${CFLAGS} ${THFLAGS} -o th_stress th_stress.o th_stress.xdr.o \
-               th_stress_c.o th_stress_s.o th_stress.cs.o th_stress.ss.o \
-               stress_errs.o ${THLIBS} ${XLIBS}
+       $(AFS_LDRULE) th_stress.o th_stress.xdr.o th_stress_c.o \
+               th_stress_s.o th_stress.cs.o th_stress.ss.o stress_errs.o \
+               ${THLIBS} ${XLIBS}