[Ocfs2-tools-devel] [PATCH 18/19] Ocfs2-tools: Add Makefile for o2info.

Sunil Mushran sunil.mushran at oracle.com
Fri Apr 16 16:21:35 PDT 2010


So this also should be earlier. As you add a .c, add it here.

Tristan Ye wrote:
> Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
> ---
>  o2info/Makefile |   38 ++++++++++++++++++++++++++++++++++++++
>  1 files changed, 38 insertions(+), 0 deletions(-)
>  create mode 100644 o2info/Makefile
>
> diff --git a/o2info/Makefile b/o2info/Makefile
> new file mode 100644
> index 0000000..fe53466
> --- /dev/null
> +++ b/o2info/Makefile
> @@ -0,0 +1,38 @@
> +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.
> +DEFINES = -DVERSION=\"$(VERSION)\"
> +
> +MANS = o2info.1
> +
> +HFILES = o2info.h		\
> +	 utils.h
> +
> +CFILES =			\
> +	main.c		\
> +	operations.c	\
> +	utils.c
> +
> +OBJS = $(subst .c,.o,$(CFILES))
> +
> +DIST_FILES = $(CFILES) $(HFILES) o2info.1.in
> +
> +o2info: $(OBJS) $(LIBOCFS2_DEPS)
> +	$(LINK) $(LIBOCFS2_LIBS) $(LIBTOOLS_INTERNAL_LIBS) $(COM_ERR_LIBS)
> +
> +include $(TOPDIR)/Postamble.make
>   




More information about the Ocfs2-tools-devel mailing list