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 ljs.o mntopts.o \ 21 parse_num.o pe.o pf.o ps.o setflags.o setversion.o uuid.o \ 22 ostype.o percent.o crypto_mode.o fgetproject.o fsetproject.o \ 23 encoding.o 24 25SRCS= $(srcdir)/feature.c $(srcdir)/fgetflags.c \ 26 $(srcdir)/fsetflags.c $(srcdir)/fgetversion.c \ 27 $(srcdir)/fsetversion.c $(srcdir)/getflags.c \ 28 $(srcdir)/getversion.c $(srcdir)/hashstr.c $(srcdir)/iod.c \ 29 $(srcdir)/ls.c $(srcdir)/ljs.c $(srcdir)/mntopts.c $(srcdir)/parse_num.c \ 30 $(srcdir)/pe.c $(srcdir)/pf.c $(srcdir)/ps.c \ 31 $(srcdir)/setflags.c $(srcdir)/setversion.c $(srcdir)/uuid.c \ 32 $(srcdir)/ostype.c $(srcdir)/percent.c $(srcdir)/crypto_mode.c \ 33 $(srcdir)/fgetproject.c $(srcdir)/fsetproject.c $(srcdir)/encoding.c 34HFILES= e2p.h 35 36LIBRARY= libe2p 37LIBDIR= e2p 38 39ELF_VERSION = 2.3 40ELF_SO_VERSION = 2 41ELF_IMAGE = libe2p 42ELF_MYDIR = e2p 43ELF_INSTALL_DIR = $(root_libdir) 44ELF_OTHER_LIBS = 45 46BSDLIB_VERSION = 2.1 47BSDLIB_IMAGE = libe2p 48BSDLIB_MYDIR = e2p 49BSDLIB_INSTALL_DIR = $(root_libdir) 50 51@MAKEFILE_LIBRARY@ 52@MAKEFILE_ELF@ 53@MAKEFILE_BSDLIB@ 54@MAKEFILE_PROFILE@ 55 56.c.o: 57 $(E) " CC $<" 58 $(Q) $(CC) $(ALL_CFLAGS_STLIB) -c $< -o $@ 59 $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $< 60 $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $< 61@PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS_STLIB) -g -pg -o profiled/$*.o -c $< 62@ELF_CMT@ $(Q) $(CC) $(ALL_CFLAGS_SHLIB) -fPIC -shared -o elfshared/$*.o -c $< 63@BSDLIB_CMT@ $(Q) $(CC) $(ALL_CFLAGS_SHLIB) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $< 64 65e2p.pc: $(srcdir)/e2p.pc.in $(top_builddir)/config.status 66 $(E) " CONFIG.STATUS $@" 67 $(Q) cd $(top_builddir); CONFIG_FILES=lib/e2p/e2p.pc ./config.status 68 69tst_ostype: $(srcdir)/ostype.c 70 $(E) " LD $@" 71 $(Q) $(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_ostype \ 72 $(srcdir)/ostype.c $(ALL_CFLAGS) $(ALL_LDFLAGS) 73 74tst_feature: $(srcdir)/feature.c 75 $(E) " LD $@" 76 $(Q) $(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_feature \ 77 $(srcdir)/feature.c $(ALL_CFLAGS) $(ALL_LDFLAGS) 78 79fullcheck check:: tst_ostype tst_feature 80 ./tst_ostype 81 ./tst_feature 82 83installdirs:: 84 $(E) " MKDIR_P $(libdir) $(includedir)/e2p" 85 $(Q) $(MKDIR_P) $(DESTDIR)$(libdir) \ 86 $(DESTDIR)$(includedir)/e2p $(DESTDIR)$(pkgconfigdir) 87 88install:: all installdirs 89 $(E) " INSTALL_DATA $(libdir)/libe2p.a" 90 $(Q) $(INSTALL_DATA) libe2p.a $(DESTDIR)$(libdir)/libe2p.a 91 -$(Q) $(RANLIB) $(DESTDIR)$(libdir)/libe2p.a 92 $(Q) $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libe2p.a 93 $(Q) set -e; for i in $(HFILES); do \ 94 echo " INSTALL_DATA $(includedir)/e2p/$$i"; \ 95 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/e2p/$$i; \ 96 done 97 $(E) " INSTALL_DATA $(pkgconfigdir)/e2p.pc" 98 $(Q) $(INSTALL_DATA) e2p.pc $(DESTDIR)$(pkgconfigdir)/e2p.pc 99 100uninstall:: 101 $(RM) -f $(DESTDIR)$(libdir)/libe2p.a \ 102 $(DESTDIR)$(pkgconfigdir)/e2p.pc 103 $(RM) -rf $(DESTDIR)$(includedir)/e2p 104 105clean:: 106 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* 107 $(RM) -f ../libe2p.a ../libe2p_p.a tst_ostype tst_feature e2p.pc 108 109mostlyclean:: clean 110distclean:: clean 111 $(RM) -f .depend Makefile e2p.pc \ 112 $(srcdir)/TAGS $(srcdir)/Makefile.in.old 113 114$(OBJS): subdirs 115 116# +++ Dependency line eater +++ 117# 118# Makefile dependencies follow. This must be the last section in 119# the Makefile.in file 120# 121feature.o: $(srcdir)/feature.c $(top_builddir)/lib/config.h \ 122 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 123 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 124 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 125 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 126 $(top_builddir)/lib/ext2fs/ext2_err.h \ 127 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 128 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \ 129 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h 130fgetflags.o: $(srcdir)/fgetflags.c $(top_builddir)/lib/config.h \ 131 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 132 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 133fsetflags.o: $(srcdir)/fsetflags.c $(top_builddir)/lib/config.h \ 134 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 135 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 136fgetversion.o: $(srcdir)/fgetversion.c $(top_builddir)/lib/config.h \ 137 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 138 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 139fsetversion.o: $(srcdir)/fsetversion.c $(top_builddir)/lib/config.h \ 140 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 141 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 142getflags.o: $(srcdir)/getflags.c $(top_builddir)/lib/config.h \ 143 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 144 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 145getversion.o: $(srcdir)/getversion.c $(top_builddir)/lib/config.h \ 146 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 147 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 148hashstr.o: $(srcdir)/hashstr.c $(top_builddir)/lib/config.h \ 149 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 150 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 151iod.o: $(srcdir)/iod.c $(top_builddir)/lib/config.h \ 152 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 153 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 154ls.o: $(srcdir)/ls.c $(top_builddir)/lib/config.h \ 155 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 156 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 157 $(top_srcdir)/lib/support/quotaio.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ 158 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ 159 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ 160 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 161 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/support/dqblk_v2.h \ 162 $(top_srcdir)/lib/support/quotaio_tree.h 163ljs.o: $(srcdir)/ljs.c $(top_builddir)/lib/config.h \ 164 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 165 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ 166 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ 167 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ 168 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 169 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/e2p.h \ 170 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \ 171 $(top_srcdir)/lib/ext2fs/kernel-list.h 172mntopts.o: $(srcdir)/mntopts.c $(top_builddir)/lib/config.h \ 173 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 174 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 175parse_num.o: $(srcdir)/parse_num.c $(top_builddir)/lib/config.h \ 176 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 177 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 178pe.o: $(srcdir)/pe.c $(top_builddir)/lib/config.h \ 179 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 180 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 181pf.o: $(srcdir)/pf.c $(top_builddir)/lib/config.h \ 182 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 183 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 184ps.o: $(srcdir)/ps.c $(top_builddir)/lib/config.h \ 185 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 186 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 187setflags.o: $(srcdir)/setflags.c $(top_builddir)/lib/config.h \ 188 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 189 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 190setversion.o: $(srcdir)/setversion.c $(top_builddir)/lib/config.h \ 191 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 192 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 193uuid.o: $(srcdir)/uuid.c $(top_builddir)/lib/config.h \ 194 $(top_builddir)/lib/dirpaths.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 195 $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h 196ostype.o: $(srcdir)/ostype.c $(top_builddir)/lib/config.h \ 197 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 198 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 199percent.o: $(srcdir)/percent.c $(top_builddir)/lib/config.h \ 200 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 201 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 202crypto_mode.o: $(srcdir)/crypto_mode.c $(top_builddir)/lib/config.h \ 203 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 204 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 205fgetproject.o: $(srcdir)/fgetproject.c $(top_builddir)/lib/config.h \ 206 $(top_builddir)/lib/dirpaths.h $(srcdir)/project.h \ 207 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 208 $(srcdir)/e2p.h 209fsetproject.o: $(srcdir)/fsetproject.c $(top_builddir)/lib/config.h \ 210 $(top_builddir)/lib/dirpaths.h $(srcdir)/project.h \ 211 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 212 $(srcdir)/e2p.h 213encoding.o: $(srcdir)/encoding.c $(top_builddir)/lib/config.h \ 214 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \ 215 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h 216