Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 1 | # Makefile for the QUOTA library |
| 2 | # |
| 3 | |
| 4 | srcdir = @srcdir@ |
| 5 | top_srcdir = @top_srcdir@ |
| 6 | VPATH = @srcdir@ |
| 7 | top_builddir = ../.. |
| 8 | my_dir = lib/quota |
| 9 | INSTALL = @INSTALL@ |
| 10 | |
| 11 | @MCONFIG@ |
| 12 | |
| 13 | all:: |
| 14 | |
Aditya Kali | a86d55d | 2011-11-14 10:55:54 -0500 | [diff] [blame] | 15 | OBJS= mkquota.o quotaio.o quotaio_v2.o quotaio_tree.o dict.o |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 16 | |
Aditya Kali | a86d55d | 2011-11-14 10:55:54 -0500 | [diff] [blame] | 17 | SRCS= $(srcdir)/mkquota.c \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 18 | $(srcdir)/quotaio.c \ |
| 19 | $(srcdir)/quotaio_tree.c \ |
| 20 | $(srcdir)/quotaio_v2.c \ |
| 21 | $(srcdir)/../../e2fsck/dict.c |
| 22 | |
| 23 | LIBRARY= libquota |
| 24 | LIBDIR= quota |
| 25 | |
Theodore Ts'o | 8f9d708 | 2011-09-19 13:39:38 -0400 | [diff] [blame] | 26 | #ELF_VERSION = 1.0 |
| 27 | #ELF_SO_VERSION = 1 |
| 28 | #ELF_IMAGE = libquota |
| 29 | #ELF_MYDIR = quota |
| 30 | #ELF_INSTALL_DIR = $(root_libdir) |
Theodore Ts'o | d5aa6a8 | 2012-08-04 16:56:55 -0400 | [diff] [blame] | 31 | #ELF_OTHER_LIBS = -lext2fs |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 32 | |
Theodore Ts'o | 8f9d708 | 2011-09-19 13:39:38 -0400 | [diff] [blame] | 33 | #BSDLIB_VERSION = 1.0 |
| 34 | #BSDLIB_IMAGE = libquota |
| 35 | #BSDLIB_MYDIR = quota |
| 36 | #BSDLIB_INSTALL_DIR = $(root_libdir) |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 37 | |
| 38 | @MAKEFILE_LIBRARY@ |
Theodore Ts'o | 8f9d708 | 2011-09-19 13:39:38 -0400 | [diff] [blame] | 39 | #MAKEFILE_ELF# |
| 40 | #MAKEFILE_BSDLIB# |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 41 | @MAKEFILE_PROFILE@ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 42 | |
| 43 | .c.o: |
| 44 | $(E) " CC $<" |
| 45 | $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@ |
Darrick J. Wong | 832cb61 | 2013-10-11 23:02:12 -0400 | [diff] [blame] | 46 | $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $< |
Darrick J. Wong | a46300f | 2014-05-11 18:32:07 -0400 | [diff] [blame] | 47 | $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $< |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 48 | @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< |
Theodore Ts'o | 8f9d708 | 2011-09-19 13:39:38 -0400 | [diff] [blame] | 49 | #ELF_CMT# $(Q) $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $< |
| 50 | #BSDLIB_CMT# $(Q) $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $< |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 51 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 52 | dict.o: |
| 53 | $(E) " CC $<" |
| 54 | $(Q) $(CC) -c $(ALL_CFLAGS) $(top_srcdir)/e2fsck/dict.c -o $@ |
| 55 | @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/dict.o -c \ |
| 56 | @PROFILE_CMT@ $(top_srcdir)/e2fsck/dict.c |
Theodore Ts'o | 8f9d708 | 2011-09-19 13:39:38 -0400 | [diff] [blame] | 57 | #ELF_CMT# $(Q) $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c \ |
| 58 | #ELF_CMT# $(top_srcdir)/e2fsck/dict.c |
| 59 | #BSDLIB_CMT# $(Q) $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c \ |
| 60 | #BSDLIB_CMT# $(top_srcdir)/e2fsck/dict.c |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 61 | |
| 62 | installdirs:: |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 63 | |
Theodore Ts'o | d37178b | 2014-05-10 18:55:20 -0400 | [diff] [blame] | 64 | install:: all |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 65 | |
| 66 | uninstall:: |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 67 | |
| 68 | clean:: |
Eric Sandeen | 2f8d025 | 2014-04-17 17:05:38 -0500 | [diff] [blame] | 69 | $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 70 | $(RM) -f ../libquota.a ../libquota_p.a $(SMANPAGES) |
| 71 | |
| 72 | #check:: tst_uuid |
| 73 | # LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid |
| 74 | |
| 75 | mostlyclean:: clean |
| 76 | distclean:: clean |
Theodore Ts'o | d37178b | 2014-05-10 18:55:20 -0400 | [diff] [blame] | 77 | $(RM) -f .depend Makefile \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 78 | $(srcdir)/TAGS $(srcdir)/Makefile.in.old |
| 79 | |
| 80 | # |
| 81 | # Hack to parallel makes recognize dependencies correctly. |
| 82 | # |
| 83 | ../../lib/libquota.a: libquota.a |
| 84 | ../../lib/libquota.so: image |
| 85 | ../../lib/libquota.dylib: image |
| 86 | |
| 87 | $(OBJS): |
| 88 | |
| 89 | # +++ Dependency line eater +++ |
| 90 | # |
| 91 | # Makefile dependencies follow. This must be the last section in |
| 92 | # the Makefile.in file |
| 93 | # |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 94 | mkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \ |
| 95 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 96 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
| 97 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ |
| 98 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| 99 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
Jan Kara | 2ae58b6 | 2012-06-04 12:51:55 -0400 | [diff] [blame] | 100 | $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/quotaio.h $(srcdir)/dqblk_v2.h \ |
Theodore Ts'o | d37178b | 2014-05-10 18:55:20 -0400 | [diff] [blame] | 101 | $(srcdir)/quotaio_tree.h $(top_srcdir)/lib/../e2fsck/dict.h \ |
| 102 | $(srcdir)/quotaio_v2.h $(srcdir)/common.h |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 103 | quotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \ |
Theodore Ts'o | c714d02 | 2014-01-30 18:48:23 -0500 | [diff] [blame] | 104 | $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \ |
| 105 | $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio.h \ |
Theodore Ts'o | d37178b | 2014-05-10 18:55:20 -0400 | [diff] [blame] | 106 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
Theodore Ts'o | c714d02 | 2014-01-30 18:48:23 -0500 | [diff] [blame] | 107 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ |
| 108 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| 109 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
Theodore Ts'o | d37178b | 2014-05-10 18:55:20 -0400 | [diff] [blame] | 110 | $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h \ |
| 111 | $(top_srcdir)/lib/../e2fsck/dict.h |
Theodore Ts'o | c714d02 | 2014-01-30 18:48:23 -0500 | [diff] [blame] | 112 | quotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \ |
| 113 | $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \ |
| 114 | $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_tree.h \ |
Theodore Ts'o | d37178b | 2014-05-10 18:55:20 -0400 | [diff] [blame] | 115 | $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
| 116 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 117 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ |
| 118 | $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| 119 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
Theodore Ts'o | d37178b | 2014-05-10 18:55:20 -0400 | [diff] [blame] | 120 | $(srcdir)/dqblk_v2.h $(top_srcdir)/lib/../e2fsck/dict.h |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 121 | quotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \ |
Theodore Ts'o | c714d02 | 2014-01-30 18:48:23 -0500 | [diff] [blame] | 122 | $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \ |
| 123 | $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_v2.h \ |
Theodore Ts'o | d37178b | 2014-05-10 18:55:20 -0400 | [diff] [blame] | 124 | $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
| 125 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ |
Theodore Ts'o | c714d02 | 2014-01-30 18:48:23 -0500 | [diff] [blame] | 126 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ |
| 127 | $(top_builddir)/lib/ext2fs/ext2_err.h \ |
Jan Kara | 2ae58b6 | 2012-06-04 12:51:55 -0400 | [diff] [blame] | 128 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
Theodore Ts'o | d37178b | 2014-05-10 18:55:20 -0400 | [diff] [blame] | 129 | $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h \ |
| 130 | $(top_srcdir)/lib/../e2fsck/dict.h |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 131 | dict.o: $(srcdir)/../../e2fsck/dict.c $(top_builddir)/lib/config.h \ |
| 132 | $(top_builddir)/lib/dirpaths.h $(srcdir)/../../e2fsck/dict.h |