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 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 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 copy_sparse: copy_sparse.o 37 $(E) " LD $@" 38 $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o 39 40 symlinks: symlinks.o 41 $(E) " LD $@" 42 $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o symlinks symlinks.o 43 44 gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status 45 $(E) " CONFIG.STATUS $@" 46 $(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status 47 $(Q) chmod +x gen-tarball 48 49 tarballs: gen-tarball 50 sh gen-tarball debian 51 sh gen-tarball all 52 sh gen-tarball subset 53 54 clean:: 55 $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \ 56 copy-sparse dirpaths.h install-symlink 57 58 mostlyclean: clean 59 60 distclean: clean 61 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old 62 63 # +++ Dependency line eater +++ 64 # 65 # Makefile dependencies follow. This must be the last section in 66 # the Makefile.in file 67 # 68 subst.o: $(srcdir)/subst.c $(top_builddir)/lib/config.h dirpaths.h 69