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