e2fsprogs/e2fsck/Makefile.in

210 lines
7.3 KiB
Makefile
Raw Normal View History

1997-04-26 21:58:21 +08:00
#
# Makefile for e2fsck
#
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
top_builddir = ..
1997-04-29 22:53:37 +08:00
my_dir = e2fsck
1997-04-26 21:58:21 +08:00
INSTALL = @INSTALL@
LDFLAG_STATIC = @LDFLAG_STATIC@
@MCONFIG@
PROGS= e2fsck
1997-04-26 21:58:21 +08:00
MANPAGES= e2fsck.8
XTRA_CFLAGS= -DRESOURCE_TRACK
1997-04-26 21:58:21 +08:00
1997-04-29 22:53:37 +08:00
LIBS= $(LIBEXT2FS) $(LIBCOM_ERR) $(LIBUUID)
DEPLIBS= $(LIBEXT2FS) $(LIBCOM_ERR) $(DEPLIBUUID)
1997-04-29 22:34:47 +08:00
1997-04-29 22:53:37 +08:00
STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) $(STATIC_LIBUUID)
STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) $(DEPSTATIC_LIBUUID)
1997-04-29 22:34:47 +08:00
1997-04-29 22:53:37 +08:00
PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR) $(PROFILED_LIBUUID)
PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR) \
$(DEPPROFILED_LIBUUID)
1997-04-26 21:58:21 +08:00
.c.o:
1997-04-26 22:37:06 +08:00
$(CC) -c $(ALL_CFLAGS) $< -o $@
1997-04-30 00:15:03 +08:00
@PROFILE_CMT@ $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
1997-04-26 21:58:21 +08:00
#
# Flags for using Checker
# Note: The optimization flags must include -g
#
#MCHECK= -checker
1997-04-29 22:34:47 +08:00
#LIBS= $(LIBCOM_ERR) $(LIB_EXT2FS) $(CHECKLIB)
#DEPLIBS= $(LIBCOM_ERR) $(LIB_EXT2FS)
1997-04-26 21:58:21 +08:00
#CHECKLIB= /usr/lib/libchecker.o
#
# Flags for doing mtrace --- uncomment to produce mtracing e2fsck
# Note: The optimization flags must include -g
#
#MTRACE= -DMTRACE
#MTRACE_OBJ= mtrace.o
#MTRACE_SRC= $(srcdir)/mtrace.c
#OPT= -g
#
# Flags for doing mcheck --- uncomment to produce mchecking e2fsck
# Note: The optimization flags must include -g
#
#MCHECK= -DMCHECK
OBJS= unix.o e2fsck.o super.o pass1.o pass1b.o pass2.o pass3.o pass4.o \
pass5.o swapfs.o badblocks.o util.o dirinfo.o ehandler.o \
problem.o message.o $(MTRACE_OBJ)
1997-04-26 21:58:21 +08:00
PROFILED_OBJS= profiled/unix.o profiled/e2fsck.o profiled/super.o \
profiled/pass1.o profiled/pass1b.o \
1997-04-29 22:34:47 +08:00
profiled/pass2.o profiled/pass3.o profiled/pass4.o profiled/pass5.o \
profiled/badblocks.o profiled/util.o profiled/dirinfo.o \
1997-04-30 00:15:03 +08:00
profiled/ehandler.o profiled/message.o profiled/problem.o \
profiled/swapfs.o
1997-04-29 22:34:47 +08:00
1997-04-26 21:58:21 +08:00
SRCS= $(srcdir)/e2fsck.c \
$(srcdir)/super.c \
1997-04-26 21:58:21 +08:00
$(srcdir)/pass1.c \
$(srcdir)/pass1b.c \
$(srcdir)/pass2.c \
$(srcdir)/pass3.c \
$(srcdir)/pass4.c \
$(srcdir)/pass5.c \
$(srcdir)/badblocks.c \
$(srcdir)/util.c \
$(srcdir)/unix.c \
1997-04-26 21:58:21 +08:00
$(srcdir)/dirinfo.c \
$(srcdir)/ehandler.c \
1997-04-30 00:15:03 +08:00
$(srcdir)/problem.c \
1997-04-26 21:58:21 +08:00
$(MTRACE_SRC)
1997-04-29 22:53:37 +08:00
all:: profiled $(PROGS) e2fsck.static e2fsck.shared $(MANPAGES)
1997-04-26 21:58:21 +08:00
1997-04-29 22:34:47 +08:00
@PROFILE_CMT@all:: e2fsck.profiled
e2fsck: e2fsck.@E2FSCK_TYPE@
$(CP) e2fsck.@E2FSCK_TYPE@ e2fsck
e2fsck.static: $(OBJS) $(STATIC_DEPLIBS)
$(LD) $(ALL_LDFLAGS) $(LDFLAG_STATIC) -o e2fsck.static $(OBJS) \
$(STATIC_LIBS)
e2fsck.shared: $(OBJS) $(DEPLIBS)
$(LD) $(ALL_LDFLAGS) -o e2fsck.shared $(OBJS) $(LIBS)
1997-04-30 00:15:03 +08:00
e2fsck.profiled: $(PROFILED_OBJS) $(PROFILED_DEPLIBS)
$(LD) $(ALL_LDFLAGS) -g -pg -o e2fsck.profiled $(PROFILED_OBJS) \
1997-04-29 22:34:47 +08:00
$(PROFILED_LIBS)
1997-04-26 21:58:21 +08:00
extend: extend.o
1997-04-26 22:37:06 +08:00
$(LD) $(ALL_LDFLAGS) -o extend extend.o $(CHECKLIB)
1997-04-26 21:58:21 +08:00
flushb: flushb.o
1997-04-26 22:37:06 +08:00
$(LD) $(ALL_LDFLAGS) -o flushb flushb.o $(CHECKLIB)
1997-04-26 21:58:21 +08:00
iscan: iscan.o util.o
1997-04-26 22:37:06 +08:00
$(LD) $(ALL_LDFLAGS) -o iscan iscan.o util.o ehandler.o $(LIBS)
1997-04-26 21:58:21 +08:00
1997-04-29 22:34:47 +08:00
profiled:
mkdir profiled
e2fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/e2fsck.8.in
1997-04-29 22:34:47 +08:00
$(SUBSTITUTE) $(srcdir)/e2fsck.8.in e2fsck.8
1997-04-26 21:58:21 +08:00
installdirs:
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(root_sbindir) \
$(DESTDIR)$(man8dir)
1997-04-26 21:58:21 +08:00
install: $(PROGS) $(MANPAGES) installdirs
for i in $(PROGS); do \
$(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
$(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
1997-04-26 21:58:21 +08:00
done
$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
$(DESTDIR)$(root_sbindir)/fsck.ext2
1997-04-26 21:58:21 +08:00
for i in $(MANPAGES); do \
1997-04-26 22:37:06 +08:00
$(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
1997-04-26 21:58:21 +08:00
done
1997-04-26 22:37:06 +08:00
1997-04-26 21:58:21 +08:00
uninstall:
1997-04-30 00:15:03 +08:00
for i in $(PROGS); do \
$(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
1997-04-30 00:15:03 +08:00
done
$(RM) -f $(DESTDIR)$(root_sbindir)/fsck.ext2
1997-04-26 21:58:21 +08:00
for i in $(MANPAGES); do \
$(RM) -f $(DESTDIR)$(man8dir)/$$i; \
1997-04-26 21:58:21 +08:00
done
clean:
1997-04-29 22:34:47 +08:00
$(RM) -f $(PROGS) \#* *\# *.s *.o *.a *~ core e2fsck.static \
e2fsck.shared e2fsck.profiled flushb e2fsck.8
1997-04-29 22:34:47 +08:00
$(RM) -rf profiled
1997-04-26 21:58:21 +08:00
mostlyclean: clean
distclean: clean
$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
1997-04-26 21:58:21 +08:00
# +++ Dependency line eater +++
#
# Makefile dependencies follow. This must be the last section in
# the Makefile.in file
#
e2fsck.o: $(srcdir)/e2fsck.c $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
$(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h
super.o: $(srcdir)/super.c $(top_srcdir)/lib/uuid/uuid.h $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
$(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h
pass1.o: $(srcdir)/pass1.c $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
1997-04-30 00:15:03 +08:00
$(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h
1997-04-30 05:26:48 +08:00
pass1b.o: $(srcdir)/pass1b.c $(top_srcdir)/lib/et/com_err.h \
$(srcdir)/e2fsck.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
1997-04-30 00:15:03 +08:00
$(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h
pass2.o: $(srcdir)/pass2.c $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
$(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h
pass3.o: $(srcdir)/pass3.c $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
1997-04-30 00:15:03 +08:00
$(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h
1997-04-29 22:34:47 +08:00
pass4.o: $(srcdir)/pass4.c $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
1997-04-30 00:15:03 +08:00
$(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h
pass5.o: $(srcdir)/pass5.c $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
$(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h
1997-04-30 05:26:48 +08:00
badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
$(srcdir)/e2fsck.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
1997-04-30 05:26:48 +08:00
$(top_srcdir)/lib/ext2fs/bitops.h
util.o: $(srcdir)/util.c $(srcdir)/e2fsck.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
$(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
$(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
unix.o: $(srcdir)/unix.c $(top_srcdir)/lib/et/com_err.h $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
$(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
$(srcdir)/problem.h $(srcdir)/../version.h
dirinfo.o: $(srcdir)/dirinfo.c $(srcdir)/e2fsck.h \
1997-04-29 22:34:47 +08:00
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
1997-04-30 05:26:48 +08:00
$(top_srcdir)/lib/ext2fs/bitops.h
ehandler.o: $(srcdir)/ehandler.c $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
$(top_srcdir)/lib/ext2fs/bitops.h
1997-04-30 05:26:48 +08:00
problem.o: $(srcdir)/problem.c $(srcdir)/e2fsck.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
$(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h $(srcdir)/problemP.h