Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 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: |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 17 | @echo " CC $<" |
| 18 | @$(BUILD_CC) -c $(ALL_CFLAGS) $< -o $@ |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 19 | |
| 20 | PROGS= subst |
| 21 | |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 22 | all:: $(PROGS) gen-tarball |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 23 | |
| 24 | subst: subst.o |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 25 | @echo " LD $@" |
| 26 | @$(BUILD_CC) $(ALL_LDFLAGS) -o subst subst.o |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 27 | |
Theodore Ts'o | 0d2993d | 2005-01-21 01:20:44 -0500 | [diff] [blame] | 28 | copy_sparse: copy_sparse.o |
| 29 | @echo " LD $@" |
| 30 | @$(BUILD_CC) $(ALL_LDFLAGS) -o copy_sparse copy_sparse.o |
| 31 | |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 32 | gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 33 | @echo " CONFIG.STATUS $@" |
| 34 | @cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status |
| 35 | @chmod +x gen-tarball |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 36 | |
| 37 | tarballs: gen-tarball |
| 38 | sh gen-tarball debian |
| 39 | sh gen-tarball all |
| 40 | sh gen-tarball subset |
| 41 | |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 42 | clean: |
Theodore Ts'o | 0d2993d | 2005-01-21 01:20:44 -0500 | [diff] [blame] | 43 | $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \ |
| 44 | copy-sparse |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 45 | |
| 46 | mostlyclean: clean |
| 47 | |
| 48 | distclean: clean |
Theodore Ts'o | 5c36a2f | 1999-11-19 18:42:30 +0000 | [diff] [blame] | 49 | $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 50 | |
| 51 | # +++ Dependency line eater +++ |
| 52 | # |
| 53 | # Makefile dependencies follow. This must be the last section in |
| 54 | # the Makefile.in file |
| 55 | # |
| 56 | subst.o: $(srcdir)/subst.c |