1997-04-26 17:58:21 +04:00
|
|
|
# Makefile for the second extended file system utility functions
|
|
|
|
#
|
|
|
|
# Copyright (C) 1993 Remy Card (card@masi.ibp.fr)
|
|
|
|
#
|
|
|
|
# This file can be redistributed under the terms of the GNU General
|
|
|
|
# Public License
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
top_builddir = ../..
|
1997-04-29 18:53:37 +04:00
|
|
|
my_dir = lib/e2p
|
1997-04-26 17:58:21 +04:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
|
|
|
@MCONFIG@
|
|
|
|
|
|
|
|
all::
|
|
|
|
|
1999-09-15 00:17:38 +04:00
|
|
|
OBJS= feature.o fgetflags.o fsetflags.o fgetversion.o fsetversion.o \
|
2002-10-16 01:43:43 +04:00
|
|
|
getflags.o getversion.o hashstr.o iod.o ls.o mntopts.o \
|
|
|
|
pe.o pf.o ps.o setflags.o setversion.o uuid.o
|
1997-04-26 17:58:21 +04:00
|
|
|
|
1999-09-15 00:17:38 +04:00
|
|
|
SRCS= $(srcdir)/feature.c $(srcdir)/fgetflags.c \
|
|
|
|
$(srcdir)/fsetflags.c $(srcdir)/fgetversion.c \
|
|
|
|
$(srcdir)/fsetversion.c $(srcdir)/getflags.c \
|
2002-11-08 22:31:03 +03:00
|
|
|
$(srcdir)/getversion.c $(srcdir)/hashstr.c $(srcdir)/iod.c \
|
|
|
|
$(srcdir)/ls.c $(srcdir)/mntopts.c $(srcdir)/pe.c \
|
2002-10-16 01:43:43 +04:00
|
|
|
$(srcdir)/pf.c $(srcdir)/ps.c $(srcdir)/setflags.c \
|
|
|
|
$(srcdir)/setversion.c $(srcdir)/uuid.c
|
1997-04-26 17:58:21 +04:00
|
|
|
|
2000-02-11 07:48:03 +03:00
|
|
|
HFILES= e2p.h
|
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
LIBRARY= libe2p
|
|
|
|
LIBDIR= e2p
|
|
|
|
|
|
|
|
DLL_ADDRESS = 0x66980000
|
|
|
|
DLL_JUMPSIZE = 0x1000
|
|
|
|
DLL_GOTSIZE = 0x1000
|
1997-04-29 21:48:10 +04:00
|
|
|
DLL_VERSION = 1.3
|
1997-04-26 17:58:21 +04:00
|
|
|
DLL_IMAGE = libe2p
|
|
|
|
DLL_STUB = libe2p
|
|
|
|
DLL_MYDIR = e2p
|
ChangeLog, Makefile.in:
Remove libext2fs.info*, not just libext2fs.info*.gz. Add an
uninstall-doc-libs target.
ChangeLog, Makefile.in, compile_et.1, compile_et.sh.in:
Makefile.in: Fix bug where my_dir was set incorrectly. Install the
et_c.awk and et_h.awk files in $(datadir)/et (i.e., /usr/share/et)
directory. Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
compile_et.1: Change man page to reflect the fact that compile_et is
now a awk/sed script, not a yacc script.
compile_et.sh.in: Look in $(datadir)/et for et_c.awk and et_h.awk; if
not found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in, mk_cmds.sh.in:
Makefile.in: Install the ct_c.awk and ct_c.sed files in $(datadir)/ss
(i.e., /usr/share/ss) directory. Change to use new installation
directory variables convention. Fix uninstall rules to take
$(DESTDIR) into account.
mk_cmds.sh.in: Look in $(datadir)/ss for ct_c.awk and ct_c.sed; if not
found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in:
Makefile.in: Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
1998-04-01 06:18:45 +04:00
|
|
|
DLL_INSTALL_DIR = $(root_libdir)
|
1997-04-26 17:58:21 +04:00
|
|
|
|
1997-04-29 21:48:10 +04:00
|
|
|
ELF_VERSION = 2.3
|
1997-04-26 18:25:20 +04:00
|
|
|
ELF_SO_VERSION = 2
|
1997-04-26 17:58:21 +04:00
|
|
|
ELF_IMAGE = libe2p
|
|
|
|
ELF_MYDIR = e2p
|
ChangeLog, Makefile.in:
Remove libext2fs.info*, not just libext2fs.info*.gz. Add an
uninstall-doc-libs target.
ChangeLog, Makefile.in, compile_et.1, compile_et.sh.in:
Makefile.in: Fix bug where my_dir was set incorrectly. Install the
et_c.awk and et_h.awk files in $(datadir)/et (i.e., /usr/share/et)
directory. Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
compile_et.1: Change man page to reflect the fact that compile_et is
now a awk/sed script, not a yacc script.
compile_et.sh.in: Look in $(datadir)/et for et_c.awk and et_h.awk; if
not found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in, mk_cmds.sh.in:
Makefile.in: Install the ct_c.awk and ct_c.sed files in $(datadir)/ss
(i.e., /usr/share/ss) directory. Change to use new installation
directory variables convention. Fix uninstall rules to take
$(DESTDIR) into account.
mk_cmds.sh.in: Look in $(datadir)/ss for ct_c.awk and ct_c.sed; if not
found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in:
Makefile.in: Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
1998-04-01 06:18:45 +04:00
|
|
|
ELF_INSTALL_DIR = $(root_libdir)
|
2000-07-04 22:51:20 +04:00
|
|
|
ELF_OTHER_LIBS =
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
BSDLIB_VERSION = 2.1
|
|
|
|
BSDLIB_IMAGE = libe2p
|
|
|
|
BSDLIB_MYDIR = e2p
|
ChangeLog, Makefile.in:
Remove libext2fs.info*, not just libext2fs.info*.gz. Add an
uninstall-doc-libs target.
ChangeLog, Makefile.in, compile_et.1, compile_et.sh.in:
Makefile.in: Fix bug where my_dir was set incorrectly. Install the
et_c.awk and et_h.awk files in $(datadir)/et (i.e., /usr/share/et)
directory. Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
compile_et.1: Change man page to reflect the fact that compile_et is
now a awk/sed script, not a yacc script.
compile_et.sh.in: Look in $(datadir)/et for et_c.awk and et_h.awk; if
not found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in, mk_cmds.sh.in:
Makefile.in: Install the ct_c.awk and ct_c.sed files in $(datadir)/ss
(i.e., /usr/share/ss) directory. Change to use new installation
directory variables convention. Fix uninstall rules to take
$(DESTDIR) into account.
mk_cmds.sh.in: Look in $(datadir)/ss for ct_c.awk and ct_c.sed; if not
found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in:
Makefile.in: Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
1998-04-01 06:18:45 +04:00
|
|
|
BSDLIB_INSTALL_DIR = $(root_libdir)
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
@MAKEFILE_LIBRARY@
|
|
|
|
@MAKEFILE_DLL@
|
|
|
|
@MAKEFILE_ELF@
|
|
|
|
@MAKEFILE_BSDLIB@
|
|
|
|
@MAKEFILE_PROFILE@
|
|
|
|
@MAKEFILE_CHECKER@
|
|
|
|
|
|
|
|
.c.o:
|
1997-04-26 18:37:06 +04:00
|
|
|
$(CC) $(ALL_CFLAGS) -c $< -o $@
|
1997-04-29 20:15:03 +04:00
|
|
|
@PROFILE_CMT@ $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
|
1997-04-26 18:37:06 +04:00
|
|
|
@CHECKER_CMT@ $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $<
|
|
|
|
@DLL_CMT@ (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \
|
1997-04-26 17:58:21 +04:00
|
|
|
@DLL_CMT@ -o jump/$*.o -c $<)
|
1997-04-26 18:37:06 +04:00
|
|
|
@ELF_CMT@ $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
|
2004-03-01 06:46:49 +03:00
|
|
|
@BSDLIB_CMT@ $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
installdirs::
|
2000-02-11 07:48:03 +03:00
|
|
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) \
|
|
|
|
$(DESTDIR)$(includedir)/e2p
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
install:: all installdirs
|
ChangeLog, Makefile.in:
Remove libext2fs.info*, not just libext2fs.info*.gz. Add an
uninstall-doc-libs target.
ChangeLog, Makefile.in, compile_et.1, compile_et.sh.in:
Makefile.in: Fix bug where my_dir was set incorrectly. Install the
et_c.awk and et_h.awk files in $(datadir)/et (i.e., /usr/share/et)
directory. Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
compile_et.1: Change man page to reflect the fact that compile_et is
now a awk/sed script, not a yacc script.
compile_et.sh.in: Look in $(datadir)/et for et_c.awk and et_h.awk; if
not found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in, mk_cmds.sh.in:
Makefile.in: Install the ct_c.awk and ct_c.sed files in $(datadir)/ss
(i.e., /usr/share/ss) directory. Change to use new installation
directory variables convention. Fix uninstall rules to take
$(DESTDIR) into account.
mk_cmds.sh.in: Look in $(datadir)/ss for ct_c.awk and ct_c.sed; if not
found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in:
Makefile.in: Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
1998-04-01 06:18:45 +04:00
|
|
|
$(INSTALL_DATA) libe2p.a $(DESTDIR)$(libdir)/libe2p.a
|
|
|
|
$(CHMOD) 644 $(DESTDIR)$(libdir)/libe2p.a
|
|
|
|
-$(RANLIB) $(DESTDIR)$(libdir)/libe2p.a
|
|
|
|
$(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libe2p.a
|
2000-04-03 17:48:52 +04:00
|
|
|
set -e; for i in $(HFILES); do \
|
2000-02-11 07:48:03 +03:00
|
|
|
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/e2p/$$i; \
|
|
|
|
done
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
uninstall::
|
ChangeLog, Makefile.in:
Remove libext2fs.info*, not just libext2fs.info*.gz. Add an
uninstall-doc-libs target.
ChangeLog, Makefile.in, compile_et.1, compile_et.sh.in:
Makefile.in: Fix bug where my_dir was set incorrectly. Install the
et_c.awk and et_h.awk files in $(datadir)/et (i.e., /usr/share/et)
directory. Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
compile_et.1: Change man page to reflect the fact that compile_et is
now a awk/sed script, not a yacc script.
compile_et.sh.in: Look in $(datadir)/et for et_c.awk and et_h.awk; if
not found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in, mk_cmds.sh.in:
Makefile.in: Install the ct_c.awk and ct_c.sed files in $(datadir)/ss
(i.e., /usr/share/ss) directory. Change to use new installation
directory variables convention. Fix uninstall rules to take
$(DESTDIR) into account.
mk_cmds.sh.in: Look in $(datadir)/ss for ct_c.awk and ct_c.sed; if not
found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in:
Makefile.in: Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
1998-04-01 06:18:45 +04:00
|
|
|
$(RM) -f $(DESTDIR)$(libdir)/libe2p.a
|
2000-02-11 07:48:03 +03:00
|
|
|
$(RM) -rf $(DESTDIR)$(includedir)/e2p
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
clean::
|
|
|
|
$(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/*
|
|
|
|
$(RM) -f ../libe2p.a ../libe2p_p.a
|
|
|
|
mostlyclean:: clean
|
|
|
|
distclean:: clean
|
1999-11-19 21:42:30 +03:00
|
|
|
$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
# +++ Dependency line eater +++
|
|
|
|
#
|
|
|
|
# Makefile dependencies follow. This must be the last section in
|
|
|
|
# the Makefile.in file
|
|
|
|
#
|
2000-12-09 09:41:25 +03:00
|
|
|
feature.o: $(srcdir)/feature.c $(srcdir)/e2p.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2000-12-09 09:41:25 +03:00
|
|
|
fgetflags.o: $(srcdir)/fgetflags.c $(srcdir)/e2p.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2000-12-09 09:41:25 +03:00
|
|
|
fsetflags.o: $(srcdir)/fsetflags.c $(srcdir)/e2p.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2000-12-09 09:41:25 +03:00
|
|
|
fgetversion.o: $(srcdir)/fgetversion.c $(srcdir)/e2p.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2000-12-09 09:41:25 +03:00
|
|
|
fsetversion.o: $(srcdir)/fsetversion.c $(srcdir)/e2p.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2000-12-09 09:41:25 +03:00
|
|
|
getflags.o: $(srcdir)/getflags.c $(srcdir)/e2p.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2000-12-09 09:41:25 +03:00
|
|
|
getversion.o: $(srcdir)/getversion.c $(srcdir)/e2p.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2002-11-08 22:31:03 +03:00
|
|
|
hashstr.o: $(srcdir)/hashstr.c $(srcdir)/e2p.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2001-06-02 03:49:46 +04:00
|
|
|
iod.o: $(srcdir)/iod.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
|
|
|
|
$(top_builddir)/lib/ext2fs/ext2_types.h
|
|
|
|
ls.o: $(srcdir)/ls.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
|
|
|
|
$(top_builddir)/lib/ext2fs/ext2_types.h
|
2002-11-08 22:31:03 +03:00
|
|
|
mntopts.o: $(srcdir)/mntopts.c $(srcdir)/e2p.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2001-06-02 03:49:46 +04:00
|
|
|
pe.o: $(srcdir)/pe.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
|
|
|
|
$(top_builddir)/lib/ext2fs/ext2_types.h
|
|
|
|
pf.o: $(srcdir)/pf.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
|
|
|
|
$(top_builddir)/lib/ext2fs/ext2_types.h
|
|
|
|
ps.o: $(srcdir)/ps.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
|
|
|
|
$(top_builddir)/lib/ext2fs/ext2_types.h
|
2000-12-09 09:41:25 +03:00
|
|
|
setflags.o: $(srcdir)/setflags.c $(srcdir)/e2p.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
2000-12-09 09:41:25 +03:00
|
|
|
setversion.o: $(srcdir)/setversion.c $(srcdir)/e2p.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|
|
|
|
uuid.o: $(srcdir)/uuid.c $(top_builddir)/lib/ext2fs/ext2_types.h \
|
|
|
|
$(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h
|