[Ocfs2-test-devel] [PATCH 1/5] Ocfs2-test: Add Makefile for dx_dirs_tests

Tristan Ye tristan.ye at oracle.com
Tue Feb 24 19:12:08 PST 2009


Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
 programs/Makefile               |    3 ++-
 programs/dx_dirs_tests/Makefile |   25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)
 create mode 100644 programs/dx_dirs_tests/Makefile

diff --git a/programs/Makefile b/programs/Makefile
index 9e8dd1a..4f588ce 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -54,7 +54,8 @@ SUBDIRS =			\
 	xattr_tests		\
 	acl_tests		\
 	quota_tests		\
-	inode_alloc_perf_tests
+	inode_alloc_perf_tests	\
+	dx_dirs_tests
 
 ifdef OCFS2_TEST_ENABLE_THIRDPARTY
 SUBDIRS += bonnie dbench iozone postmark
diff --git a/programs/dx_dirs_tests/Makefile b/programs/dx_dirs_tests/Makefile
new file mode 100644
index 0000000..aac6823
--- /dev/null
+++ b/programs/dx_dirs_tests/Makefile
@@ -0,0 +1,25 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+TESTS = dx_dirs_tests
+
+CFLAGS = -O2 -Wall -g $(OCFS2_CFLAGS)
+
+MPI_LINK = $(MPICC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+SOURCES = index_dir.c multi_index_dir.c
+
+DIST_FILES = $(SOURCES) index_dir_run.sh multi_index_dir_run.sh
+
+BIN_EXTRA = index_dir_run.sh multi_index_dir_run.sh
+
+BIN_PROGRAMS = index_dir multi_index_dir
+
+index_dir: index_dir.c
+	$(LINK) $(OCFS2_LIBS)
+
+multi_index_dir: multi_index_dir.c
+	$(MPI_LINK) $(OCFS2_LIBS)
+
+include $(TOPDIR)/Postamble.make
-- 
1.5.5




More information about the Ocfs2-test-devel mailing list