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 21 PROGS= subst symlinks 22 23 all:: $(PROGS) gen-tarball 24 25 subst: subst.o 26 $(E) " LD $@" 27 $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o 28 29 copy_sparse: copy_sparse.o 30 $(E) " LD $@" 31 $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o 32 33 symlinks: symlinks.o 34 $(E) " LD $@" 35 $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o symlinks symlinks.o 36 37 gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status 38 $(E) " CONFIG.STATUS $@" 39 $(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status 40 $(Q) chmod +x gen-tarball 41 42 tarballs: gen-tarball 43 sh gen-tarball debian 44 sh gen-tarball all 45 sh gen-tarball subset 46 47 clean: 48 $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \ 49 copy-sparse 50 51 mostlyclean: clean 52 53 distclean: clean 54 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old 55 56 # +++ Dependency line eater +++ 57 # 58 # Makefile dependencies follow. This must be the last section in 59 # the Makefile.in file 60 # 61 subst.o: $(srcdir)/subst.c 62