Home | History | Annotate | Download | only in util
      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 
     20 PROGS=		subst
     21 
     22 all:: $(PROGS) gen-tarball
     23 
     24 subst: subst.o
     25 	$(E) "	LD $@"
     26 	$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o
     27 
     28 copy_sparse: copy_sparse.o
     29 	$(E) "	LD $@"
     30 	$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o
     31 
     32 gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status
     33 	$(E) "	CONFIG.STATUS $@"
     34 	$(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
     35 	$(Q) chmod +x gen-tarball
     36 
     37 tarballs: gen-tarball
     38 	sh gen-tarball debian
     39 	sh gen-tarball all
     40 	sh gen-tarball subset
     41 
     42 clean:
     43 	$(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
     44 		copy-sparse
     45 
     46 mostlyclean: clean
     47 
     48 distclean: clean
     49 	$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
     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
     57