1 # Makefile for the QUOTA library
5 top_srcdir = @top_srcdir@
18 OBJS= mkquota.o quotaio.o quotaio_v2.o quotaio_tree.o dict.o
20 SRCS= $(srcdir)/mkquota.c \
22 $(srcdir)/quotaio_tree.c \
23 $(srcdir)/quotaio_v2.c \
24 $(srcdir)/../../e2fsck/dict.c
33 #ELF_INSTALL_DIR = $(root_libdir)
34 #ELF_OTHER_LIBS = -L../.. -lext2fs
37 #BSDLIB_IMAGE = libquota
39 #BSDLIB_INSTALL_DIR = $(root_libdir)
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 $<
55 all:: $(SMANPAGES) quota.pc
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
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
74 $(E) " MKINSTALLDIRS $(libdir) $(includedir)/quota $(man3dir)"
75 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
76 $(DESTDIR)$(includedir)/quota $(DESTDIR)$(man3dir) \
77 $(DESTDIR)$(libdir)/pkgconfig
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; \
91 $(E) " INSTALL_DATA $(libdir)/pkgconfig/quota.pc"
92 $(Q) $(INSTALL_DATA) quota.pc $(DESTDIR)$(libdir)/pkgconfig/quota.pc
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; \
102 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/*
103 $(RM) -f ../libquota.a ../libquota_p.a $(SMANPAGES)
106 # LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
110 $(RM) -f .depend Makefile quota.pc \
111 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
114 # Hack to parallel makes recognize dependencies correctly.
116 ../../lib/libquota.a: libquota.a
117 ../../lib/libquota.so: image
118 ../../lib/libquota.dylib: image
122 # +++ Dependency line eater +++
124 # Makefile dependencies follow. This must be the last section in
125 # the Makefile.in file
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 \
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