[Ocfs2-tools-devel] [PATCH 7/7] Ocfs2-tests: Add makefile for xattr tests.
Tristan Ye
tristan.ye at oracle.com
Sun Sep 7 21:59:08 PDT 2008
Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
programs/xattr_tests/Makefile | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
create mode 100644 programs/xattr_tests/Makefile
diff --git a/programs/xattr_tests/Makefile b/programs/xattr_tests/Makefile
new file mode 100644
index 0000000..bd1fd28
--- /dev/null
+++ b/programs/xattr_tests/Makefile
@@ -0,0 +1,27 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+TESTS = xattr-test xattr-multi-test
+
+CFLAGS = -O2 -Wall -g
+
+MPI_LINK = $(MPICC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+SOURCES = xattr-test.c xattr-test-utils.c xattr-multi-test.c xattr-test.h
+OBJECTS = $(patsubst %.c,%.o,$(SOURCES))
+
+DIST_FILES = $(SOURCES)
+
+BIN_PROGRAMS = xattr-test xattr-multi-test
+
+xattr-test: xattr-test.o xattr-test-utils.o xattr-test.h
+ $(LINK)
+
+xattr-multi-test: xattr-multi-test.o xattr-test-utils.o xattr-test.h
+ $(MPI_LINK)
+
+xattr-multi-test.o: xattr-multi-test.c
+ $(MPICC) -c xattr-multi-test.c
+
+include $(TOPDIR)/Postamble.make
--
1.5.5
More information about the Ocfs2-tools-devel
mailing list