From 956c0d7d57bf1dee5d52f3cdc1f4a3be4f629727 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Fri, 3 Jan 2025 12:43:35 -0600 Subject: [PATCH] lwp: Move 'rw' to src/lwp/test 'rw' is an old test program; move it to src/lwp/test with the other old tests. While we're here, don't link 'rw' with util.a; it's not needed. Change-Id: I68e0ed5eb07c7b40d1e1e8069b953157fd1087f3 Reviewed-on: https://gerrit.openafs.org/16013 Tested-by: BuildBot Reviewed-by: Cheyenne Wills Reviewed-by: Michael Meffie --- src/lwp/Makefile.in | 8 +------- src/lwp/{ => test}/.gitignore | 0 src/lwp/test/Makefile.in | 5 ++++- src/lwp/{ => test}/rw.c | 0 4 files changed, 5 insertions(+), 8 deletions(-) rename src/lwp/{ => test}/.gitignore (100%) rename src/lwp/{ => test}/rw.c (100%) diff --git a/src/lwp/Makefile.in b/src/lwp/Makefile.in index f83c6dd14a..bc7eb04482 100644 --- a/src/lwp/Makefile.in +++ b/src/lwp/Makefile.in @@ -192,12 +192,6 @@ threadname.o : threadname.c exc_handling.o : exc_handling.c -# -# tests -# -rw: rw.o liblwp.a $(TOP_LIBDIR)/util.a $(TOP_LIBDIR)/libopr.a - $(AFS_LDRULE) rw.o liblwp.a $(TOP_LIBDIR)/util.a $(TOP_LIBDIR)/libopr.a - # # Install targets # @@ -224,6 +218,6 @@ buildtools: ${TOP_LIBDIR}/liblwp.a depinstall # clean: $(LT_CLEAN) - $(RM) -f *.o *.a core rw AFS_component_version_number.c + $(RM) -f *.o *.a core AFS_component_version_number.c include ../config/Makefile.version diff --git a/src/lwp/.gitignore b/src/lwp/test/.gitignore similarity index 100% rename from src/lwp/.gitignore rename to src/lwp/test/.gitignore diff --git a/src/lwp/test/Makefile.in b/src/lwp/test/Makefile.in index 2cda5f8b31..1839d18d07 100644 --- a/src/lwp/test/Makefile.in +++ b/src/lwp/test/Makefile.in @@ -37,5 +37,8 @@ selsubs.o: selsubs.c seltest.h test_key: test_key.o $(AFS_LDRULE) test_key.o ${LIBS} ${TOP_LIBDIR}/util.a +rw: rw.o $(LIBS) $(TOP_LIBDIR)/libopr.a + $(AFS_LDRULE) rw.o $(LIBS) $(TOP_LIBDIR)/libopr.a + clean: - -$(RM) -f *.o *.a test test_key selclient selserver core + -$(RM) -f *.o *.a rw test test_key selclient selserver core diff --git a/src/lwp/rw.c b/src/lwp/test/rw.c similarity index 100% rename from src/lwp/rw.c rename to src/lwp/test/rw.c