blob: 76c3f88accd3977eec7d0f711084614d729ebccf [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'oc13351f2009-07-02 00:11:17 -040017 $(E) " CC $<"
18 $(Q) $(BUILD_CC) -c $(BUILD_CFLAGS) $< -o $@
JP Abgralle0ed7402014-03-19 19:08:39 -070019 $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
Theodore Ts'o44339bd1997-10-15 02:47:20 +000020
JP Abgralle0ed7402014-03-19 19:08:39 -070021PROGS= subst symlinks
Theodore Ts'o44339bd1997-10-15 02:47:20 +000022
Theodore Ts'obff0cc92003-03-23 01:37:53 -050023all:: $(PROGS) gen-tarball
Theodore Ts'o44339bd1997-10-15 02:47:20 +000024
25subst: subst.o
Theodore Ts'oc13351f2009-07-02 00:11:17 -040026 $(E) " LD $@"
27 $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o
Theodore Ts'o44339bd1997-10-15 02:47:20 +000028
Theodore Ts'o0d2993d2005-01-21 01:20:44 -050029copy_sparse: copy_sparse.o
Theodore Ts'oc13351f2009-07-02 00:11:17 -040030 $(E) " LD $@"
31 $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o
Theodore Ts'o0d2993d2005-01-21 01:20:44 -050032
JP Abgralle0ed7402014-03-19 19:08:39 -070033symlinks: symlinks.o
34 $(E) " LD $@"
35 $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o symlinks symlinks.o
36
Theodore Ts'obff0cc92003-03-23 01:37:53 -050037gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status
Theodore Ts'oc13351f2009-07-02 00:11:17 -040038 $(E) " CONFIG.STATUS $@"
39 $(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
40 $(Q) chmod +x gen-tarball
Theodore Ts'obff0cc92003-03-23 01:37:53 -050041
42tarballs: gen-tarball
43 sh gen-tarball debian
44 sh gen-tarball all
45 sh gen-tarball subset
46
Theodore Ts'o44339bd1997-10-15 02:47:20 +000047clean:
Theodore Ts'o0d2993d2005-01-21 01:20:44 -050048 $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
49 copy-sparse
Theodore Ts'o44339bd1997-10-15 02:47:20 +000050
51mostlyclean: clean
52
53distclean: clean
Theodore Ts'o5c36a2f1999-11-19 18:42:30 +000054 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
Theodore Ts'o44339bd1997-10-15 02:47:20 +000055
56# +++ Dependency line eater +++
57#
58# Makefile dependencies follow. This must be the last section in
59# the Makefile.in file
60#
61subst.o: $(srcdir)/subst.c