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