aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-09-22 01:19:38 +0100
committerAndy Whitcroft <apw@shadowen.org>2008-10-14 17:36:08 +0100
commite6ff6bb5173deb581a0c9d5a25bf802fa2fff33d (patch)
treec831ff312049a209b8855c4a72d66266b9889ffc /Makefile
parentffe1dc216841f14677fee593cb10c2b222c1ecf4 (diff)
downloadlibhugetlbfs-e6ff6bb5173deb581a0c9d5a25bf802fa2fff33d.tar.gz
hugeadm: initial basic framework
Add a very basic framework for hugeadm, the administrator pool configuration helper. Signed-off-by: Andy Whitcroft <apw@shadowen.org> Acked-by: Mel Gorman <mel@csn.ul.ie> Acked-by: Adam Litke <agl@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 09dabaa..72de9c7 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ EXEDIR = /bin
LIBOBJS = hugeutils.o version.o init.o morecore.o debug.o alloc.o shm.o kernel-features.o
INSTALL_OBJ_LIBS = libhugetlbfs.so libhugetlbfs.a
BIN_OBJ_DIR=obj
-INSTALL_BIN = hugectl hugeedit
+INSTALL_BIN = hugectl hugeedit hugeadm
INSTALL_HEADERS = hugetlbfs.h
INSTALL_MAN1 = pagesize.1
INSTALL_MAN3 = get_huge_pages.3 gethugepagesizes.3 getpagesizes.3
@@ -264,6 +264,12 @@ $(BIN_OBJ_DIR)/hugeedit: $(BIN_OBJ_DIR)/hugeedit.o
mkdir -p $(BIN_OBJ_DIR)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBPATHS) -o $@ $^
+HUGEADM_OBJ=hugeadm.o hugeutils.o debug.o
+$(BIN_OBJ_DIR)/hugeadm: $(foreach file,$(HUGEADM_OBJ),$(BIN_OBJ_DIR)/$(file))
+ @$(VECHO) LDHOST $@
+ mkdir -p $(BIN_OBJ_DIR)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LIBPATHS) -o $@ $^
+
clean:
@$(VECHO) CLEAN
rm -f *~ *.o *.so *.a *.d *.i core a.out $(VERSION)