Commit 2803874b authored by Tigerly's avatar Tigerly
Browse files

compilation environment

parent 6f40e570

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
autom4te.cache
build
build.profiled
build.static
FILES
^core
*~
patches
Makefile
*.bak
*.diff
*.dSYM
*.o
*.a
*.orig
*.patch
*.pc
*.rej
*.swp
00[0-9][1-9]*.patch
MCONFIG
asm_types.h
config.log
config.status
debugfs/extent_cmds.c
debugfs/debug_cmds.c
debugfs/debugfs
debugfs/debugfs.8
debugfs/extent_cmds.c
doc/libext2fs.aux
doc/libext2fs.cp
doc/libext2fs.dvi
doc/libext2fs.fn
doc/libext2fs.fns
doc/libext2fs.info
doc/libext2fs.ky
doc/libext2fs.log
doc/libext2fs.pg
doc/libext2fs.toc
doc/libext2fs.tp
doc/libext2fs.vr
e2fsck/crc32table.h
e2fsck/e2fsck
e2fsck/e2fsck.8
e2fsck/e2fsck.conf.5
e2fsck/e2fsck.shared
e2fsck/e2fsck.static
e2fsck/gen_crc32table
e2fsck/prof_err.c
e2fsck/prof_err.h
e2fsck/tst_crc32
e2fsck/tst_problem
e2fsck/tst_refcount
e2fsck/tst_region
e2fsprogs.spec
ext2ed/ext2ed.conf
ext2ed/ext2ed.8
intl/charset.alias
intl/libgnuintl.h
intl/libintl.a
intl/libintl.h
intl/ref-add.sed
intl/ref-del.sed
lib/blkid/blkid.h
lib/blkid/blkid.pc
lib/blkid/blkid_types.h
lib/blkid/libblkid.3
lib/blkid/subdirs
lib/blkid/test_probe
lib/blkid/tests/*.ok
lib/blkid/tests/*.out
lib/blkid/tests/tmp
lib/blkid/tst_cache
lib/blkid/tst_dev
lib/blkid/tst_devname
lib/blkid/tst_devno
lib/blkid/tst_getsize
lib/blkid/tst_probe
lib/blkid/tst_read
lib/blkid/tst_resolve
lib/blkid/tst_save
lib/blkid/tst_tag
lib/blkid/tst_types
lib/config.h
lib/dirpaths.h
lib/e2p/e2p.pc
lib/e2p/subdirs
lib/e2p/tst_feature
lib/e2p/tst_ostype
lib/et/com_err.pc
lib/et/compile_et
lib/et/subdirs
lib/ext2fs/crc32c_table.h
lib/ext2fs/debug_cmds.c
lib/ext2fs/ext2_err.c
lib/ext2fs/ext2_err.et
lib/ext2fs/ext2_err.h
lib/ext2fs/ext2_types.h
lib/ext2fs/ext2fs.pc
lib/ext2fs/extent_cmds.c
lib/ext2fs/gen_crc32ctable
lib/ext2fs/subdirs
lib/ext2fs/tst_badblocks
lib/ext2fs/tst_bitmaps
lib/ext2fs/tst_bitmaps_cmd.c
lib/ext2fs/tst_bitmaps_out
lib/ext2fs/tst_bitops
lib/ext2fs/tst_cmds.c
lib/ext2fs/tst_csum
lib/ext2fs/tst_crc32c
lib/ext2fs/tst_icount
lib/ext2fs/tst_inline
lib/ext2fs/tst_inode_size
lib/ext2fs/tst_iscan
lib/ext2fs/tst_libext2fs
lib/ext2fs/tst_super_size
lib/ext2fs/tst_types
lib/quota/subdirs
lib/ss/mk_cmds
lib/ss/ss.pc
lib/ss/ss_err.c
lib/ss/ss_err.h
lib/ss/std_rqs.c
lib/ss/subdirs
lib/ss/test.diff
lib/ss/test_cmd.c
lib/ss/test_out
lib/ss/test_ss
lib/uuid/subdirs
lib/uuid/tst_uuid
lib/uuid/uuid.3
lib/uuid/uuid.h
lib/uuid/uuid.pc
lib/uuid/uuid_clear.3
lib/uuid/uuid_compare.3
lib/uuid/uuid_copy.3
lib/uuid/uuid_generate.3
lib/uuid/uuid_is_null.3
lib/uuid/uuid_parse.3
lib/uuid/uuid_time
lib/uuid/uuid_time.3
lib/uuid/uuid_types.h
lib/uuid/uuid_unparse.3
misc/badblocks
misc/badblocks.8
misc/base_device
misc/base_device.out
misc/blkid
misc/blkid.8
misc/chattr
misc/chattr.1
misc/default_profile.c
misc/dumpe2fs
misc/dumpe2fs.8
misc/e2freefrag
misc/e2freefrag.8
misc/e2fuzz
misc/e2image
misc/e2image.8
misc/e2initrd_helper
misc/e2label.8
misc/e2undo
misc/e2undo.8
misc/e4defrag
misc/e4defrag.8
misc/ext4.5
misc/filefrag
misc/filefrag.8
misc/findfs.8
misc/findsuper
misc/fsck
misc/fsck.8
misc/logsave
misc/logsave.8
misc/lsattr
misc/lsattr.1
misc/mke2fs
misc/mke2fs.8
misc/mke2fs.conf.5
misc/mke2fs.conf
misc/mklost+found
misc/mklost+found.8
misc/prof_err.c
misc/prof_err.h
misc/profile.h
misc/tune2fs
misc/tune2fs.8
misc/uuidd
misc/uuidd.8
misc/uuidgen
misc/uuidgen.1
parse-types.log
po/Makefile.in
po/POTFILES
public_config.h
resize/resize2fs
resize/resize2fs.8
resize/test_extent
resize/test_extent.out
tags
TAGS
tests/progs/test_icount
tests/progs/test_icount_cmds.c
tests/progs/crcsum
tests/*.ok
tests/*.failed
tests/*.log
tests/*.tmp
tests/mke2fs.conf
tests/test_script
tests/test_one
util/dirpaths.h
util/gen-tarball
util/install-symlink
util/subst
util/subst.conf
Meta
#!/bin/sh
find . -type f \! -name \*~ \! -exec grep -q Begin-Header \{\} \; -print \
| grep -v ^./build
1) Do "make depend" if necessary
2) "make check"!!!
3) Use "git log" to assemble release notes.
4) Run "(cd po; make e2fsprogs.pot-update)" to update the translation template.
5) Update files which contain version information
version.h
README
RELEASE-NOTES
e2fsprogs.lsm
doc/libext2fs.texinfo (three places)
6) Make source distribution
7) Adjust sizes in e2fsprogs-VER.lsm; rebuild source files; rebuild RPM files
This diff is collapsed.
include $(call all-subdir-makefiles)
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# If you don't need to do a full clean build but would like to touch
# a file or delete some intermediate files, add a clean step to the end
# of the list. These steps will only be run once, if they haven't been
# run before.
#
# E.g.:
# $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
#
# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
# files that are missing or have been moved.
#
# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
# Use $(OUT_DIR) to refer to the "out" directory.
#
# If you need to re-do something that's already mentioned, just copy
# the command and add it to the bottom of the list. E.g., if a change
# that you made last week required touching a file and a change you
# made today requires touching the same file, just copy the old
# touch step and add it to the end of the list.
#
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************
# For example:
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libext2_uuid_intermediates)
To install the second extended file system management programs,
just follow the steps:
1) Change directory into the top of the e2fsprogs source tree
2) Create a build directory and cd into it:
mkdir build; cd build
3) Run the configure script
../configure
If you wish to turn on ELF shared libraries, add the option
--enable-elf-shlibs. If you wish to build profiling libraries, add
the option --enable-profile.
Note that if you are building on an older system (i.e., a 2.4
kernel and/or glibc 2.2), the use of thread local storage will probably
cause programs that use the uuid library to core dump. To disable
thread local storage, use the configure option --disable-tls.
4) Compile the programs
make
5) Check to make sure the installation built correctly:
make check
6) Install the programs
Run `make install'
7) Install the include files and libraries
You can run `make install-libs' to install the include files and
libraries. Please note that this installation is not needed for the
programs to work. It is only needed if you expect to develop other
programs using the libraries or if you want to compile other program
using these libraries (like the 4.4BSD dump and restore port).
8) Remove any pre-formatted man pages.
Some distributions will have pre-formatted manual pages which
will always be displayed in preference to newer man pages in /usr/man.
If this is the case, you may need to manually remove them in order to
see the correct manual pages. The shell script in
install-utils/remove_preformat_manpages may be helpful in doing so.
9) Make sure your /etc/fstab file is correct.
Some distributions install an /etc/fstab which is missing the
fifth and sixth field of filesystem entry, which are the dump
frequency, and the fsck pass number, respectively. The problem with
this is that the getmntent() library routine interprets those missing
fields as "0", and a pass number of 0 is documented as meaning that
fsck should not check that particular filesystem. If your entries in
your /etc/fstab file look liks this:
/dev/hda4 / ext2 defaults
you should add "1 1" at the end of each line, so that they look like this:
/dev/hda4 / ext2 defaults 1 1
There is a script in install-utils/convfstab (donated by
Michael Weller) that may help you correct your /etc/fstab file.
NOTE: This is the ELF version of the binary distribution. If you have
a DLL system, please compile e2fsprogs from sources yourself. (In
fact, in general you're better off compiling e2fsprogs from sources
instead of using precompiled binaries.)
Also please note that these binaries assume the use of the GNU Libc.
If you're still using libc5, you'll need build e2fsprogs from source.
To install the binary distribution of the second extended file
system management programs, just follow the steps:
1) Install this tar file using the following command:
gunzip < e2fsprogs-1.13-elfbin.tar.gz | (cd /; tar Sxvpf - )
2) Run ldconfig to update the shared library pointers.
As root, type /sbin/ldconfig. This will update the links to
the shared libraries included in the distribution. You can then remove
the old versions of the libraries from /lib.
3) Remove any pre-formatted man pages.
Some distributions will have pre-formatted manual pages which
will always be displayed in preference to newer man pages in /usr/man.
If this is the case, you may need to manually remove them in order to
see the correct manual pages. The shell script in
install-utils/remove_preformat_manpages may be helpful in doing so.
4) Make sure your /etc/fstab file is correct.
Some distributions install an /etc/fstab which is missing the
fifth and sixth field of filesystem entry, which are the dump
frequency, and the fsck pass number, respectively. The problem with
this is that the getmntent() library routine interprets those missing
fields as "0", and a pass number of 0 is documented as meaning that
fsck should not check that particular filesystem. If your entries in
your /etc/fstab file look liks this:
/dev/hda4 / ext2 defaults
you should add "1 1" at the end of each line, so that they look like this:
/dev/hda4 / ext2 defaults 1 1
There is a script in install-utils/convfstab (donated by
Michael Weller) that may help you correct your /etc/fstab file.
5) Cleanup files from the installation.
When you're done with the installation, you will probably want
to remove /INSTALL (this file), /README, and /install-utils from your
root directory
# Beginning of file MCONFIG
all::
check::
SHELL = /bin/sh
COMPRESS_EXT = gz bz2 bz Z
prefix = @prefix@
root_prefix = @root_prefix@
exec_prefix = @exec_prefix@
root_bindir = @root_bindir@
root_sbindir = @root_sbindir@
root_libdir = @root_libdir@
datarootdir = @datarootdir@
bindir = @bindir@
sbindir = @sbindir@
libdir = @libdir@
datadir= @datadir@
localedir = $(datadir)/locale
root_sysconfdir= @root_sysconfdir@
includedir = @includedir@
mandir = @mandir@
man1dir = $(mandir)/man1
man3dir = $(mandir)/man3
man5dir = $(mandir)/man5
man8dir = $(mandir)/man8
infodir = @infodir@
datadir = @datadir@
pkgconfigdir = $(libdir)/pkgconfig
@SET_MAKE@
@ifGNUmake@ V =
@ifGNUmake@ ifeq ($(strip $(V)),)
@ifGNUmake@ # E = @echo
@ifGNUmake@ # ES = echo
@ifGNUmake@ # Q = @
@ifGNUmake@ E = @E@
@ifGNUmake@ ES = @ES@
@ifGNUmake@ Q = @Q@
@ifGNUmake@ else
@ifGNUmake@ E = @\#
@ifGNUmake@ ES = \#
@ifGNUmake@ Q =
@ifGNUmake@ endif
@ifNotGNUmake@ E = @E@
@ifNotGNUmake@ ES = @ES@
@ifNotGNUmake@ Q = @Q@
@ifGNUmake@ CHECK=sparse
@ifGNUmake@ CHECK_OPTS=-Wsparse-all -Wno-transparent-union -Wno-return-void -Wno-undef -Wno-non-pointer-null
@ifGNUmake@ CPPCHECK=cppcheck
@ifGNUmake@ CPPCHECK_OPTS=--force --enable=all --quiet
@ifGNUmake@ ifeq ("$(C)", "2")
@ifGNUmake@ CHECK_CMD=$(CHECK) $(CHECK_OPTS) -Wbitwise -D__CHECK_ENDIAN__
@ifGNUmake@ CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS)
@ifGNUmake@ else
@ifGNUmake@ ifeq ("$(C)", "1")
@ifGNUmake@ CHECK_CMD=$(CHECK) $(CHECK_OPTS)
@ifGNUmake@ CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS)
@ifGNUmake@ else
@ifGNUmake@ CHECK_CMD=@true
@ifGNUmake@ CPPCHECK_CMD=@true
@ifGNUmake@ endif
@ifGNUmake@ endif
@ifNotGNUmake@ CHECK_CMD=true
@ifNotGNUmake@ CPPCHECK_CMD=true
CC = @CC@
BUILD_CC = @BUILD_CC@
CFLAGS = @CFLAGS@
CFLAGS_SHLIB = @CFLAGS_SHLIB@
CFLAGS_STLIB = @CFLAGS_STLIB@
CPPFLAGS = @INCLUDES@
ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS) $(CFLAGS_WARN) @DEFS@ $(LOCAL_CFLAGS)
ALL_CFLAGS_SHLIB = $(CPPFLAGS) $(CFLAGS_SHLIB) $(CFLAGS_WARN) @DEFS@ $(LOCAL_CFLAGS)
ALL_CFLAGS_STLIB = $(CPPFLAGS) $(CFLAGS_STLIB) $(CFLAGS_WARN) @DEFS@ $(LOCAL_CFLAGS)
LDFLAGS = @LDFLAGS@
LDFLAGS_SHLIB = @LDFLAGS_SHLIB@
ALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@
LDFLAGS_STATIC = @LDFLAGS_STATIC@
BUILD_CFLAGS = @BUILD_CFLAGS@
BUILD_LDFLAGS = @BUILD_LDFLAGS@
RDYNAMIC = @RDYNAMIC@
LINK_BUILD_FLAGS = @LINK_BUILD_FLAGS@
LINK_INSTALL_FLAGS = @LINK_INSTALL_FLAGS@
RM = @RM@
LN = @LN@
LN_S = @LN_S@
MV = @MV@
CP = @CP@
CHMOD = @CHMOD@
AR = @AR@
AWK = @AWK@
SED = @SED@
PERL = @PERL@
RANLIB = @RANLIB@
STRIP = @STRIP@
LD = $(PURE) @CC@
ARUPD = $(AR) r
ARGEN = $(AR) rc
LDCONFIG = @LDCONFIG@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
MKINSTALLDIRS = @MKINSTALLDIRS@
#
# Library definitions
#
LIB = $(top_builddir)/lib
LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@
LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@
LIBE2P = $(LIB)/libe2p@LIB_EXT@
LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
LIBUUID = @LIBUUID@ @SOCKET_LIB@
LIBMAGIC = @MAGIC_LIB@
LIBFUSE = @FUSE_LIB@
LIBSUPPORT = $(LIBINTL) $(LIB)/libsupport@STATIC_LIB_EXT@
LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
LIBINTL = @LIBINTL@
SYSLIBS = @LIBS@
DEPLIBSS = $(LIB)/libss@LIB_EXT@
DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
DEPLIBUUID = @DEPLIBUUID@
DEPLIBSUPPORT = $(LIB)/libsupport@STATIC_LIB_EXT@
DEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID)
TESTENV = LD_LIBRARY_PATH="$(LIB):$${LD_LIBRARY_PATH}" DYLD_LIBRARY_PATH="$(LIB):$${DYLD_LIBRARY_PATH}"
STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@
STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@
STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
STATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@
STATIC_LIBSUPPORT = $(LIBINTL) $(LIBSUPPORT)
STATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID)
DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
DEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
DEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@
DEPSTATIC_LIBSUPPORT = $(DEPLIBSUPPORT)
DEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(DEPSTATIC_LIBUUID)
PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@
PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@
PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
PROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@
PROFILED_LIBSUPPORT = $(LIBINTL) $(LIB)/libsupport@PROFILED_LIB_EXT@
PROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID)
DEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
DEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
DEPPROFILED_LIBUUID = @PROFILED_LIBUUID@
DEPPROFILED_LIBSUPPORT = $(PROFILED_LIBSUPPORT)
DEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(DEPPROFILED_LIBUUID)
#
# A fast substitution command for fixing up man pages, shell scripts, etc.
#
SUBST_CONF=$(top_builddir)/util/subst.conf
SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
$(top_builddir)/util/subst:
cd $(top_builddir)/util ; $(MAKE) subst
#
# Script for installing symlinks (for shared libraries)
#
$(top_builddir)/util/install-symlink: $(top_srcdir)/util/install-symlink.in \
$(top_builddir)/config.status
cd $(top_builddir); CONFIG_FILES=util/install-symlink ./config.status
chmod +x $(top_builddir)/util/install-symlink
$(top_builddir)/util/symlinks:
cd $(top_builddir)/util ; $(MAKE) symlinks
INSTALL_SYMLINK = /bin/sh $(top_builddir)/util/install-symlink \
@SYMLINK_RELATIVE@ \
--symlinks=$(top_builddir)/util/symlinks
DEP_INSTALL_SYMLINK = $(top_builddir)/util/install-symlink \
$(top_builddir)/util/symlinks
#
# Warning flags
#