1997-10-15 10:47:20 +08:00
|
|
|
#
|
|
|
|
# Standard e2fsprogs prologue....
|
|
|
|
#
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
top_builddir = ..
|
|
|
|
my_dir = util
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
|
|
|
SRCS = $(srcdir)/subst.c
|
|
|
|
|
|
|
|
@MCONFIG@
|
|
|
|
|
|
|
|
.c.o:
|
2009-07-02 12:11:17 +08:00
|
|
|
$(E) " CC $<"
|
|
|
|
$(Q) $(BUILD_CC) -c $(BUILD_CFLAGS) $< -o $@
|
2013-10-12 11:02:12 +08:00
|
|
|
$(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
|
2014-05-12 06:32:07 +08:00
|
|
|
$(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
|
1997-10-15 10:47:20 +08:00
|
|
|
|
2012-05-13 11:13:24 +08:00
|
|
|
PROGS= subst symlinks
|
1997-10-15 10:47:20 +08:00
|
|
|
|
2003-03-23 14:37:53 +08:00
|
|
|
all:: $(PROGS) gen-tarball
|
1997-10-15 10:47:20 +08:00
|
|
|
|
2014-01-03 13:26:43 +08:00
|
|
|
dirpaths.h:
|
|
|
|
$(E) " CREATE dirpaths.h"
|
|
|
|
$(Q) echo "/* fake dirpaths.h for config.h */" > dirpaths.h
|
|
|
|
|
|
|
|
subst.o: dirpaths.h
|
|
|
|
|
1997-10-15 10:47:20 +08:00
|
|
|
subst: subst.o
|
2009-07-02 12:11:17 +08:00
|
|
|
$(E) " LD $@"
|
|
|
|
$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o
|
1997-10-15 10:47:20 +08:00
|
|
|
|
2005-01-21 14:20:44 +08:00
|
|
|
copy_sparse: copy_sparse.o
|
2009-07-02 12:11:17 +08:00
|
|
|
$(E) " LD $@"
|
|
|
|
$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o
|
2005-01-21 14:20:44 +08:00
|
|
|
|
2012-05-13 11:13:24 +08:00
|
|
|
symlinks: symlinks.o
|
|
|
|
$(E) " LD $@"
|
|
|
|
$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o symlinks symlinks.o
|
|
|
|
|
2003-03-23 14:37:53 +08:00
|
|
|
gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status
|
2009-07-02 12:11:17 +08:00
|
|
|
$(E) " CONFIG.STATUS $@"
|
|
|
|
$(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
|
|
|
|
$(Q) chmod +x gen-tarball
|
2003-03-23 14:37:53 +08:00
|
|
|
|
|
|
|
tarballs: gen-tarball
|
|
|
|
sh gen-tarball debian
|
|
|
|
sh gen-tarball all
|
|
|
|
sh gen-tarball subset
|
|
|
|
|
2014-02-23 13:17:09 +08:00
|
|
|
clean::
|
2005-01-21 14:20:44 +08:00
|
|
|
$(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
|
2015-07-02 07:40:23 +08:00
|
|
|
copy-sparse dirpaths.h install-symlink
|
1997-10-15 10:47:20 +08:00
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
1999-11-20 02:42:30 +08:00
|
|
|
$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
|
1997-10-15 10:47:20 +08:00
|
|
|
|
|
|
|
# +++ Dependency line eater +++
|
|
|
|
#
|
|
|
|
# Makefile dependencies follow. This must be the last section in
|
|
|
|
# the Makefile.in file
|
|
|
|
#
|
2014-01-10 04:59:29 +08:00
|
|
|
subst.o: $(srcdir)/subst.c $(top_builddir)/lib/config.h dirpaths.h
|