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 = -lext2fs
37 #BSDLIB_IMAGE = libquota
39 #BSDLIB_INSTALL_DIR = $(root_libdir)
49 $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@
50 $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
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 $<
56 all:: $(SMANPAGES) quota.pc
58 quota.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
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
75 $(E) " MKINSTALLDIRS $(libdir) $(includedir)/quota $(man3dir)"
76 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
77 $(DESTDIR)$(includedir)/quota $(DESTDIR)$(man3dir) \
78 $(DESTDIR)$(libdir)/pkgconfig
80 install:: 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; \
92 $(E) " INSTALL_DATA $(libdir)/pkgconfig/quota.pc"
93 $(Q) $(INSTALL_DATA) quota.pc $(DESTDIR)$(libdir)/pkgconfig/quota.pc
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; \
103 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/*
104 $(RM) -f ../libquota.a ../libquota_p.a $(SMANPAGES)
107 # LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
111 $(RM) -f .depend Makefile quota.pc \
112 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
115 # Hack to parallel makes recognize dependencies correctly.
117 ../../lib/libquota.a: libquota.a
118 ../../lib/libquota.so: image
119 ../../lib/libquota.dylib: image
123 # +++ Dependency line eater +++
125 # Makefile dependencies follow. This must be the last section in
126 # the Makefile.in file
128 mkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \
129 $(top_builddir)/lib/dirpaths.h $(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)/quotaio.h $(srcdir)/dqblk_v2.h \
135 $(srcdir)/quotaio_tree.h $(srcdir)/quotaio_v2.h $(srcdir)/mkquota.h \
136 $(top_srcdir)/lib/../e2fsck/dict.h $(srcdir)/common.h
137 quotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \
138 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h $(srcdir)/quotaio.h \
139 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
140 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
141 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
142 $(top_builddir)/lib/ext2fs/ext2_err.h \
143 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
144 $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h
145 quotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \
146 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h $(srcdir)/quotaio_tree.h \
147 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
148 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
149 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
150 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
151 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
153 quotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \
154 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h $(srcdir)/quotaio_v2.h \
155 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
156 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
157 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
158 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
159 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
160 $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h
161 dict.o: $(srcdir)/../../e2fsck/dict.c $(top_builddir)/lib/config.h \
162 $(top_builddir)/lib/dirpaths.h $(srcdir)/../../e2fsck/dict.h