1# Makefile for the second extended file system utility functions 2# 3# Copyright (C) 1993 Remy Card (card@masi.ibp.fr) 4# 5# This file can be redistributed under the terms of the GNU General 6# Public License 7 8srcdir = @srcdir@ 9top_srcdir = @top_srcdir@ 10VPATH = @srcdir@ 11top_builddir = ../.. 12my_dir = lib/e2p 13INSTALL = @INSTALL@ 14 15@MCONFIG@ 16 17all:: e2p.pc 18 19OBJS= feature.o fgetflags.o fsetflags.o fgetversion.o fsetversion.o \ 20 getflags.o getversion.o hashstr.o iod.o ls.o mntopts.o \ 21 parse_num.o pe.o pf.o ps.o setflags.o setversion.o uuid.o \ 22 ostype.o percent.o 23 24SRCS= $(srcdir)/feature.c $(srcdir)/fgetflags.c \ 25 $(srcdir)/fsetflags.c $(srcdir)/fgetversion.c \ 26 $(srcdir)/fsetversion.c $(srcdir)/getflags.c \ 27 $(srcdir)/getversion.c $(srcdir)/hashstr.c $(srcdir)/iod.c \ 28 $(srcdir)/ls.c $(srcdir)/mntopts.c $(srcdir)/parse_num.c \ 29 $(srcdir)/pe.c $(srcdir)/pf.c $(srcdir)/ps.c \ 30 $(srcdir)/setflags.c $(srcdir)/setversion.c $(srcdir)/uuid.c \ 31 $(srcdir)/ostype.c $(srcdir)/percent.o 32HFILES= e2p.h 33 34LIBRARY= libe2p 35LIBDIR= e2p 36 37ELF_VERSION = 2.3 38ELF_SO_VERSION = 2 39ELF_IMAGE = libe2p 40ELF_MYDIR = e2p 41ELF_INSTALL_DIR = $(root_libdir) 42ELF_OTHER_LIBS = 43 44BSDLIB_VERSION = 2.1 45BSDLIB_IMAGE = libe2p 46BSDLIB_MYDIR = e2p 47BSDLIB_INSTALL_DIR = $(root_libdir) 48 49@MAKEFILE_LIBRARY@ 50@MAKEFILE_ELF@ 51@MAKEFILE_BSDLIB@ 52@MAKEFILE_PROFILE@ 53@MAKEFILE_CHECKER@ 54 55.c.o: 56 @echo " CC $<" 57 @$(CC) $(ALL_CFLAGS) -c $< -o $@ 58@PROFILE_CMT@ @$(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< 59@CHECKER_CMT@ @$(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $< 60@ELF_CMT@ @$(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $< 61@BSDLIB_CMT@ @$(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $< 62 63e2p.pc: $(srcdir)/e2p.pc.in $(top_builddir)/config.status 64 @echo " CONFIG.STATUS $@" 65 @cd $(top_builddir); CONFIG_FILES=lib/e2p/e2p.pc ./config.status 66 67tst_ostype: $(srcdir)/ostype.c 68 @echo " LD $@" 69 @$(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_ostype \ 70 $(srcdir)/ostype.c $(ALL_CFLAGS) 71 72check:: tst_ostype 73 ./tst_ostype 74 75installdirs:: 76 @echo " MKINSTALLDIRS $(libdir) $(includedir)/e2p" 77 @$(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ 78 $(DESTDIR)$(includedir)/e2p $(DESTDIR)$(libdir)/pkgconfig 79 80install:: all installdirs 81 @echo " INSTALL_DATA $(libdir)/libe2p.a" 82 @$(INSTALL_DATA) libe2p.a $(DESTDIR)$(libdir)/libe2p.a 83 @-$(RANLIB) $(DESTDIR)$(libdir)/libe2p.a 84 @$(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libe2p.a 85 @set -e; for i in $(HFILES); do \ 86 echo " INSTALL_DATA $(includedir)/e2p/$$i"; \ 87 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/e2p/$$i; \ 88 done 89 @echo " INSTALL_DATA $(libdir)/pkgconfig/e2p.pc" 90 @$(INSTALL_DATA) e2p.pc $(DESTDIR)$(libdir)/pkgconfig/e2p.pc 91 92uninstall:: 93 $(RM) -f $(DESTDIR)$(libdir)/libe2p.a \ 94 $(DESTDIR)$(libdir)/pkgconfig/e2p.pc 95 $(RM) -rf $(DESTDIR)$(includedir)/e2p 96 97clean:: 98 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/* 99 $(RM) -f ../libe2p.a ../libe2p_p.a tst_ostype 100 101mostlyclean:: clean 102distclean:: clean 103 $(RM) -f .depend Makefile e2p.pc \ 104 $(srcdir)/TAGS $(srcdir)/Makefile.in.old 105 106$(OBJS): subdirs 107 108# +++ Dependency line eater +++ 109# 110# Makefile dependencies follow. This must be the last section in 111# the Makefile.in file 112# 113feature.o: $(srcdir)/feature.c $(srcdir)/e2p.h \ 114 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 115fgetflags.o: $(srcdir)/fgetflags.c $(srcdir)/e2p.h \ 116 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 117fsetflags.o: $(srcdir)/fsetflags.c $(srcdir)/e2p.h \ 118 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 119fgetversion.o: $(srcdir)/fgetversion.c $(srcdir)/e2p.h \ 120 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 121fsetversion.o: $(srcdir)/fsetversion.c $(srcdir)/e2p.h \ 122 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 123getflags.o: $(srcdir)/getflags.c $(srcdir)/e2p.h \ 124 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 125getversion.o: $(srcdir)/getversion.c $(srcdir)/e2p.h \ 126 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 127hashstr.o: $(srcdir)/hashstr.c $(srcdir)/e2p.h \ 128 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 129iod.o: $(srcdir)/iod.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 130 $(top_builddir)/lib/ext2fs/ext2_types.h 131ls.o: $(srcdir)/ls.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 132 $(top_builddir)/lib/ext2fs/ext2_types.h 133mntopts.o: $(srcdir)/mntopts.c $(srcdir)/e2p.h \ 134 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 135parse_num.o: $(srcdir)/parse_num.c $(srcdir)/e2p.h \ 136 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 137pe.o: $(srcdir)/pe.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 138 $(top_builddir)/lib/ext2fs/ext2_types.h 139pf.o: $(srcdir)/pf.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 140 $(top_builddir)/lib/ext2fs/ext2_types.h 141ps.o: $(srcdir)/ps.c $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 142 $(top_builddir)/lib/ext2fs/ext2_types.h 143setflags.o: $(srcdir)/setflags.c $(srcdir)/e2p.h \ 144 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 145setversion.o: $(srcdir)/setversion.c $(srcdir)/e2p.h \ 146 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 147uuid.o: $(srcdir)/uuid.c $(top_builddir)/lib/ext2fs/ext2_types.h \ 148 $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h 149ostype.o: $(srcdir)/ostype.c $(srcdir)/e2p.h \ 150 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 151