Whamcloud - gitweb
e2fsck: merge dirs_to_hash when threads finish
[tools/e2fsprogs.git] / util / Makefile.in
index 1c5c9a1..7ad18c0 100644 (file)
@@ -8,32 +8,57 @@ VPATH = @srcdir@
 top_builddir = ..
 my_dir = util
 INSTALL = @INSTALL@
+MKDIR_P = @MKDIR_P@
 
-SRCS = $(srcdir)/subst.c
+SRCS = $(srcdir)/subst.c $(srcdir)/mkutf8data.c
 
 @MCONFIG@
 
 .c.o:
-       $(BUILD_CC) -c $(ALL_CFLAGS) $< -o $@
+       $(E) "  CC $<"
+       $(Q) $(BUILD_CC) -c $(BUILD_CFLAGS) $< -o $@
+       $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
+       $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
 
-PROGS=         subst
+PROGS=         subst symlinks mkutf8data
 
 all:: $(PROGS) gen-tarball
 
+dirpaths.h:
+       $(E) "  CREATE dirpaths.h"
+       $(Q) echo "/* fake dirpaths.h for config.h */" > dirpaths.h
+
+subst.o: dirpaths.h
+
 subst: subst.o
-       $(BUILD_CC) $(ALL_LDFLAGS) -o subst subst.o
+       $(E) "  LD $@"
+       $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o
+
+mkutf8data: mkutf8data.o
+       $(E) "  LD $@"
+       $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o mkutf8data mkutf8data.o
+
+copy_sparse: copy_sparse.o
+       $(E) "  LD $@"
+       $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o
+
+symlinks: symlinks.o
+       $(E) "  LD $@"
+       $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o symlinks symlinks.o
 
 gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status
-       cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
-       chmod +x gen-tarball
+       $(E) "  CONFIG.STATUS $@"
+       $(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
+       $(Q) chmod +x gen-tarball
 
 tarballs: gen-tarball
        sh gen-tarball debian
        sh gen-tarball all
        sh gen-tarball subset
 
-clean:
-       $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball
+clean::
+       $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
+               copy-sparse dirpaths.h install-symlink mkutf8data
 
 mostlyclean: clean
 
@@ -45,4 +70,5 @@ distclean: clean
 # Makefile dependencies follow.  This must be the last section in
 # the Makefile.in file
 #
-subst.o: $(srcdir)/subst.c
+subst.o: $(srcdir)/subst.c $(top_builddir)/lib/config.h dirpaths.h
+mkutf8data.o: $(srcdir)/mkutf8data.c