[Ocfs2-tools-devel] [PATCH 7/7] Ocfs2-tests: Add makefile for xattr tests.

marcos.matsunaga at oracle.com marcos.matsunaga at oracle.com
Mon Sep 8 05:47:25 PDT 2008


Tristan,

I don't see the wrapper script.

Add the "BIN_EXTRA = <script names>" to the makefile so that it will install the scripts too.

----- Original Message -----
From: "tristan.ye at oracle.com" <tristan.ye at oracle.com>
To: "ocfs2-tools-devel at oss.oracle.com" <ocfs2-tools-devel at oss.oracle.com>
Sent: Monday, September 8, 2008 1:24:19 AM (GMT-0500) America/New_York
Subject: [Ocfs2-tools-devel] [PATCH 7/7] Ocfs2-tests: Add makefile for xattr tests.

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


_______________________________________________
Ocfs2-tools-devel mailing list
Ocfs2-tools-devel at oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-tools-devel



More information about the Ocfs2-tools-devel mailing list