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