1 # Makefile for e2fsprog's internal support
5 top_srcdir = @top_srcdir@
30 SRCS= $(srcdir)/argv_parse.c \
33 $(srcdir)/parse_qtype.c \
34 $(srcdir)/plausible.c \
35 $(srcdir)/print_fs_flags.c \
37 $(srcdir)/profile_helpers.c \
40 $(srcdir)/quotaio_tree.c \
41 $(srcdir)/quotaio_v2.c \
51 COMPILE_ET= _ET_DIR_OVERRIDE=$(srcdir)/../et ../et/compile_et
55 $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@
56 $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
57 $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
58 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
66 prof_err.c prof_err.h: prof_err.et
67 $(E) " COMPILE_ET prof_err.et"
68 $(Q) $(COMPILE_ET) $(srcdir)/prof_err.et
70 test_profile: $(srcdir)/profile.c profile_helpers.o argv_parse.o \
71 prof_err.o profile.h $(DEPSTATIC_LIBCOM_ERR)
73 $(Q) $(CC) -o test_profile -DDEBUG_PROGRAM $(srcdir)/profile.c prof_err.o \
74 profile_helpers.o argv_parse.o $(STATIC_LIBCOM_ERR) \
77 test_cstring: $(srcdir)/cstring.c
79 $(Q) $(CC) -o test_cstring -DDEBUG_PROGRAM $(srcdir)/cstring.c \
83 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* \
84 ../libsupport.a ../libsupport_p.a $(SMANPAGES) \
85 prof_err.c prof_err.h test_profile test_cstring
87 #fullcheck check:: tst_uuid
88 # LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
92 $(RM) -f .depend Makefile \
93 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
96 # Hack to parallel makes recognize dependencies correctly.
98 ../../lib/libsupport.a: libsupport.a
99 ../../lib/libsupport.so: image
100 ../../lib/libsupport.dylib: image
104 # +++ Dependency line eater +++
106 # Makefile dependencies follow. This must be the last section in
107 # the Makefile.in file
109 argv_parse.o: $(srcdir)/argv_parse.c $(top_builddir)/lib/config.h \
110 $(top_builddir)/lib/dirpaths.h $(srcdir)/argv_parse.h
111 cstring.o: $(srcdir)/cstring.c $(top_builddir)/lib/config.h \
112 $(top_builddir)/lib/dirpaths.h $(srcdir)/cstring.h
113 mkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \
114 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
115 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
116 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
117 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
118 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
119 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h \
120 $(srcdir)/quotaio.h $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h \
121 $(srcdir)/quotaio_v2.h $(srcdir)/common.h $(srcdir)/dict.h
122 parse_qtype.o: $(srcdir)/parse_qtype.c $(top_builddir)/lib/config.h \
123 $(top_builddir)/lib/dirpaths.h $(srcdir)/quotaio.h \
124 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
125 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
126 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
127 $(top_builddir)/lib/ext2fs/ext2_err.h \
128 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
129 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h \
130 $(srcdir)/quotaio_tree.h
131 plausible.o: $(srcdir)/plausible.c $(top_builddir)/lib/config.h \
132 $(top_builddir)/lib/dirpaths.h $(srcdir)/plausible.h \
133 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
134 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
135 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
136 $(top_builddir)/lib/ext2fs/ext2_err.h \
137 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
138 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/nls-enable.h
139 print_fs_flags.o: $(srcdir)/print_fs_flags.c $(top_builddir)/lib/config.h \
140 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
141 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
142 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
143 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
144 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
145 $(top_srcdir)/lib/ext2fs/bitops.h
146 profile.o: $(srcdir)/profile.c $(top_builddir)/lib/config.h \
147 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
148 $(srcdir)/profile.h prof_err.h
149 profile_helpers.o: $(srcdir)/profile_helpers.c $(top_builddir)/lib/config.h \
150 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
151 $(srcdir)/profile.h $(srcdir)/profile_helpers.h prof_err.h
152 prof_err.o: prof_err.c
153 quotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \
154 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
155 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio.h \
156 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.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/hashmap.h \
160 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h \
161 $(srcdir)/quotaio_tree.h
162 quotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \
163 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
164 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_tree.h \
165 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
166 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
167 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
168 $(top_builddir)/lib/ext2fs/ext2_err.h \
169 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
170 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h
171 quotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \
172 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
173 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_v2.h \
174 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
175 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
176 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
177 $(top_builddir)/lib/ext2fs/ext2_err.h \
178 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
179 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h \
180 $(srcdir)/quotaio_tree.h
181 dict.o: $(srcdir)/dict.c $(top_builddir)/lib/config.h \
182 $(top_builddir)/lib/dirpaths.h $(srcdir)/dict.h
183 devname.o: $(srcdir)/devname.c $(top_builddir)/lib/config.h \
184 $(top_builddir)/lib/dirpaths.h $(srcdir)/devname.h $(srcdir)/nls-enable.h