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