blob: 8ec00c905e91a5dfcc2c051390a49582b317d7bc [file] [log] [blame]
Theodore Ts'o44339bd1997-10-15 02:47:20 +00001#
2# Standard e2fsprogs prologue....
3#
4
5srcdir = @srcdir@
6top_srcdir = @top_srcdir@
7VPATH = @srcdir@
8top_builddir = ..
9my_dir = util
10INSTALL = @INSTALL@
11
12SRCS = $(srcdir)/subst.c
13
14@MCONFIG@
15
16.c.o:
Theodore Ts'o47204ff2004-11-30 10:52:27 -050017 @echo " CC $<"
18 @$(BUILD_CC) -c $(ALL_CFLAGS) $< -o $@
Theodore Ts'o44339bd1997-10-15 02:47:20 +000019
20PROGS= subst
21
Theodore Ts'obff0cc92003-03-23 01:37:53 -050022all:: $(PROGS) gen-tarball
Theodore Ts'o44339bd1997-10-15 02:47:20 +000023
24subst: subst.o
Theodore Ts'o47204ff2004-11-30 10:52:27 -050025 @echo " LD $@"
26 @$(BUILD_CC) $(ALL_LDFLAGS) -o subst subst.o
Theodore Ts'o44339bd1997-10-15 02:47:20 +000027
Theodore Ts'o0d2993d2005-01-21 01:20:44 -050028copy_sparse: copy_sparse.o
29 @echo " LD $@"
30 @$(BUILD_CC) $(ALL_LDFLAGS) -o copy_sparse copy_sparse.o
31
Theodore Ts'obff0cc92003-03-23 01:37:53 -050032gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status
Theodore Ts'o47204ff2004-11-30 10:52:27 -050033 @echo " CONFIG.STATUS $@"
34 @cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
35 @chmod +x gen-tarball
Theodore Ts'obff0cc92003-03-23 01:37:53 -050036
37tarballs: gen-tarball
38 sh gen-tarball debian
39 sh gen-tarball all
40 sh gen-tarball subset
41
Theodore Ts'o44339bd1997-10-15 02:47:20 +000042clean:
Theodore Ts'o0d2993d2005-01-21 01:20:44 -050043 $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
44 copy-sparse
Theodore Ts'o44339bd1997-10-15 02:47:20 +000045
46mostlyclean: clean
47
48distclean: clean
Theodore Ts'o5c36a2f1999-11-19 18:42:30 +000049 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
Theodore Ts'o44339bd1997-10-15 02:47:20 +000050
51# +++ Dependency line eater +++
52#
53# Makefile dependencies follow. This must be the last section in
54# the Makefile.in file
55#
56subst.o: $(srcdir)/subst.c