[Ocfs2-tools-devel] [PATCH 6/7] defrag Makefile

Larry Chen lchen at suse.com
Fri Oct 12 03:20:13 PDT 2018


Signed-off-by: Larry Chen <lchen at suse.com>
---
 defragfs.ocfs2/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 defragfs.ocfs2/Makefile

diff --git a/defragfs.ocfs2/Makefile b/defragfs.ocfs2/Makefile
new file mode 100644
index 00000000..8740d33f
--- /dev/null
+++ b/defragfs.ocfs2/Makefile
@@ -0,0 +1,40 @@
+TOPDIR = ..
+
+include $(TOPDIR)/Preamble.make
+
+sbindir = $(root_sbindir)
+SBIN_PROGRAMS = defragfs.ocfs2
+
+DEFINES += -DVERSION=\"$(VERSION)\"
+
+
+INCLUDES = -I$(TOPDIR)/include -I./include
+DEFINES = -DVERSION=\"$(VERSION)\"
+
+CFILES = main.c record.c libdefrag.c
+HFILES =	\
+	include/libdefrag.h	\
+	include/o2defrag.h	\
+	include/record.h
+
+OBJS = $(subst .c,.o,$(CFILES))
+
+
+DIST_FILES = $(CFILES) $(HFILES) defragfs.ocfs2.8.in
+
+DIST_RULES = dist-subdircreate
+MANS = defragfs.ocfs2.8
+
+defragfs.ocfs2: $(OBJS)
+	$(LINK)
+
+dist-subdircreate:
+	$(TOPDIR)/mkinstalldirs $(DIST_DIR)/include
+
+CLEAN_RULES = defragfs-clean 
+
+defragfs-clean:
+	rm  defragfs.ocfs2.8
+
+.PHONY: defragfs-clean
+include $(TOPDIR)/Postamble.make
-- 
2.13.7




More information about the Ocfs2-tools-devel mailing list