• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 $(srcdir)/mkutf8data.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 mkutf8data
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
36mkutf8data: mkutf8data.o
37	$(E) "	LD $@"
38	$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o mkutf8data mkutf8data.o
39
40copy_sparse: copy_sparse.o
41	$(E) "	LD $@"
42	$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o
43
44symlinks: symlinks.o
45	$(E) "	LD $@"
46	$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o symlinks symlinks.o
47
48gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status
49	$(E) "	CONFIG.STATUS $@"
50	$(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
51	$(Q) chmod +x gen-tarball
52
53tarballs: gen-tarball
54	sh gen-tarball debian
55	sh gen-tarball all
56	sh gen-tarball subset
57
58clean::
59	$(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
60		copy-sparse dirpaths.h install-symlink mkutf8data
61
62mostlyclean: clean
63
64distclean: clean
65	$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
66
67# +++ Dependency line eater +++
68#
69# Makefile dependencies follow.  This must be the last section in
70# the Makefile.in file
71#
72subst.o: $(srcdir)/subst.c $(top_builddir)/lib/config.h dirpaths.h
73mkutf8data.o: $(srcdir)/mkutf8data.c
74