Whamcloud - gitweb
LU-13197 e2fsck: consistently use ext2fs_get_mem()
[tools/e2fsprogs.git] / util / Makefile.in
1 #
2 # Standard e2fsprogs prologue....
3 #
4
5 srcdir = @srcdir@
6 top_srcdir = @top_srcdir@
7 VPATH = @srcdir@
8 top_builddir = ..
9 my_dir = util
10 INSTALL = @INSTALL@
11
12 SRCS = $(srcdir)/subst.c $(srcdir)/mkutf8data.c
13
14 @MCONFIG@
15
16 .c.o:
17         $(E) "  CC $<"
18         $(Q) $(BUILD_CC) -c $(BUILD_CFLAGS) $< -o $@
19         $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
20         $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
21
22 PROGS=          subst symlinks mkutf8data
23
24 all:: $(PROGS) gen-tarball
25
26 dirpaths.h:
27         $(E) "  CREATE dirpaths.h"
28         $(Q) echo "/* fake dirpaths.h for config.h */" > dirpaths.h
29
30 subst.o: dirpaths.h
31
32 subst: subst.o
33         $(E) "  LD $@"
34         $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o
35
36 mkutf8data: mkutf8data.o
37         $(E) "  LD $@"
38         $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o mkutf8data mkutf8data.o
39
40 copy_sparse: copy_sparse.o
41         $(E) "  LD $@"
42         $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o
43
44 symlinks: symlinks.o
45         $(E) "  LD $@"
46         $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o symlinks symlinks.o
47
48 gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status
49         $(E) "  CONFIG.STATUS $@"
50         $(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
51         $(Q) chmod +x gen-tarball
52
53 tarballs: gen-tarball
54         sh gen-tarball debian
55         sh gen-tarball all
56         sh gen-tarball subset
57
58 clean::
59         $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
60                 copy-sparse dirpaths.h install-symlink mkutf8data
61
62 mostlyclean: clean
63
64 distclean: clean
65         $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
66
67 # +++ Dependency line eater +++
68
69 # Makefile dependencies follow.  This must be the last section in
70 # the Makefile.in file
71 #
72 subst.o: $(srcdir)/subst.c $(top_builddir)/lib/config.h dirpaths.h
73 mkutf8data.o: $(srcdir)/mkutf8data.c