From a3183361ce12b05d16ff26e1e80e8cba20b0af58 Mon Sep 17 00:00:00 2001 From: zab Date: Thu, 22 May 2003 18:26:24 +0000 Subject: [PATCH] get utils/ building - use 2.5's nice shared lib helpers to build libptlctl --- lnet/utils/Makefile.mk | 4 +++- lustre/portals/utils/Makefile.mk | 4 +++- lustre/utils/Makefile.mk | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 lustre/utils/Makefile.mk diff --git a/lnet/utils/Makefile.mk b/lnet/utils/Makefile.mk index 1bf79aa..8e49eb1 100644 --- a/lnet/utils/Makefile.mk +++ b/lnet/utils/Makefile.mk @@ -2,6 +2,8 @@ include $(src)/../Kernelenv host-progs := acceptor ptlctl -ptlctl-objs := debug.o l_ioctl.o parser.o portals.o ptlctl.o +ptlctl-objs := libptlctl.so ptlctl.o + +libptlctl-objs := debug.o l_ioctl.o parser.o portals.o always := $(host-progs) diff --git a/lustre/portals/utils/Makefile.mk b/lustre/portals/utils/Makefile.mk index 1bf79aa..8e49eb1 100644 --- a/lustre/portals/utils/Makefile.mk +++ b/lustre/portals/utils/Makefile.mk @@ -2,6 +2,8 @@ include $(src)/../Kernelenv host-progs := acceptor ptlctl -ptlctl-objs := debug.o l_ioctl.o parser.o portals.o ptlctl.o +ptlctl-objs := libptlctl.so ptlctl.o + +libptlctl-objs := debug.o l_ioctl.o parser.o portals.o always := $(host-progs) diff --git a/lustre/utils/Makefile.mk b/lustre/utils/Makefile.mk new file mode 100644 index 0000000..142e7af --- /dev/null +++ b/lustre/utils/Makefile.mk @@ -0,0 +1,14 @@ +include $(src)/../portals/Kernelenv + +LIBPTLCTL := -L$(src)/../portals/utils -lptlctl + +host-progs := lctl lfind lstripe obdio obdbarrier obdstat lload +always := $(host-progs) + +lctl-objs := parser.o obd.o lctl.o +HOSTLOADLIBES_lctl += $(LIBREADLINE) $(LIBPTLCTL) +obdio-objs := obdio.o obdiolib.o +obdbarrier-objs := obdbarrier.o obdiolib.o +lload-objs := lload.o +HOSTLOADLIBES_lload += $(LIBPTLCTL) + -- 1.8.3.1