1 # Makefile for the QUOTA library
5 top_srcdir = @top_srcdir@
15 OBJS= mkquota.o quotaio.o quotaio_v2.o quotaio_tree.o dict.o
17 SRCS= $(srcdir)/mkquota.c \
19 $(srcdir)/quotaio_tree.c \
20 $(srcdir)/quotaio_v2.c \
21 $(srcdir)/../../e2fsck/dict.c
30 #ELF_INSTALL_DIR = $(root_libdir)
31 #ELF_OTHER_LIBS = -lext2fs
34 #BSDLIB_IMAGE = libquota
36 #BSDLIB_INSTALL_DIR = $(root_libdir)
46 $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@
47 $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
48 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
49 @CHECKER_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $<
50 #ELF_CMT# $(Q) $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
51 #BSDLIB_CMT# $(Q) $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
55 $(Q) $(CC) -c $(ALL_CFLAGS) $(top_srcdir)/e2fsck/dict.c -o $@
56 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/dict.o -c \
57 @PROFILE_CMT@ $(top_srcdir)/e2fsck/dict.c
58 @CHECKER_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c \
59 @CHECKER_CMT@ $(top_srcdir)/e2fsck/dict.c
60 #ELF_CMT# $(Q) $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c \
61 #ELF_CMT# $(top_srcdir)/e2fsck/dict.c
62 #BSDLIB_CMT# $(Q) $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c \
63 #BSDLIB_CMT# $(top_srcdir)/e2fsck/dict.c
72 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/*
73 $(RM) -f ../libquota.a ../libquota_p.a $(SMANPAGES)
76 # LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
80 $(RM) -f .depend Makefile \
81 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
84 # Hack to parallel makes recognize dependencies correctly.
86 ../../lib/libquota.a: libquota.a
87 ../../lib/libquota.so: image
88 ../../lib/libquota.dylib: image
92 # +++ Dependency line eater +++
94 # Makefile dependencies follow. This must be the last section in
95 # the Makefile.in file
97 mkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \
98 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
99 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
100 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
101 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
102 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
103 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/quotaio.h $(srcdir)/dqblk_v2.h \
104 $(srcdir)/quotaio_tree.h $(top_srcdir)/lib/../e2fsck/dict.h \
105 $(srcdir)/quotaio_v2.h $(srcdir)/common.h
106 quotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \
107 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
108 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio.h \
109 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
110 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
111 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
112 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
113 $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h \
114 $(top_srcdir)/lib/../e2fsck/dict.h
115 quotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \
116 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
117 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_tree.h \
118 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
119 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
120 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
121 $(top_builddir)/lib/ext2fs/ext2_err.h \
122 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
123 $(srcdir)/dqblk_v2.h $(top_srcdir)/lib/../e2fsck/dict.h
124 quotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \
125 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
126 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_v2.h \
127 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
128 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
129 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
130 $(top_builddir)/lib/ext2fs/ext2_err.h \
131 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
132 $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h \
133 $(top_srcdir)/lib/../e2fsck/dict.h
134 dict.o: $(srcdir)/../../e2fsck/dict.c $(top_builddir)/lib/config.h \
135 $(top_builddir)/lib/dirpaths.h $(srcdir)/../../e2fsck/dict.h