Makefile.in revision 449c87a49cdc59271eb24ad3ecd6e7857b99a160
1# Makefile for the QUOTA library 2# 3 4srcdir = @srcdir@ 5top_srcdir = @top_srcdir@ 6VPATH = @srcdir@ 7top_builddir = ../.. 8my_dir = lib/quota 9INSTALL = @INSTALL@ 10 11@MCONFIG@ 12 13all:: 14 15SMANPAGES= 16 17 18OBJS= common.o mkquota.o quotaio.o quotaio_v2.o quotaio_tree.o dict.o 19 20SRCS= $(srcdir)/common.c \ 21 $(srcdir)/mkquota.c \ 22 $(srcdir)/quotaio.c \ 23 $(srcdir)/quotaio_tree.c \ 24 $(srcdir)/quotaio_v2.c \ 25 $(srcdir)/../../e2fsck/dict.c 26 27LIBRARY= libquota 28LIBDIR= quota 29 30ELF_VERSION = 1.0 31ELF_SO_VERSION = 1 32ELF_IMAGE = libquota 33ELF_MYDIR = quota 34ELF_INSTALL_DIR = $(root_libdir) 35ELF_OTHER_LIBS = 36 37BSDLIB_VERSION = 1.0 38BSDLIB_IMAGE = libquota 39BSDLIB_MYDIR = quota 40BSDLIB_INSTALL_DIR = $(root_libdir) 41 42@MAKEFILE_LIBRARY@ 43@MAKEFILE_ELF@ 44@MAKEFILE_BSDLIB@ 45@MAKEFILE_PROFILE@ 46@MAKEFILE_CHECKER@ 47 48.c.o: 49 $(E) " CC $<" 50 $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@ 51@PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< 52@CHECKER_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $< 53@ELF_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $< 54@BSDLIB_CMT@ $(Q) $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $< 55 56all:: $(SMANPAGES) quota.pc 57 58quota.pc: $(srcdir)/quota.pc.in $(top_builddir)/config.status 59 $(E) " CONFIG.STATUS $@" 60 $(Q) cd $(top_builddir); CONFIG_FILES=lib/quota/quota.pc ./config.status 61 62dict.o: 63 $(E) " CC $<" 64 $(Q) $(CC) -c $(ALL_CFLAGS) $(top_srcdir)/e2fsck/dict.c -o $@ 65@PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/dict.o -c \ 66@PROFILE_CMT@ $(top_srcdir)/e2fsck/dict.c 67@CHECKER_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c \ 68@CHECKER_CMT@ $(top_srcdir)/e2fsck/dict.c 69@ELF_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c \ 70@ELF_CMT@ $(top_srcdir)/e2fsck/dict.c 71@BSDLIB_CMT@ $(Q) $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c \ 72@BSDLIB_CMT@ $(top_srcdir)/e2fsck/dict.c 73 74installdirs:: 75 $(E) " MKINSTALLDIRS $(libdir) $(includedir)/quota $(man3dir)" 76 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ 77 $(DESTDIR)$(includedir)/quota $(DESTDIR)$(man3dir) \ 78 $(DESTDIR)$(libdir)/pkgconfig 79 80install:: all installdirs 81 $(E) " INSTALL_DATA $(libdir)/libquota.a" 82 $(Q) $(INSTALL_DATA) libquota.a $(DESTDIR)$(libdir)/libquota.a 83 -$(Q) $(RANLIB) $(DESTDIR)$(libdir)/libquota.a 84 $(Q) $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libquota.a 85 $(E) " INSTALL_DATA $(includedir)/quota/mkquota.h" 86 $(Q) $(INSTALL_DATA) $(srcdir)/mkquota.h $(DESTDIR)$(includedir)/quota/mkquota.h 87 $(Q) for i in $(SMANPAGES); do \ 88 $(RM) -f $(DESTDIR)$(man3dir)/$$i.gz; \ 89 echo " INSTALL_DATA $(man3dir)/$$i"; \ 90 $(INSTALL_DATA) $$i $(DESTDIR)$(man3dir)/$$i; \ 91 done 92 $(E) " INSTALL_DATA $(libdir)/pkgconfig/quota.pc" 93 $(Q) $(INSTALL_DATA) quota.pc $(DESTDIR)$(libdir)/pkgconfig/quota.pc 94 95uninstall:: 96 $(RM) -f $(DESTDIR)$(libdir)/libquota.a \ 97 $(DESTDIR)$(libdir)/pkgconfig/quota.pc 98 for i in $(SMANPAGES); do \ 99 $(RM) -f $(DESTDIR)$(man3dir)/$$i; \ 100 done 101 102clean:: 103 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/* 104 $(RM) -f ../libquota.a ../libquota_p.a $(SMANPAGES) 105 106#check:: tst_uuid 107# LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid 108 109mostlyclean:: clean 110distclean:: clean 111 $(RM) -f .depend Makefile quota.pc \ 112 $(srcdir)/TAGS $(srcdir)/Makefile.in.old 113 114# 115# Hack to parallel makes recognize dependencies correctly. 116# 117../../lib/libquota.a: libquota.a 118../../lib/libquota.so: image 119../../lib/libquota.dylib: image 120 121$(OBJS): 122 123# +++ Dependency line eater +++ 124# 125# Makefile dependencies follow. This must be the last section in 126# the Makefile.in file 127# 128common.o: $(srcdir)/common.c $(srcdir)/common.h 129mkquota.o: $(srcdir)/mkquota.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 130 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ 131 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ 132 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ 133 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ 134 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/quota.h $(srcdir)/quotaio.h \ 135 $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h $(srcdir)/quotaio_v2.h \ 136 $(srcdir)/mkquota.h $(top_srcdir)/lib/../e2fsck/dict.h $(srcdir)/common.h 137quotaio.o: $(srcdir)/quotaio.c $(srcdir)/common.h $(srcdir)/quotaio.h \ 138 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 139 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 140 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 141 $(top_builddir)/lib/ext2fs/ext2_err.h \ 142 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ 143 $(srcdir)/quota.h $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h 144quotaio_tree.o: $(srcdir)/quotaio_tree.c $(srcdir)/common.h \ 145 $(srcdir)/quotaio_tree.h $(srcdir)/quota.h $(srcdir)/quotaio.h \ 146 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 147 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 148 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 149 $(top_builddir)/lib/ext2fs/ext2_err.h \ 150 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ 151 $(srcdir)/dqblk_v2.h 152quotaio_v2.o: $(srcdir)/quotaio_v2.c $(srcdir)/common.h \ 153 $(srcdir)/quotaio_v2.h $(srcdir)/quota.h $(srcdir)/dqblk_v2.h \ 154 $(srcdir)/quotaio_tree.h $(srcdir)/quotaio.h \ 155 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 156 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 157 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 158 $(top_builddir)/lib/ext2fs/ext2_err.h \ 159 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h 160dict.o: $(srcdir)/../../e2fsck/dict.c $(srcdir)/../../e2fsck/dict.h 161