3 top_builddir= @top_builddir@
24 INSTALLBIN= $(INSTALL) -o $(BINOWNER) -g $(BINGRP) -m $(BINMODE)
25 INSTALLMAN= $(INSTALL) -o $(MANOWNER) -g $(MANGRP) -m $(MANMODE)
30 DUMPDATESPATH= @DUMPDATESPATH@
32 # Global include directories
34 GINC= -I$(top_builddir) -I$(top_srcdir)/compat/include
35 # indicate where the ext2fs library can be found (this is not needed if you
36 # have run `make install-libs' in the e2fsprogs source directory).
37 #GINC+= -I/usr/src/e2fsprogs-0.5c/lib
42 # indicate where the ext2fs library can be found (this is not needed if you
43 # have run `make install-libs' in the e2fsprogs source directory).
44 #GLIBDIR= -L/usr/src/e2fsprogs-0.5c/lib
45 GLIBS= $(GLIBDIR) -L../compat/lib -lcompat -lext2fs -lcom_err
48 # Definitions (don't change them unless you know what you are doing)
50 DEFS= -DRDUMP -DRRESTORE -D_BSD_SOURCE -D_USE_BSD_SIGNAL -DLINUX_FORK_BUG -D_PATH_DUMPDATES=\"$(DUMPDATESPATH)\" -D_DUMP_VERSION=\"$(VERSION)\" @OPTDEFS@
58 $(top_builddir)/config.status: $(top_srcdir)/configure
59 (cd $(top_builddir); ./config.status --recheck)
61 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in \
62 $(top_builddir)/config.status
63 (cd $(top_builddir); ./config.status)
65 $(top_builddir)/config.h: $(top_srcdir)/config.h.in \
66 $(top_builddir)/config.status
67 (cd $(top_builddir); ./config.status)
69 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
70 $(top_builddir)/config.status
71 (cd $(top_builddir); ./config.status)
73 $(top_srcdir)/configure: $(top_srcdir)/configure.in
74 cd $(top_srcdir) && autoconf
76 $(top_srcdir)/config.h.in: $(top_srcdir)/configure.in
77 cd $(top_srcdir) && autoheader
83 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed
84 if test -n "$(SRCS)" ; then \
85 $(CC) -M $(CFLAGS) $(SRCS) | \
86 sed -f $(top_srcdir)/depfix.sed \
87 -e 's; $(srcdir)/; $$(srcdir)/;g' \
88 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
89 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
91 -e '/^ *\\$$/d' > .depend; \
95 if test -n "$(SRCS)" ; then \
96 sed -e '/^# +++ Dependency line eater +++/,$$d' \
97 < Makefile | cat - .depend \
99 $(MV) Makefile Makefile.old; \
100 $(MV) Makefile.new Makefile; \