[Ocfs2-tools-devel] [PATCH 10/11] Ocfs2-tools: Add Makefile for o2info.
Tristan Ye
tristan.ye at oracle.com
Thu Dec 31 00:18:06 PST 2009
Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
o2info/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
create mode 100644 o2info/Makefile
diff --git a/o2info/Makefile b/o2info/Makefile
new file mode 100644
index 0000000..7ff647d
--- /dev/null
+++ b/o2info/Makefile
@@ -0,0 +1,39 @@
+TOPDIR = ..
+
+include $(TOPDIR)/Preamble.make
+
+WARNINGS = -Wall -Wstrict-prototypes -Wno-format -Wmissing-prototypes \
+ -Wmissing-declarations
+
+CFLAGS = $(OPTS) $(WARNINGS)
+
+LIBTOOLS_INTERNAL_LIBS = -L$(TOPDIR)/libtools-internal -ltools-internal
+LIBTOOLS_INTERNAL_DEPS = $(TOPDIR)/libtools-internal/libtools-internal.a
+
+LIBOCFS2_LIBS = -L$(TOPDIR)/libocfs2 -locfs2
+LIBOCFS2_DEPS = $(TOPDIR)/libocfs2/libocfs2.a
+
+BIN_PROGRAMS = o2info
+
+INCLUDES = -I$(TOPDIR)/include -I.
+INCLUDES += $(GLIB_CFLAGS)
+DEFINES = -DVERSION=\"$(VERSION)\"
+
+MANS = o2info.1
+
+HFILES = o2info.h \
+ o2info_utils.h
+
+CFILES = \
+ main.c \
+ o2info_operations.c \
+ o2info_utils.c
+
+OBJS = $(subst .c,.o,$(CFILES))
+
+DIST_FILES = $(CFILES) $(HFILES) o2info.1.in
+
+o2info: $(OBJS) $(LIBOCFS2_DEPS)
+ $(LINK) $(GLIB_LIBS) $(LIBOCFS2_LIBS) $(LIBTOOLS_INTERNAL_LIBS) $(COM_ERR_LIBS)
+
+include $(TOPDIR)/Postamble.make
--
1.5.5
More information about the Ocfs2-tools-devel
mailing list