1 # Makefile for e2fsprog's internal support
5 top_srcdir = @top_srcdir@
28 SRCS= $(srcdir)/argv_parse.c \
31 $(srcdir)/parse_qtype.c \
32 $(srcdir)/plausible.c \
34 $(srcdir)/profile_helpers.c \
37 $(srcdir)/quotaio_tree.c \
38 $(srcdir)/quotaio_v2.c \
47 COMPILE_ET= _ET_DIR_OVERRIDE=$(srcdir)/../et ../et/compile_et
51 $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@
52 $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
53 $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
54 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
62 prof_err.c prof_err.h: prof_err.et
63 $(E) " COMPILE_ET prof_err.et"
64 $(Q) $(COMPILE_ET) $(srcdir)/prof_err.et
66 test_profile: $(srcdir)/profile.c profile_helpers.o argv_parse.o \
67 prof_err.o profile.h $(DEPSTATIC_LIBCOM_ERR)
69 $(Q) $(CC) -o test_profile -DDEBUG_PROGRAM $(srcdir)/profile.c prof_err.o \
70 profile_helpers.o argv_parse.o $(STATIC_LIBCOM_ERR) \
73 test_cstring: $(srcdir)/cstring.c
75 $(Q) $(CC) -o test_cstring -DDEBUG_PROGRAM $(srcdir)/cstring.c \
79 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* \
80 ../libsupport.a ../libsupport_p.a $(SMANPAGES) \
81 prof_err.c prof_err.h test_profile test_cstring
83 #fullcheck check:: tst_uuid
84 # LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
88 $(RM) -f .depend Makefile \
89 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
92 # Hack to parallel makes recognize dependencies correctly.
94 ../../lib/libsupport.a: libsupport.a
95 ../../lib/libsupport.so: image
96 ../../lib/libsupport.dylib: image
100 # +++ Dependency line eater +++
102 # Makefile dependencies follow. This must be the last section in
103 # the Makefile.in file
105 argv_parse.o: $(srcdir)/argv_parse.c $(top_builddir)/lib/config.h \
106 $(top_builddir)/lib/dirpaths.h $(srcdir)/argv_parse.h
107 cstring.o: $(srcdir)/cstring.c $(top_builddir)/lib/config.h \
108 $(top_builddir)/lib/dirpaths.h $(srcdir)/cstring.h
109 mkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \
110 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
111 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
112 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
113 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
114 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
115 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h \
116 $(srcdir)/quotaio.h $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h \
117 $(srcdir)/quotaio_v2.h $(srcdir)/common.h $(srcdir)/dict.h
118 parse_qtype.o: $(srcdir)/parse_qtype.c $(top_builddir)/lib/config.h \
119 $(top_builddir)/lib/dirpaths.h $(srcdir)/quotaio.h \
120 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
121 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
122 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
123 $(top_builddir)/lib/ext2fs/ext2_err.h \
124 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
125 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h \
126 $(srcdir)/quotaio_tree.h
127 plausible.o: $(srcdir)/plausible.c $(top_builddir)/lib/config.h \
128 $(top_builddir)/lib/dirpaths.h $(srcdir)/plausible.h \
129 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
130 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
131 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
132 $(top_builddir)/lib/ext2fs/ext2_err.h \
133 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
134 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/nls-enable.h
135 profile.o: $(srcdir)/profile.c $(top_builddir)/lib/config.h \
136 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
137 $(srcdir)/profile.h prof_err.h
138 profile_helpers.o: $(srcdir)/profile_helpers.c $(top_builddir)/lib/config.h \
139 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
140 $(srcdir)/profile.h $(srcdir)/profile_helpers.h prof_err.h
141 prof_err.o: prof_err.c
142 quotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \
143 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
144 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio.h \
145 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
146 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
147 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
148 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
149 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h \
150 $(srcdir)/quotaio_tree.h
151 quotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \
152 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
153 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_tree.h \
154 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
155 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
156 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
157 $(top_builddir)/lib/ext2fs/ext2_err.h \
158 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
159 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h
160 quotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \
161 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
162 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_v2.h \
163 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
164 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
165 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
166 $(top_builddir)/lib/ext2fs/ext2_err.h \
167 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
168 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h \
169 $(srcdir)/quotaio_tree.h
170 dict.o: $(srcdir)/dict.c $(top_builddir)/lib/config.h \
171 $(top_builddir)/lib/dirpaths.h $(srcdir)/dict.h