3 top_builddir= @top_builddir@
21 INSTALLBIN= $(INSTALL) -o $(BINOWNER) -g $(BINGRP) -m $(BINMODE)
22 INSTALLMAN= $(INSTALL) -o $(MANOWNER) -g $(MANGRP) -m $(MANMODE)
28 # Global include directories
30 GINC= -I$(top_builddir) -I$(top_srcdir)/compat/include
31 # indicate where the ext2fs library can be found (this is not needed if you
32 # have run `make install-libs' in the e2fsprogs source directory).
33 #GINC+= -I/usr/src/e2fsprogs-0.5c/lib
38 # indicate where the ext2fs library can be found (this is not needed if you
39 # have run `make install-libs' in the e2fsprogs source directory).
40 #GLIBDIR= -L/usr/src/e2fsprogs-0.5c/lib
41 GLIBS= $(GLIBDIR) -L../compat/lib -lcompat -lext2fs -lcom_err
44 # Definitions (don't change them unless you know what you are doing)
46 DEFS= -DRDUMP -DRRESTORE -D_BSD_SOURCE -D_USE_BSD_SIGNAL -DLINUX_FORK_BUG
54 $(top_builddir)/config.status: $(top_srcdir)/configure
55 (cd $(top_builddir); ./config.status --recheck)
57 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in \
58 $(top_builddir)/config.status
59 (cd $(top_builddir); ./config.status)
61 $(top_builddir)/config.h: $(top_srcdir)/config.h.in \
62 $(top_builddir)/config.status
63 (cd $(top_builddir); ./config.status)
65 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
66 $(top_builddir)/config.status
67 (cd $(top_builddir); ./config.status)
69 $(top_srcdir)/configure: $(top_srcdir)/configure.in
70 cd $(top_srcdir) && autoconf
72 $(top_srcdir)/config.h.in: $(top_srcdir)/configure.in
73 cd $(top_srcdir) && autoheader
79 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed
80 if test -n "$(SRCS)" ; then \
81 $(CC) -M $(CFLAGS) $(SRCS) | \
82 sed -f $(top_srcdir)/depfix.sed \
83 -e 's; $(srcdir)/; $$(srcdir)/;g' \
84 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
85 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
87 -e '/^ *\\$$/d' > .depend; \
91 if test -n "$(SRCS)" ; then \
92 sed -e '/^# +++ Dependency line eater +++/,$$d' \
93 < Makefile | cat - .depend \
95 $(MV) Makefile Makefile.old; \
96 $(MV) Makefile.new Makefile; \