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