summaryrefslogtreecommitdiffstats
path: root/disk-utils
diff options
context:
space:
mode:
Diffstat (limited to 'disk-utils')
-rw-r--r--disk-utils/Makefile72
-rw-r--r--disk-utils/Makefile.am37
-rw-r--r--disk-utils/Makefile.in779
-rw-r--r--disk-utils/blockdev.c2
-rw-r--r--disk-utils/elvtune.c4
-rw-r--r--disk-utils/fdformat.c2
-rw-r--r--disk-utils/fsck.cramfs.c9
-rw-r--r--disk-utils/fsck.minix.c2
-rw-r--r--disk-utils/isosize.c2
-rw-r--r--disk-utils/mkfs.82
-rw-r--r--disk-utils/mkfs.bfs.c2
-rw-r--r--disk-utils/mkfs.c6
-rw-r--r--disk-utils/mkfs.cramfs.c4
-rw-r--r--disk-utils/mkfs.minix.c4
-rw-r--r--disk-utils/mkswap.c19
-rw-r--r--disk-utils/setfdprm.866
-rw-r--r--disk-utils/setfdprm.c176
17 files changed, 842 insertions, 346 deletions
diff --git a/disk-utils/Makefile b/disk-utils/Makefile
deleted file mode 100644
index 5a3332346..000000000
--- a/disk-utils/Makefile
+++ /dev/null
@@ -1,72 +0,0 @@
-# Makefile -- Makefile for util-linux Linux utilities
-# Created: Sat Dec 26 20:09:40 1992
-# Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu)
-
-
-include ../make_include
-include ../MCONFIG
-
-# Where to put man pages?
-
-MAN8= blockdev.8 fdformat.8 isosize.8 mkfs.8 mkswap.8 elvtune.8 \
- fsck.minix.8 mkfs.minix.8 mkfs.bfs.8
-
-# Where to put binaries?
-# See the "install" rule for the links. . .
-
-SBIN= mkfs mkswap blockdev elvtune fsck.minix mkfs.minix mkfs.bfs
-
-USRBIN= fdformat isosize
-
-ETC= fdprm
-
-MAYBE= setfdprm raw fsck.cramfs mkfs.cramfs
-
-ifneq "$(HAVE_FDUTILS)" "yes"
-USRBIN:=$(USRBIN) setfdprm
-MAN8:=$(MAN8) setfdprm.8
-endif
-
-ifeq "$(HAVE_RAW_H)" "yes"
-USRBIN:=$(USRBIN) raw
-MAN8:=$(MAN8) raw.8
-endif
-
-ifeq "$(HAVE_ZLIB)" "yes"
-SBIN:=$(SBIN) fsck.cramfs mkfs.cramfs
-endif
-
-ifeq "$(HAVE_UUID)" "yes"
-MKSWAP_LIBS=-luuid
-endif
-
-all: $(SBIN) $(USRBIN)
-
-fsck.cramfs: fsck.cramfs.o
- $(CC) $(LDFLAGS) -o fsck.cramfs fsck.cramfs.o -lz
-
-mkfs.cramfs: mkfs.cramfs.o $(LIB)/md5.o
- $(CC) $(LDFLAGS) -o mkfs.cramfs mkfs.cramfs.o $(LIB)/md5.o -lz
-
-mkfs.cramfs.o: $(LIB)/md5.h
-
-fsck.cramfs.o mkfs.cramfs.o: cramfs.h
-
-fsck.minix.o mkfs.minix.o: bitops.h minix.h
-
-mkswap: mkswap.o $(LIB)/xstrncpy.o
- $(CC) $(LDFLAGS) -o $@ $^ $(MKSWAP_LIBS)
-
-install: all
- $(INSTALLDIR) $(SBINDIR) $(USRBINDIR) $(ETCDIR)
- $(INSTALLBIN) $(SBIN) $(SBINDIR)
- $(INSTALLBIN) $(USRBIN) $(USRBINDIR)
-ifneq "$(HAVE_FDUTILS)" "yes"
- $(INSTALLDAT) $(ETC) $(ETCDIR)
-endif
- $(INSTALLDIR) $(MAN8DIR)
- $(INSTALLMAN) $(MAN8) $(MAN8DIR)
-
-.PHONY: clean
-clean:
- -rm -f *.o *~ core $(SBIN) $(USRBIN) $(MAYBE)
diff --git a/disk-utils/Makefile.am b/disk-utils/Makefile.am
new file mode 100644
index 000000000..acca3deed
--- /dev/null
+++ b/disk-utils/Makefile.am
@@ -0,0 +1,37 @@
+include $(top_srcdir)/config/include-Makefile.am
+
+man_MANS = blockdev.8 fdformat.8 isosize.8 mkfs.8 mkswap.8 \
+ fsck.minix.8 mkfs.minix.8 mkfs.bfs.8
+
+sbin_PROGRAMS = mkfs mkswap blockdev fsck.minix mkfs.minix mkfs.bfs
+fsck_minix_SOURCES = fsck.minix.c
+mkfs_minix_SOURCES = mkfs.minix.c
+mkfs_bfs_SOURCES = mkfs.bfs.c
+
+usrbin_PROGRAMS = fdformat isosize
+
+dist_sysconf_DATA = fdprm
+
+if BUILD_ELVTUNE
+sbin_PROGRAMS += elvtune
+man_MANS += elvtune.8
+endif
+
+if HAVE_RAW
+if BUILD_RAW
+usrbin_PROGRAMS += raw
+man_MANS += raw.8
+endif
+endif
+
+if HAVE_ZLIB
+sbin_PROGRAMS += fsck.cramfs mkfs.cramfs
+fsck_cramfs_SOURCES = fsck.cramfs.c
+mkfs_cramfs_SOURCES = mkfs.cramfs.c
+fsck_cramfs_LDADD = -lz
+mkfs_cramfs_LDADD = -lz $(top_srcdir)/lib/libmd5.la
+endif
+
+if HAVE_UUID
+mkswap_LDADD = -luuid
+endif
diff --git a/disk-utils/Makefile.in b/disk-utils/Makefile.in
new file mode 100644
index 000000000..4095736ed
--- /dev/null
+++ b/disk-utils/Makefile.in
@@ -0,0 +1,779 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+DIST_COMMON = $(dist_sysconf_DATA) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(top_srcdir)/config/include-Makefile.am
+sbin_PROGRAMS = mkfs$(EXEEXT) mkswap$(EXEEXT) blockdev$(EXEEXT) \
+ fsck.minix$(EXEEXT) mkfs.minix$(EXEEXT) mkfs.bfs$(EXEEXT) \
+ $(am__EXEEXT_1) $(am__EXEEXT_2)
+usrbin_PROGRAMS = fdformat$(EXEEXT) isosize$(EXEEXT) $(am__EXEEXT_3)
+@BUILD_ELVTUNE_TRUE@am__append_1 = elvtune
+@BUILD_ELVTUNE_TRUE@am__append_2 = elvtune.8
+@BUILD_RAW_TRUE@@HAVE_RAW_TRUE@am__append_3 = raw
+@BUILD_RAW_TRUE@@HAVE_RAW_TRUE@am__append_4 = raw.8
+@HAVE_ZLIB_TRUE@am__append_5 = fsck.cramfs mkfs.cramfs
+subdir = disk-utils
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+@BUILD_ELVTUNE_TRUE@am__EXEEXT_1 = elvtune$(EXEEXT)
+@HAVE_ZLIB_TRUE@am__EXEEXT_2 = fsck.cramfs$(EXEEXT) \
+@HAVE_ZLIB_TRUE@ mkfs.cramfs$(EXEEXT)
+am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(usrbindir)" \
+ "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(sysconfdir)"
+sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+@BUILD_RAW_TRUE@@HAVE_RAW_TRUE@am__EXEEXT_3 = raw$(EXEEXT)
+usrbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+PROGRAMS = $(sbin_PROGRAMS) $(usrbin_PROGRAMS)
+blockdev_SOURCES = blockdev.c
+blockdev_OBJECTS = blockdev.$(OBJEXT)
+blockdev_LDADD = $(LDADD)
+elvtune_SOURCES = elvtune.c
+elvtune_OBJECTS = elvtune.$(OBJEXT)
+elvtune_LDADD = $(LDADD)
+fdformat_SOURCES = fdformat.c
+fdformat_OBJECTS = fdformat.$(OBJEXT)
+fdformat_LDADD = $(LDADD)
+am__fsck_cramfs_SOURCES_DIST = fsck.cramfs.c
+@HAVE_ZLIB_TRUE@am_fsck_cramfs_OBJECTS = fsck.cramfs.$(OBJEXT)
+fsck_cramfs_OBJECTS = $(am_fsck_cramfs_OBJECTS)
+fsck_cramfs_DEPENDENCIES =
+am_fsck_minix_OBJECTS = fsck.minix.$(OBJEXT)
+fsck_minix_OBJECTS = $(am_fsck_minix_OBJECTS)
+fsck_minix_LDADD = $(LDADD)
+isosize_SOURCES = isosize.c
+isosize_OBJECTS = isosize.$(OBJEXT)
+isosize_LDADD = $(LDADD)
+mkfs_SOURCES = mkfs.c
+mkfs_OBJECTS = mkfs.$(OBJEXT)
+mkfs_LDADD = $(LDADD)
+am_mkfs_bfs_OBJECTS = mkfs.bfs.$(OBJEXT)
+mkfs_bfs_OBJECTS = $(am_mkfs_bfs_OBJECTS)
+mkfs_bfs_LDADD = $(LDADD)
+am__mkfs_cramfs_SOURCES_DIST = mkfs.cramfs.c
+@HAVE_ZLIB_TRUE@am_mkfs_cramfs_OBJECTS = mkfs.cramfs.$(OBJEXT)
+mkfs_cramfs_OBJECTS = $(am_mkfs_cramfs_OBJECTS)
+@HAVE_ZLIB_TRUE@mkfs_cramfs_DEPENDENCIES = \
+@HAVE_ZLIB_TRUE@ $(top_srcdir)/lib/libmd5.la
+am_mkfs_minix_OBJECTS = mkfs.minix.$(OBJEXT)
+mkfs_minix_OBJECTS = $(am_mkfs_minix_OBJECTS)
+mkfs_minix_LDADD = $(LDADD)
+mkswap_SOURCES = mkswap.c
+mkswap_OBJECTS = mkswap.$(OBJEXT)
+mkswap_DEPENDENCIES =
+raw_SOURCES = raw.c
+raw_OBJECTS = raw.$(OBJEXT)
+raw_LDADD = $(LDADD)
+depcomp = $(SHELL) $(top_srcdir)/config/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = blockdev.c elvtune.c fdformat.c $(fsck_cramfs_SOURCES) \
+ $(fsck_minix_SOURCES) isosize.c mkfs.c $(mkfs_bfs_SOURCES) \
+ $(mkfs_cramfs_SOURCES) $(mkfs_minix_SOURCES) mkswap.c raw.c
+DIST_SOURCES = blockdev.c elvtune.c fdformat.c \
+ $(am__fsck_cramfs_SOURCES_DIST) $(fsck_minix_SOURCES) \
+ isosize.c mkfs.c $(mkfs_bfs_SOURCES) \
+ $(am__mkfs_cramfs_SOURCES_DIST) $(mkfs_minix_SOURCES) mkswap.c \
+ raw.c
+man8dir = $(mandir)/man8
+NROFF = nroff
+MANS = $(man_MANS)
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+dist_sysconfDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(dist_sysconf_DATA)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+BUILD_AGETTY_FALSE = @BUILD_AGETTY_FALSE@
+BUILD_AGETTY_TRUE = @BUILD_AGETTY_TRUE@
+BUILD_ELVTUNE_FALSE = @BUILD_ELVTUNE_FALSE@
+BUILD_ELVTUNE_TRUE = @BUILD_ELVTUNE_TRUE@
+BUILD_INIT_FALSE = @BUILD_INIT_FALSE@
+BUILD_INIT_TRUE = @BUILD_INIT_TRUE@
+BUILD_KILL_FALSE = @BUILD_KILL_FALSE@
+BUILD_KILL_TRUE = @BUILD_KILL_TRUE@
+BUILD_LAST_FALSE = @BUILD_LAST_FALSE@
+BUILD_LAST_TRUE = @BUILD_LAST_TRUE@
+BUILD_LOGIN_UTILS_FALSE = @BUILD_LOGIN_UTILS_FALSE@
+BUILD_LOGIN_UTILS_TRUE = @BUILD_LOGIN_UTILS_TRUE@
+BUILD_MESG_FALSE = @BUILD_MESG_FALSE@
+BUILD_MESG_TRUE = @BUILD_MESG_TRUE@
+BUILD_PARTX_FALSE = @BUILD_PARTX_FALSE@
+BUILD_PARTX_TRUE = @BUILD_PARTX_TRUE@
+BUILD_RAW_FALSE = @BUILD_RAW_FALSE@
+BUILD_RAW_TRUE = @BUILD_RAW_TRUE@
+BUILD_RDEV_FALSE = @BUILD_RDEV_FALSE@
+BUILD_RDEV_TRUE = @BUILD_RDEV_TRUE@
+BUILD_RENAME_FALSE = @BUILD_RENAME_FALSE@
+BUILD_RENAME_TRUE = @BUILD_RENAME_TRUE@
+BUILD_RESET_FALSE = @BUILD_RESET_FALSE@
+BUILD_RESET_TRUE = @BUILD_RESET_TRUE@
+BUILD_SCHEDUTILS_FALSE = @BUILD_SCHEDUTILS_FALSE@
+BUILD_SCHEDUTILS_TRUE = @BUILD_SCHEDUTILS_TRUE@
+BUILD_WALL_FALSE = @BUILD_WALL_FALSE@
+BUILD_WALL_TRUE = @BUILD_WALL_TRUE@
+BUILD_WRITE_FALSE = @BUILD_WRITE_FALSE@
+BUILD_WRITE_TRUE = @BUILD_WRITE_TRUE@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
+DEPDIR = @DEPDIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GMSGFMT = @GMSGFMT@
+HAVE_BLKID_FALSE = @HAVE_BLKID_FALSE@
+HAVE_BLKID_TRUE = @HAVE_BLKID_TRUE@
+HAVE_LIBUTIL_FALSE = @HAVE_LIBUTIL_FALSE@
+HAVE_LIBUTIL_TRUE = @HAVE_LIBUTIL_TRUE@
+HAVE_NCURSES_FALSE = @HAVE_NCURSES_FALSE@
+HAVE_NCURSES_TRUE = @HAVE_NCURSES_TRUE@
+HAVE_PAM_FALSE = @HAVE_PAM_FALSE@
+HAVE_PAM_TRUE = @HAVE_PAM_TRUE@
+HAVE_PIVOT_ROOT_FALSE = @HAVE_PIVOT_ROOT_FALSE@
+HAVE_PIVOT_ROOT_TRUE = @HAVE_PIVOT_ROOT_TRUE@
+HAVE_RAW_FALSE = @HAVE_RAW_FALSE@
+HAVE_RAW_TRUE = @HAVE_RAW_TRUE@
+HAVE_SELINUX_FALSE = @HAVE_SELINUX_FALSE@
+HAVE_SELINUX_TRUE = @HAVE_SELINUX_TRUE@
+HAVE_TERMCAP_FALSE = @HAVE_TERMCAP_FALSE@
+HAVE_TERMCAP_TRUE = @HAVE_TERMCAP_TRUE@
+HAVE_UUID_FALSE = @HAVE_UUID_FALSE@
+HAVE_UUID_TRUE = @HAVE_UUID_TRUE@
+HAVE_ZLIB_FALSE = @HAVE_ZLIB_FALSE@
+HAVE_ZLIB_TRUE = @HAVE_ZLIB_TRUE@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTEL_FALSE = @INTEL_FALSE@
+INTEL_TRUE = @INTEL_TRUE@
+INTLLIBS = @INTLLIBS@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NEED_LIBCRYPT_FALSE = @NEED_LIBCRYPT_FALSE@
+NEED_LIBCRYPT_TRUE = @NEED_LIBCRYPT_TRUE@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PERL = @PERL@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SPARC_FALSE = @SPARC_FALSE@
+SPARC_TRUE = @SPARC_TRUE@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+USE_SLANG_FALSE = @USE_SLANG_FALSE@
+USE_SLANG_TRUE = @USE_SLANG_TRUE@
+USE_TTY_GROUP_FALSE = @USE_TTY_GROUP_FALSE@
+USE_TTY_GROUP_TRUE = @USE_TTY_GROUP_TRUE@
+VERSION = @VERSION@
+XGETTEXT = @XGETTEXT@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = $(prefix)/usr/share
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = $(datadir)/info
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = $(datadir)/man
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+usrbindir = $(prefix)/usr/bin
+usrsbindir = $(prefix)/usr/sbin
+AM_CPPFLAGS = -include ../config.h -I$(top_srcdir)/include
+DEFAULT_INCLUDES =
+man_MANS = blockdev.8 fdformat.8 isosize.8 mkfs.8 mkswap.8 \
+ fsck.minix.8 mkfs.minix.8 mkfs.bfs.8 $(am__append_2) \
+ $(am__append_4)
+fsck_minix_SOURCES = fsck.minix.c
+mkfs_minix_SOURCES = mkfs.minix.c
+mkfs_bfs_SOURCES = mkfs.bfs.c
+dist_sysconf_DATA = fdprm
+@HAVE_ZLIB_TRUE@fsck_cramfs_SOURCES = fsck.cramfs.c
+@HAVE_ZLIB_TRUE@mkfs_cramfs_SOURCES = mkfs.cramfs.c
+@HAVE_ZLIB_TRUE@fsck_cramfs_LDADD = -lz
+@HAVE_ZLIB_TRUE@mkfs_cramfs_LDADD = -lz $(top_srcdir)/lib/libmd5.la
+@HAVE_UUID_TRUE@mkswap_LDADD = -luuid
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/config/include-Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign disk-utils/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign disk-utils/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-sbinPROGRAMS: $(sbin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
+ @list='$(sbin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+ || test -f $$p1 \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
+ else :; fi; \
+ done
+
+uninstall-sbinPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(sbin_PROGRAMS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
+ rm -f "$(DESTDIR)$(sbindir)/$$f"; \
+ done
+
+clean-sbinPROGRAMS:
+ @list='$(sbin_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+
+installcheck-sbinPROGRAMS: $(sbin_PROGRAMS)
+ bad=0; pid=$$$$; list="$(sbin_PROGRAMS)"; for p in $$list; do \
+ case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
+ *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
+ esac; \
+ f=`echo "$$p" | \
+ sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ for opt in --help --version; do \
+ if "$(DESTDIR)$(sbindir)/$$f" $$opt >c$${pid}_.out \
+ 2>c$${pid}_.err </dev/null \
+ && test -n "`cat c$${pid}_.out`" \
+ && test -z "`cat c$${pid}_.err`"; then :; \
+ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
+ done; \
+ done; rm -f c$${pid}_.???; exit $$bad
+install-usrbinPROGRAMS: $(usrbin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(usrbindir)" || $(mkdir_p) "$(DESTDIR)$(usrbindir)"
+ @list='$(usrbin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+ || test -f $$p1 \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(usrbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(usrbindir)/$$f'"; \
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(usrbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(usrbindir)/$$f" || exit 1; \
+ else :; fi; \
+ done
+
+uninstall-usrbinPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(usrbin_PROGRAMS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " rm -f '$(DESTDIR)$(usrbindir)/$$f'"; \
+ rm -f "$(DESTDIR)$(usrbindir)/$$f"; \
+ done
+
+clean-usrbinPROGRAMS:
+ @list='$(usrbin_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+
+installcheck-usrbinPROGRAMS: $(usrbin_PROGRAMS)
+ bad=0; pid=$$$$; list="$(usrbin_PROGRAMS)"; for p in $$list; do \
+ case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
+ *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
+ esac; \
+ f=`echo "$$p" | \
+ sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ for opt in --help --version; do \
+ if "$(DESTDIR)$(usrbindir)/$$f" $$opt >c$${pid}_.out \
+ 2>c$${pid}_.err </dev/null \
+ && test -n "`cat c$${pid}_.out`" \
+ && test -z "`cat c$${pid}_.err`"; then :; \
+ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
+ done; \
+ done; rm -f c$${pid}_.???; exit $$bad
+blockdev$(EXEEXT): $(blockdev_OBJECTS) $(blockdev_DEPENDENCIES)
+ @rm -f blockdev$(EXEEXT)
+ $(LINK) $(blockdev_LDFLAGS) $(blockdev_OBJECTS) $(blockdev_LDADD) $(LIBS)
+elvtune$(EXEEXT): $(elvtune_OBJECTS) $(elvtune_DEPENDENCIES)
+ @rm -f elvtune$(EXEEXT)
+ $(LINK) $(elvtune_LDFLAGS) $(elvtune_OBJECTS) $(elvtune_LDADD) $(LIBS)
+fdformat$(EXEEXT): $(fdformat_OBJECTS) $(fdformat_DEPENDENCIES)
+ @rm -f fdformat$(EXEEXT)
+ $(LINK) $(fdformat_LDFLAGS) $(fdformat_OBJECTS) $(fdformat_LDADD) $(LIBS)
+fsck.cramfs$(EXEEXT): $(fsck_cramfs_OBJECTS) $(fsck_cramfs_DEPENDENCIES)
+ @rm -f fsck.cramfs$(EXEEXT)
+ $(LINK) $(fsck_cramfs_LDFLAGS) $(fsck_cramfs_OBJECTS) $(fsck_cramfs_LDADD) $(LIBS)
+fsck.minix$(EXEEXT): $(fsck_minix_OBJECTS) $(fsck_minix_DEPENDENCIES)
+ @rm -f fsck.minix$(EXEEXT)
+ $(LINK) $(fsck_minix_LDFLAGS) $(fsck_minix_OBJECTS) $(fsck_minix_LDADD) $(LIBS)
+isosize$(EXEEXT): $(isosize_OBJECTS) $(isosize_DEPENDENCIES)
+ @rm -f isosize$(EXEEXT)
+ $(LINK) $(isosize_LDFLAGS) $(isosize_OBJECTS) $(isosize_LDADD) $(LIBS)
+mkfs$(EXEEXT): $(mkfs_OBJECTS) $(mkfs_DEPENDENCIES)
+ @rm -f mkfs$(EXEEXT)
+ $(LINK) $(mkfs_LDFLAGS) $(mkfs_OBJECTS) $(mkfs_LDADD) $(LIBS)
+mkfs.bfs$(EXEEXT): $(mkfs_bfs_OBJECTS) $(mkfs_bfs_DEPENDENCIES)
+ @rm -f mkfs.bfs$(EXEEXT)
+ $(LINK) $(mkfs_bfs_LDFLAGS) $(mkfs_bfs_OBJECTS) $(mkfs_bfs_LDADD) $(LIBS)
+mkfs.cramfs$(EXEEXT): $(mkfs_cramfs_OBJECTS) $(mkfs_cramfs_DEPENDENCIES)
+ @rm -f mkfs.cramfs$(EXEEXT)
+ $(LINK) $(mkfs_cramfs_LDFLAGS) $(mkfs_cramfs_OBJECTS) $(mkfs_cramfs_LDADD) $(LIBS)
+mkfs.minix$(EXEEXT): $(mkfs_minix_OBJECTS) $(mkfs_minix_DEPENDENCIES)
+ @rm -f mkfs.minix$(EXEEXT)
+ $(LINK) $(mkfs_minix_LDFLAGS) $(mkfs_minix_OBJECTS) $(mkfs_minix_LDADD) $(LIBS)
+mkswap$(EXEEXT): $(mkswap_OBJECTS) $(mkswap_DEPENDENCIES)
+ @rm -f mkswap$(EXEEXT)
+ $(LINK) $(mkswap_LDFLAGS) $(mkswap_OBJECTS) $(mkswap_LDADD) $(LIBS)
+raw$(EXEEXT): $(raw_OBJECTS) $(raw_DEPENDENCIES)
+ @rm -f raw$(EXEEXT)
+ $(LINK) $(raw_LDFLAGS) $(raw_OBJECTS) $(raw_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/blockdev.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elvtune.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fdformat.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsck.cramfs.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsck.minix.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isosize.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mkfs.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mkfs.bfs.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mkfs.cramfs.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mkfs.minix.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mkswap.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/raw.Po@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+uninstall-info-am:
+install-man8: $(man8_MANS) $(man_MANS)
+ @$(NORMAL_INSTALL)
+ test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
+ @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
+ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+ for i in $$l2; do \
+ case "$$i" in \
+ *.8*) list="$$list $$i" ;; \
+ esac; \
+ done; \
+ for i in $$list; do \
+ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
+ else file=$$i; fi; \
+ ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+ case "$$ext" in \
+ 8*) ;; \
+ *) ext='8' ;; \
+ esac; \
+ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+ inst=`echo $$inst | sed -e 's/^.*\///'`; \
+ inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
+ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
+ done
+uninstall-man8:
+ @$(NORMAL_UNINSTALL)
+ @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
+ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+ for i in $$l2; do \
+ case "$$i" in \
+ *.8*) list="$$list $$i" ;; \
+ esac; \
+ done; \
+ for i in $$list; do \
+ ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+ case "$$ext" in \
+ 8*) ;; \
+ *) ext='8' ;; \
+ esac; \
+ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+ inst=`echo $$inst | sed -e 's/^.*\///'`; \
+ inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+ echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
+ rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
+ done
+install-dist_sysconfDATA: $(dist_sysconf_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
+ @list='$(dist_sysconf_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(dist_sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \
+ $(dist_sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \
+ done
+
+uninstall-dist_sysconfDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(dist_sysconf_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(sysconfdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(sysconfdir)/$$f"; \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ $(mkdir_p) $(distdir)/../config
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+ list='$(DISTFILES)'; for file in $$list; do \
+ case $$file in \
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+ esac; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ dir="/$$dir"; \
+ $(mkdir_p) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
+ fi; \
+ if test -d $$d/$$file; then \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS) $(MANS) $(DATA)
+installdirs:
+ for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(usrbindir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(sysconfdir)"; do \
+ test -z "$$dir" || $(mkdir_p) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \
+ clean-usrbinPROGRAMS mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-man install-usrbinPROGRAMS
+
+install-exec-am: install-dist_sysconfDATA install-sbinPROGRAMS
+
+install-info: install-info-am
+
+install-man: install-man8
+
+installcheck-am: installcheck-sbinPROGRAMS installcheck-usrbinPROGRAMS
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-dist_sysconfDATA uninstall-info-am \
+ uninstall-man uninstall-sbinPROGRAMS uninstall-usrbinPROGRAMS
+
+uninstall-man: uninstall-man8
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libtool clean-sbinPROGRAMS clean-usrbinPROGRAMS ctags \
+ distclean distclean-compile distclean-generic \
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dist_sysconfDATA install-exec \
+ install-exec-am install-info install-info-am install-man \
+ install-man8 install-sbinPROGRAMS install-strip \
+ install-usrbinPROGRAMS installcheck installcheck-am \
+ installcheck-sbinPROGRAMS installcheck-usrbinPROGRAMS \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
+ uninstall-am uninstall-dist_sysconfDATA uninstall-info-am \
+ uninstall-man uninstall-man8 uninstall-sbinPROGRAMS \
+ uninstall-usrbinPROGRAMS
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c
index bb11981db..51033db90 100644
--- a/disk-utils/blockdev.c
+++ b/disk-utils/blockdev.c
@@ -171,7 +171,7 @@ main(int argc, char **argv) {
/* -V not together with commands */
if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) {
- printf("%s from %s\n", progname, util_linux_version);
+ printf("%s from %s%s\n", progname, "util-linux-", VERSION);
exit(0);
}
diff --git a/disk-utils/elvtune.c b/disk-utils/elvtune.c
index a3c05ffb7..ec3083b3f 100644
--- a/disk-utils/elvtune.c
+++ b/disk-utils/elvtune.c
@@ -46,7 +46,7 @@ typedef struct blkelv_ioctl_arg_s {
static void
usage(void) {
- fprintf(stderr, "elvtune (%s)\n", util_linux_version);
+ fprintf(stderr, "elvtune (%s%s)\n", "util-linux-", VERSION);
fprintf(stderr, _("usage:\n"));
fprintf(stderr, "\telvtune [-r r_lat] [-w w_lat] [-b b_lat]"
" /dev/blkdev1 [/dev/blkdev2...]\n");
@@ -58,7 +58,7 @@ usage(void) {
static void
version(void) {
- fprintf(stderr, "elvtune (%s)\n", util_linux_version);
+ fprintf(stderr, "elvtune (%s%s)\n", "util-linux-", VERSION);
}
#define MAKE_VERSION(p,q,r) (65536*(p) + 256*(q) + (r))
diff --git a/disk-utils/fdformat.c b/disk-utils/fdformat.c
index e1b381173..98f221525 100644
--- a/disk-utils/fdformat.c
+++ b/disk-utils/fdformat.c
@@ -113,7 +113,7 @@ int main(int argc,char **argv)
if (argc == 2 &&
(!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
- printf(_("%s from %s\n"), progname, util_linux_version);
+ printf(_("%s from %s%s\n"), progname, "util-linux-", VERSION);
exit(0);
}
diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c
index 83bf00ac8..d46a56954 100644
--- a/disk-utils/fsck.cramfs.c
+++ b/disk-utils/fsck.cramfs.c
@@ -51,7 +51,6 @@
#include <sys/sysmacros.h> /* for major, minor */
#include "cramfs.h"
-#include "../defines.h" /* for HAVE_lchown */
#include "nls.h"
#define BLKGETSIZE _IO(0x12,96) /* return device size */
@@ -205,10 +204,8 @@ static int uncompress_block(void *src, int len)
return stream.total_out;
}
-#ifdef HAVE_lchown
-#define my_lchown lchown
-#else
-#define my_lchown chown
+#if !HAVE_LCHOWN
+#define lchown chown
#endif
static void change_file_status(char *path, struct cramfs_inode *i)
@@ -216,7 +213,7 @@ static void change_file_status(char *path, struct cramfs_inode *i)
struct utimbuf epoch = { 0, 0 };
if (euid == 0) {
- if (my_lchown(path, i->uid, i->gid) < 0) {
+ if (lchown(path, i->uid, i->gid) < 0) {
perror(path);
exit(8);
}
diff --git a/disk-utils/fsck.minix.c b/disk-utils/fsck.minix.c
index 808ae22cf..a38859552 100644
--- a/disk-utils/fsck.minix.c
+++ b/disk-utils/fsck.minix.c
@@ -1246,7 +1246,7 @@ main(int argc, char ** argv) {
if (argc == 2 &&
(!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
- printf(_("%s from %s\n"), program_name, util_linux_version);
+ printf(_("%s from %s%s\n"), program_name, "util-linux-", VERSION);
exit(0);
}
diff --git a/disk-utils/isosize.c b/disk-utils/isosize.c
index 005077a83..2f98efb23 100644
--- a/disk-utils/isosize.c
+++ b/disk-utils/isosize.c
@@ -176,7 +176,7 @@ main(int argc, char * argv[]) {
if (argc >= 2 &&
(!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
- printf(_("%s from %s\n"), progname, util_linux_version);
+ printf(_("%s from %s%s\n"), progname, "util-linux-", VERSION);
exit(0);
}
diff --git a/disk-utils/mkfs.8 b/disk-utils/mkfs.8
index 760a5e087..47c489c2b 100644
--- a/disk-utils/mkfs.8
+++ b/disk-utils/mkfs.8
@@ -56,7 +56,7 @@ contains
and
.IR /sbin/fs ),
and finally in the directories
-listed in the PATH enviroment variable.
+listed in the PATH environment variable.
Please see the file system-specific builder manual pages for
further details.
.SH OPTIONS
diff --git a/disk-utils/mkfs.bfs.c b/disk-utils/mkfs.bfs.c
index 47863bb1c..224d54a34 100644
--- a/disk-utils/mkfs.bfs.c
+++ b/disk-utils/mkfs.bfs.c
@@ -116,7 +116,7 @@ main(int argc, char *argv[]) {
if (argc == 2 &&
(!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
- printf(_("%s from %s\n"), progname, util_linux_version);
+ printf(_("%s from %s%s\n"), progname, "util-linux-", VERSION);
exit(0);
}
diff --git a/disk-utils/mkfs.c b/disk-utils/mkfs.c
index 38bacc034..4989f383e 100644
--- a/disk-utils/mkfs.c
+++ b/disk-utils/mkfs.c
@@ -21,9 +21,7 @@
#include <unistd.h>
#include <string.h>
#include <getopt.h>
-#include "nls.h"
-
-#define VERSION UTIL_LINUX_VERSION
+#include <nls.h>
#ifndef DEFAULT_FSTYPE
# define DEFAULT_FSTYPE "ext2"
@@ -51,7 +49,7 @@ int main(int argc, char *argv[])
if (argc == 2 &&
(!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
- printf(_("%s from %s\n"), program_name, util_linux_version);
+ printf(_("%s from %s%s\n"), program_name, "util-linux-", VERSION);
exit(0);
}
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index 440b043de..1b3e891ad 100644
--- a/disk-utils/mkfs.cramfs.c
+++ b/disk-utils/mkfs.cramfs.c
@@ -775,8 +775,8 @@ int main(int argc, char **argv)
/* old option, ignored */
break;
case 'V':
- printf(_("%s from %s\n"),
- progname, util_linux_version);
+ printf(_("%s from %s%s\n"),
+ progname, "util-linux-", VERSION);
exit(0);
case 'v':
verbose = 1;
diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c
index 14cf6fa65..c86ed1656 100644
--- a/disk-utils/mkfs.minix.c
+++ b/disk-utils/mkfs.minix.c
@@ -158,7 +158,7 @@ die(char *str) {
static void
usage(void) {
- fprintf(stderr, "%s (%s)\n", program_name, util_linux_version);
+ fprintf(stderr, "%s (%s%s)\n", program_name, "util-linux-", VERSION);
fprintf(stderr,
_("Usage: %s [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]\n"),
program_name);
@@ -623,7 +623,7 @@ main(int argc, char ** argv) {
if (argc == 2 &&
(!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
- printf(_("%s from %s\n"), program_name, util_linux_version);
+ printf(_("%s from %s%s\n"), program_name, "util-linux-", VERSION);
exit(0);
}
diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c
index 67586fd19..3be985902 100644
--- a/disk-utils/mkswap.c
+++ b/disk-utils/mkswap.c
@@ -39,21 +39,20 @@
#include <sys/ioctl.h> /* for _IO */
#include <sys/utsname.h>
#include <sys/stat.h>
-#include "../defines.h"
#include "swapheader.h"
#include "xstrncpy.h"
#include "nls.h"
-#ifdef HAVE_uuid_uuid_h
+#ifdef HAVE_UUID_UUID_H
#include <uuid/uuid.h>
#endif
/* Try to get PAGE_SIZE from libc or kernel includes */
-#ifdef HAVE_sys_user_h
+#ifdef HAVE_SYS_USER_H
/* Note: <sys/user.h> says: for gdb only */
#include <sys/user.h> /* for PAGE_SIZE and PAGE_SHIFT */
#else
-#ifdef HAVE_asm_page_h
+#ifdef HAVE_ASM_PAGE_H
#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
/* we also get PAGE_SIZE via getpagesize() */
#endif
@@ -112,7 +111,7 @@ is_sparc64(void) {
if (strcmp(un.machine, "sparc"))
return 0; /* Should not happen */
-#ifdef HAVE_personality
+#ifdef HAVE_PERSONALITY
{
extern int personality(unsigned long);
int oldpers;
@@ -248,7 +247,7 @@ write_uuid_and_label(char *uuid, char *volume_name) {
printf("LABEL=%s, ", h->volume_name);
else
printf(_("no label, "));
-#ifdef HAVE_uuid_uuid_h
+#ifdef HAVE_UUID_UUID_H
if (uuid) {
char uuid_string[37];
uuid_unparse(uuid, uuid_string);
@@ -506,7 +505,7 @@ main(int argc, char ** argv) {
char *pp;
char *opt_label = NULL;
char *uuid = NULL;
-#ifdef HAVE_uuid_uuid_h
+#ifdef HAVE_UUID_UUID_H
uuid_t uuid_dat;
#endif
@@ -520,7 +519,7 @@ main(int argc, char ** argv) {
if (argc == 2 &&
(!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
- printf(_("%s from %s\n"), program_name, util_linux_version);
+ printf(_("%s from %s%s\n"), program_name, "util-linux-", VERSION);
exit(0);
}
@@ -562,7 +561,7 @@ main(int argc, char ** argv) {
usage();
}
-#ifdef HAVE_uuid_uuid_h
+#ifdef HAVE_UUID_UUID_H
uuid_generate(uuid_dat);
uuid = uuid_dat;
#endif
@@ -715,7 +714,7 @@ the -f option to force it.\n"),
* A subsequent swapon() will fail if the signature
* is not actually on disk. (This is a kernel bug.)
*/
-#ifdef HAVE_fsync
+#ifdef HAVE_FSYNC
if (fsync(DEV))
die(_("fsync failed"));
#endif
diff --git a/disk-utils/setfdprm.8 b/disk-utils/setfdprm.8
deleted file mode 100644
index 63143256d..000000000
--- a/disk-utils/setfdprm.8
+++ /dev/null
@@ -1,66 +0,0 @@
-.\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
-.\" May be distributed under the GNU General Public License
-.TH SETFDPRM 8 "20 November 1993" "Linux 0.99" "Linux Programmer's Manual"
-.SH NAME
-setfdprm \- sets user-provided floppy disk parameters
-.SH SYNOPSIS
-.B "setfdprm [ \-p ]"
-device name
-.br
-.B "setfdprm [ \-p ]"
-device size sectors heads tracks stretch gap rate spec1 fmt_gap
-.br
-.B "setfdprm [ \-c ]"
-device
-.br
-.B "setfdprm [ \-y ]"
-device
-.br
-.B "setfdprm [ \-n ]"
-device
-.SH DESCRIPTION
-.B setfdprm
-is a utility that can be used to load disk parameters into the
-auto-detecting floppy devices, to clear old parameter sets and to disable
-or enable diagnostic messages.
-
-Without any options,
-.B setfdprm
-loads the
-.I device
-(usually
-.I /dev/fd0
-or
-.IR /dev/fd1 )
-with a new parameter set with the
-.I name
-entry found in
-.I /etc/fdprm
-(usually named 360/360, etc.). These parameters stay in effect until the
-media is changed.
-.OPTIONS
-.TP
-.BI \-p " device name"
-Permanently loads a new parameter set for the specified auto-configuring
-floppy device for the configuration with
-.I name
-in
-.IR /etc/fdprm .
-Alternatively, the parameters can be given directly from the command line.
-.TP
-.BI \-c " device"
-Clears the parameter set of the specified auto-configuring floppy device.
-.TP
-.BI -y " device"
-Enables format detection messages for the specified auto-configuring floppy
-device.
-.TP
-.BI -n " device"
-Disables format detection messages for the specified auto-configuring
-floppy device.
-.SH BUGS
-This documentation is grossly incomplete.
-.SH FILES
-.I /etc/fdprm
-.SH AUTHOR
-Werner Almesberger (almesber@nessie.cs.id.ethz.ch)
diff --git a/disk-utils/setfdprm.c b/disk-utils/setfdprm.c
deleted file mode 100644
index a5dba3e00..000000000
--- a/disk-utils/setfdprm.c
+++ /dev/null
@@ -1,176 +0,0 @@
-/* setfdprm.c - Sets user-provided floppy disk parameters, re-activates
- autodetection and switches diagnostic messages. */
-
-/* 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
- * - added Native Language Support
- */
-
-#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/ioctl.h>
-#include <linux/fd.h>
-#include "nls.h"
-
-#define FDPRMFILE "/etc/fdprm"
-#define MAXLINE 200
-
-
-static int
-convert(char *arg) {
- long result;
- char *end;
-
- result = strtol(arg,&end,0);
- if (!*end)
- return (int) result;
- fprintf(stderr,_("Invalid number: %s\n"),arg);
- exit(1);
-}
-
-static void
-cmd_without_param(int cmd,int fd) {
- if (ioctl(fd,cmd,NULL) >= 0)
- exit(0);
- perror("ioctl");
- exit(1);
-}
-
-/* set given fd parameters */
-static void
-set_params(int cmd,int fd,char **params) {
- struct floppy_struct ft;
-
- ft.size = convert(params[0]);
- ft.sect = convert(params[1]);
- ft.head = convert(params[2]);
- ft.track = convert(params[3]);
- ft.stretch = convert(params[4]);
- ft.gap = convert(params[5]);
- ft.rate = convert(params[6]);
- ft.spec1 = convert(params[7]);
- ft.fmt_gap = convert(params[8]);
- ft.name = NULL;
- if (ioctl(fd,cmd,&ft) >= 0) exit(0);
- perror("ioctl");
- exit(1);
-}
-
-/* find parameter set in file, and use it */
-static void
-find_params(int cmd,int fd,char *name) {
- FILE *file;
- char line[MAXLINE+2],this[MAXLINE+2],param[9][MAXLINE+2];
- char *params[9],*start;
- int count;
-
- if ((file = fopen(FDPRMFILE,"r")) == NULL) {
- perror(FDPRMFILE);
- exit(1);
- }
- while (fgets(line,MAXLINE,file)) {
- for (start = line; *start == ' ' || *start == '\t'; start++);
- if (*start && *start != '\n' && *start != '#') {
- if (sscanf(start,"%s %s %s %s %s %s %s %s %s %s",this,param[0],
- param[1],param[2],param[3],param[4],param[5],param[6],param[7],
- param[8]) != 10) {
- fprintf(stderr,_("Syntax error: '%s'\n"),line);
- exit(1);
- }
- if (!strcmp(this,name)) {
- for (count = 0; count < 9; count++)
- params[count] = param[count];
- set_params(cmd,fd,params);
- }
- }
- }
- fprintf(stderr,_("No such parameter set: '%s'\n"),name);
- exit(1);
-}
-
-static void
-usage(char *name) {
- char *this;
-
- if ((this = strrchr(name,'/')) != NULL) name = this+1;
- fprintf(stderr,_("usage:\n"));
- fprintf(stderr,_(" %s [ -p ] dev name\n"),name);
- fprintf(stderr,_(" %s [ -p ] dev size sect heads tracks stretch "
- "gap rate spec1 fmt_gap\n"),name);
-#ifdef FDMEDCNG
- fprintf(stderr,_(" %s [ -c | -y | -n | -d ] dev\n"),name);
-#else
- fprintf(stderr,_(" %s [ -c | -y | -n ] dev\n"),name);
-#endif
- exit(1);
-}
-
-int
-main(int argc, char **argv) {
- int fd;
- unsigned int cmd;
- char *progname, *p;
-
- progname = argv[0];
- if ((p = strrchr(progname, '/')) != NULL)
- progname = p+1;
-
- setlocale(LC_ALL, "");
- bindtextdomain(PACKAGE, LOCALEDIR);
- textdomain(PACKAGE);
-
- if (argc == 2 &&
- (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
- printf(_("%s from %s\n"), progname, util_linux_version);
- exit(0);
- }
-
- if (argc < 2)
- usage(progname);
- cmd = FDSETPRM;
- if (*argv[1] == '-') {
- switch (argv[1][1]) {
- case 'c':
- cmd = FDCLRPRM;
- break;
- case 'p':
- cmd = FDDEFPRM;
- break;
- case 'y':
- cmd = FDMSGON;
- break;
- case 'n':
- cmd = FDMSGOFF;
- break;
-#ifdef FDMEDCNG
- case 'd':
- cmd = FDMEDCNG;
- break;
-#endif
- default:
- usage(progname);
- }
- argc--;
- argv++;
- }
- if ((fd = open(argv[1],3)) < 0) { /* O_WRONLY needed in a few kernels */
- perror(argv[1]);
- exit(1);
- }
- if (cmd != FDSETPRM && cmd != FDDEFPRM) {
- if (argc != 2) usage(progname);
- cmd_without_param(cmd,fd);
- }
- if (argc != 11 && argc != 3)
- usage(progname);
- else if (argc == 11)
- set_params(cmd,fd,&argv[2]);
- else
- find_params(cmd,fd,argv[2]);
- /* not reached */
- return 0;
-}