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@
|
|
|
|
|
2005-01-26 20:59:25 +03:00
|
|
|
all:: e2p.pc
|
1997-04-26 17:58:21 +04:00
|
|
|
|
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 \
|
2005-03-19 09:13:22 +03:00
|
|
|
parse_num.o pe.o pf.o ps.o setflags.o setversion.o uuid.o \
|
2006-08-30 11:08:13 +04:00
|
|
|
ostype.o percent.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 \
|
2005-01-05 11:01:06 +03:00
|
|
|
$(srcdir)/ls.c $(srcdir)/mntopts.c $(srcdir)/parse_num.c \
|
|
|
|
$(srcdir)/pe.c $(srcdir)/pf.c $(srcdir)/ps.c \
|
2005-03-19 09:13:22 +03:00
|
|
|
$(srcdir)/setflags.c $(srcdir)/setversion.c $(srcdir)/uuid.c \
|
2006-08-30 11:08:13 +04:00
|
|
|
$(srcdir)/ostype.c $(srcdir)/percent.o
|
2000-02-11 07:48:03 +03:00
|
|
|
HFILES= e2p.h
|
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
LIBRARY= libe2p
|
|
|
|
LIBDIR= e2p
|
|
|
|
|
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_ELF@
|
|
|
|
@MAKEFILE_BSDLIB@
|
|
|
|
@MAKEFILE_PROFILE@
|
|
|
|
@MAKEFILE_CHECKER@
|
|
|
|
|
|
|
|
.c.o:
|
2004-11-30 18:52:27 +03:00
|
|
|
@echo " CC $<"
|
|
|
|
@$(CC) $(ALL_CFLAGS) -c $< -o $@
|
|
|
|
@PROFILE_CMT@ @$(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
|
|
|
|
@CHECKER_CMT@ @$(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $<
|
|
|
|
@ELF_CMT@ @$(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
|
|
|
|
@BSDLIB_CMT@ @$(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
|
1997-04-26 17:58:21 +04:00
|
|
|
|
2005-01-26 20:59:25 +03:00
|
|
|
e2p.pc: $(srcdir)/e2p.pc.in $(top_builddir)/config.status
|
|
|
|
@echo " CONFIG.STATUS $@"
|
|
|
|
@cd $(top_builddir); CONFIG_FILES=lib/e2p/e2p.pc ./config.status
|
|
|
|
|
2005-03-19 09:13:22 +03:00
|
|
|
tst_ostype: $(srcdir)/ostype.c
|
|
|
|
@echo " LD $@"
|
2005-06-17 02:41:06 +04:00
|
|
|
@$(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_ostype \
|
|
|
|
$(srcdir)/ostype.c $(ALL_CFLAGS)
|
2005-03-19 09:13:22 +03:00
|
|
|
|
|
|
|
check:: tst_ostype
|
|
|
|
./tst_ostype
|
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
installdirs::
|
2004-12-15 19:28:55 +03:00
|
|
|
@echo " MKINSTALLDIRS $(libdir) $(includedir)/e2p"
|
|
|
|
@$(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
|
2005-01-26 20:59:25 +03:00
|
|
|
$(DESTDIR)$(includedir)/e2p $(DESTDIR)$(libdir)/pkgconfig
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
install:: all installdirs
|
2004-12-15 19:28:55 +03:00
|
|
|
@echo " INSTALL_DATA $(libdir)/libe2p.a"
|
|
|
|
@$(INSTALL_DATA) libe2p.a $(DESTDIR)$(libdir)/libe2p.a
|
|
|
|
@-$(RANLIB) $(DESTDIR)$(libdir)/libe2p.a
|
|
|
|
@$(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libe2p.a
|
|
|
|
@set -e; for i in $(HFILES); do \
|
|
|
|
echo " INSTALL_DATA $(includedir)/e2p/$$i"; \
|
2000-02-11 07:48:03 +03:00
|
|
|
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/e2p/$$i; \
|
|
|
|
done
|
2005-01-26 20:59:25 +03:00
|
|
|
@echo " INSTALL_DATA $(libdir)/pkgconfig/e2p.pc"
|
|
|
|
@$(INSTALL_DATA) e2p.pc $(DESTDIR)$(libdir)/pkgconfig/e2p.pc
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
uninstall::
|
2005-01-26 20:59:25 +03:00
|
|
|
$(RM) -f $(DESTDIR)$(libdir)/libe2p.a \
|
|
|
|
$(DESTDIR)$(libdir)/pkgconfig/e2p.pc
|
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/*
|
2005-03-19 09:13:22 +03:00
|
|
|
$(RM) -f ../libe2p.a ../libe2p_p.a tst_ostype
|
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
mostlyclean:: clean
|
|
|
|
distclean:: clean
|
2005-02-05 23:48:49 +03:00
|
|
|
$(RM) -f .depend Makefile e2p.pc \
|
|
|
|
$(srcdir)/TAGS $(srcdir)/Makefile.in.old
|
1997-04-26 17:58:21 +04:00
|
|
|
|
2005-12-11 06:23:01 +03:00
|
|
|
$(OBJS): subdirs
|
|
|
|
|
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
|
2005-05-06 17:37:58 +04:00
|
|
|
parse_num.o: $(srcdir)/parse_num.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
|
2005-05-06 17:37:58 +04:00
|
|
|
ostype.o: $(srcdir)/ostype.c $(srcdir)/e2p.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
|