mirror of https://github.com/vitalif/e2fsprogs
290 lines
7.9 KiB
Makefile
290 lines
7.9 KiB
Makefile
![]() |
srcdir = @srcdir@
|
||
|
top_srcdir = @top_srcdir@
|
||
|
VPATH = @srcdir@
|
||
|
top_builddir = ../..
|
||
|
INSTALL = @INSTALL@
|
||
|
|
||
|
@MCONFIG@
|
||
|
|
||
|
OBJS= ext2_err.o \
|
||
|
alloc.o \
|
||
|
badblocks.o \
|
||
|
bb_inode.o \
|
||
|
bitmaps.o \
|
||
|
bitops.o \
|
||
|
block.o \
|
||
|
check_desc.o \
|
||
|
closefs.o \
|
||
|
cmp_bitmaps.o \
|
||
|
dirblock.o \
|
||
|
expanddir.o \
|
||
|
freefs.o \
|
||
|
get_pathname.o \
|
||
|
getsize.o \
|
||
|
initialize.o \
|
||
|
inline.o \
|
||
|
inode.o \
|
||
|
ismounted.o \
|
||
|
link.o \
|
||
|
llseek.o \
|
||
|
mkdir.o \
|
||
|
namei.o \
|
||
|
newdir.o \
|
||
|
openfs.o \
|
||
|
read_bb.o \
|
||
|
read_bb_file.o \
|
||
|
rw_bitmaps.o \
|
||
|
swapfs.o \
|
||
|
unix_io.o
|
||
|
|
||
|
SRCS= ext2_err.c \
|
||
|
$(srcdir)/alloc.c \
|
||
|
$(srcdir)/badblocks.c \
|
||
|
$(srcdir)/bb_inode.c \
|
||
|
$(srcdir)/bitmaps.c \
|
||
|
$(srcdir)/bitops.c \
|
||
|
$(srcdir)/block.c \
|
||
|
$(srcdir)/check_desc.c \
|
||
|
$(srcdir)/closefs.c \
|
||
|
$(srcdir)/cmp_bitmaps.c \
|
||
|
$(srcdir)/dirblock.c \
|
||
|
$(srcdir)/expanddir.c \
|
||
|
$(srcdir)/freefs.c \
|
||
|
$(srcdir)/get_pathname.c \
|
||
|
$(srcdir)/getsize.c \
|
||
|
$(srcdir)/initialize.c \
|
||
|
$(srcdir)/inline.c \
|
||
|
$(srcdir)/inode.c \
|
||
|
$(srcdir)/ismounted.c \
|
||
|
$(srcdir)/link.c \
|
||
|
$(srcdir)/llseek.c \
|
||
|
$(srcdir)/mkdir.c \
|
||
|
$(srcdir)/namei.c \
|
||
|
$(srcdir)/newdir.c \
|
||
|
$(srcdir)/openfs.c \
|
||
|
$(srcdir)/read_bb.c \
|
||
|
$(srcdir)/read_bb_file.c \
|
||
|
$(srcdir)/rw_bitmaps.c \
|
||
|
$(srcdir)/swapfs.c \
|
||
|
$(srcdir)/unix_io.c
|
||
|
|
||
|
HFILES= bitops.h ext2fs.h io.h
|
||
|
|
||
|
LIBRARY= libext2fs
|
||
|
LIBDIR= ext2fs
|
||
|
|
||
|
DLL_ADDRESS = 0x66900000
|
||
|
DLL_JUMPSIZE = 0x1000
|
||
|
DLL_GOTSIZE = 0x1000
|
||
|
DLL_VERSION = 1.1
|
||
|
DLL_IMAGE = libe2fs
|
||
|
DLL_STUB = libext2fs
|
||
|
DLL_LIBS = -L../.. -lcom_err
|
||
|
DLL_MYDIR = ext2fs
|
||
|
DLL_INSTALL_DIR = $(libdir)
|
||
|
|
||
|
ELF_VERSION = 2.0
|
||
|
ELF_IMAGE = libext2fs
|
||
|
ELF_MYDIR = ext2fs
|
||
|
ELF_INSTALL_DIR = $(libdir)
|
||
|
|
||
|
BSDLIB_VERSION = 2.0
|
||
|
BSDLIB_IMAGE = libext2fs
|
||
|
BSDLIB_MYDIR = ext2fs
|
||
|
BSDLIB_INSTALL_DIR = $(libdir)
|
||
|
|
||
|
@MAKEFILE_LIBRARY@
|
||
|
@MAKEFILE_DLL@
|
||
|
@MAKEFILE_ELF@
|
||
|
@MAKEFILE_BSDLIB@
|
||
|
@MAKEFILE_PROFILE@
|
||
|
@MAKEFILE_CHECKER@
|
||
|
|
||
|
.c.o:
|
||
|
$(CC) $(CFLAGS) -c $< -o $@
|
||
|
@PROFILE_CMT@ $(CC) $(CFLAGS) -pg -o profiled/$*.o -c $<
|
||
|
@CHECKER_CMT@ $(CC) $(CFLAGS) -checker -g -o checker/$*.o -c $<
|
||
|
@DLL_CMT@ (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(CFLAGS) \
|
||
|
@DLL_CMT@ -o jump/$*.o -c $<)
|
||
|
@ELF_CMT@ $(CC) $(CFLAGS) -fPIC -o elfshared/$*.o -c $<
|
||
|
@BSDLIB_CMT@ $(CC) $(CFLAGS) -fpic -o pic/$*.o -c $<
|
||
|
|
||
|
COMPILE_ET=../et/compile_et
|
||
|
|
||
|
DISTFILES= Makefile *.c *.h image
|
||
|
|
||
|
ext2_err.c ext2_err.h: $(srcdir)/ext2_err.et
|
||
|
$(COMPILE_ET) $(srcdir)/ext2_err.et
|
||
|
|
||
|
installdirs::
|
||
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(ulibdir) \
|
||
|
$(DESTDIR)$(includedir)/ext2fs
|
||
|
|
||
|
install:: all $(HFILES) installdirs
|
||
|
$(INSTALL_DATA) libext2fs.a $(DESTDIR)$(ulibdir)/libext2fs.a
|
||
|
$(CHMOD) 644 $(DESTDIR)$(ulibdir)/libext2fs.a
|
||
|
-$(RANLIB) $(DESTDIR)$(ulibdir)/libext2fs.a
|
||
|
$(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/libext2fs.a
|
||
|
for i in $(HFILES); do \
|
||
|
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/ext2fs/$$i; \
|
||
|
done
|
||
|
$(INSTALL_DATA) ext2_err.h $(DESTDIR)$(includedir)/ext2fs/ext2_err.h
|
||
|
|
||
|
uninstall::
|
||
|
$(RM) -f $(ulibdir)/libext2fs.a
|
||
|
$(RM) -rf $(includedir)/ext2fs
|
||
|
|
||
|
clean::
|
||
|
$(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/* \
|
||
|
ext2_err.c ext2_err.h \
|
||
|
../libext2fs.a ../libext2fs_p.a ../libext2fs_chk.a
|
||
|
|
||
|
mostlyclean:: clean
|
||
|
distclean:: clean
|
||
|
$(RM) -f .depend ext2_err.c ext2_err.h Makefile
|
||
|
|
||
|
# +++ Dependency line eater +++
|
||
|
#
|
||
|
# Makefile dependencies follow. This must be the last section in
|
||
|
# the Makefile.in file
|
||
|
#
|
||
|
ext2_err.o: ext2_err.c
|
||
|
alloc.o: $(srcdir)/alloc.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
badblocks.o: $(srcdir)/badblocks.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
bb_inode.o: $(srcdir)/bb_inode.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
bitmaps.o: $(srcdir)/bitmaps.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
bitops.o: $(srcdir)/bitops.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
block.o: $(srcdir)/block.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
check_desc.o: $(srcdir)/check_desc.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
closefs.o: $(srcdir)/closefs.c \
|
||
|
$(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
cmp_bitmaps.o: $(srcdir)/cmp_bitmaps.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
dirblock.o: $(srcdir)/dirblock.c \
|
||
|
$(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
expanddir.o: $(srcdir)/expanddir.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
freefs.o: $(srcdir)/freefs.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
get_pathname.o: $(srcdir)/get_pathname.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
getsize.o: $(srcdir)/getsize.c \
|
||
|
$(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
initialize.o: $(srcdir)/initialize.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
inline.o: $(srcdir)/inline.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
inode.o: $(srcdir)/inode.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
ismounted.o: $(srcdir)/ismounted.c \
|
||
|
$(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
link.o: $(srcdir)/link.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
llseek.o: $(srcdir)/llseek.c \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h \
|
||
|
|
||
|
mkdir.o: $(srcdir)/mkdir.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
namei.o: $(srcdir)/namei.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
newdir.o: $(srcdir)/newdir.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
openfs.o: $(srcdir)/openfs.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
read_bb.o: $(srcdir)/read_bb.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
read_bb_file.o: $(srcdir)/read_bb_file.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
rw_bitmaps.o: $(srcdir)/rw_bitmaps.c \
|
||
|
$(srcdir)/ext2fs.h \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
swapfs.o: $(srcdir)/swapfs.c \
|
||
|
$(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
||
|
$(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
||
|
$(srcdir)/bitops.h
|
||
|
unix_io.o: $(srcdir)/unix_io.c \
|
||
|
$(top_srcdir)/lib/et/com_err.h \
|
||
|
$(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/io.h
|
||
|
|