Whamcloud - gitweb
e2fsck: print thread log properly
[tools/e2fsprogs.git] / lib / support / Makefile.in
1 # Makefile for e2fsprog's internal support
2 #
3
4 srcdir = @srcdir@
5 top_srcdir = @top_srcdir@
6 VPATH = @srcdir@
7 top_builddir = ../..
8 my_dir = lib/support
9 INSTALL = @INSTALL@
10 MKDIR_P = @MKDIR_P@
11
12 @MCONFIG@
13
14 all::
15
16 OBJS=           cstring.o \
17                 mkquota.o \
18                 plausible.o \
19                 profile.o \
20                 parse_qtype.o \
21                 profile_helpers.o \
22                 prof_err.o \
23                 quotaio.o \
24                 quotaio_v2.o \
25                 quotaio_tree.o \
26                 dict.o
27
28 SRCS=           $(srcdir)/argv_parse.c \
29                 $(srcdir)/cstring.c \
30                 $(srcdir)/mkquota.c \
31                 $(srcdir)/parse_qtype.c \
32                 $(srcdir)/plausible.c \
33                 $(srcdir)/profile.c \
34                 $(srcdir)/profile_helpers.c \
35                 prof_err.c \
36                 $(srcdir)/quotaio.c \
37                 $(srcdir)/quotaio_tree.c \
38                 $(srcdir)/quotaio_v2.c \
39                 $(srcdir)/dict.c
40
41 LIBRARY= libsupport
42 LIBDIR= support
43
44 @MAKEFILE_LIBRARY@
45 @MAKEFILE_PROFILE@
46
47 COMPILE_ET=     _ET_DIR_OVERRIDE=$(srcdir)/../et ../et/compile_et
48
49 .c.o:
50         $(E) "  CC $<"
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 $<
55
56 installdirs::
57
58 install:: all
59
60 uninstall::
61
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
65
66 test_profile: $(srcdir)/profile.c profile_helpers.o argv_parse.o \
67                 prof_err.o profile.h $(DEPSTATIC_LIBCOM_ERR)
68         $(E) "  LD $@"
69         $(Q) $(CC) -o test_profile -DDEBUG_PROGRAM $(srcdir)/profile.c prof_err.o \
70                 profile_helpers.o argv_parse.o $(STATIC_LIBCOM_ERR) \
71                 $(ALL_CFLAGS)
72
73 test_cstring: $(srcdir)/cstring.c
74         $(E) " CC $@"
75         $(Q) $(CC) -o test_cstring -DDEBUG_PROGRAM $(srcdir)/cstring.c \
76                 $(ALL_CFLAGS)
77
78 clean::
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
82
83 #fullcheck check:: tst_uuid
84 #       LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
85
86 mostlyclean:: clean
87 distclean:: clean
88         $(RM) -f .depend Makefile \
89                 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
90
91 #
92 # Hack to parallel makes recognize dependencies correctly.
93 #
94 ../../lib/libsupport.a: libsupport.a
95 ../../lib/libsupport.so: image
96 ../../lib/libsupport.dylib: image
97
98 $(OBJS):
99
100 # +++ Dependency line eater +++
101
102 # Makefile dependencies follow.  This must be the last section in
103 # the Makefile.in file
104 #
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