Whamcloud - gitweb
Merge branch 'maint' into next
[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                 print_fs_flags.o \
22                 profile_helpers.o \
23                 prof_err.o \
24                 quotaio.o \
25                 quotaio_v2.o \
26                 quotaio_tree.o \
27                 dict.o \
28                 devname.o
29
30 SRCS=           $(srcdir)/argv_parse.c \
31                 $(srcdir)/cstring.c \
32                 $(srcdir)/mkquota.c \
33                 $(srcdir)/parse_qtype.c \
34                 $(srcdir)/plausible.c \
35                 $(srcdir)/print_fs_flags.c \
36                 $(srcdir)/profile.c \
37                 $(srcdir)/profile_helpers.c \
38                 prof_err.c \
39                 $(srcdir)/quotaio.c \
40                 $(srcdir)/quotaio_tree.c \
41                 $(srcdir)/quotaio_v2.c \
42                 $(srcdir)/dict.c \
43                 $(srcdir)/devname.c
44
45 LIBRARY= libsupport
46 LIBDIR= support
47
48 @MAKEFILE_LIBRARY@
49 @MAKEFILE_PROFILE@
50
51 COMPILE_ET=     _ET_DIR_OVERRIDE=$(srcdir)/../et ../et/compile_et
52
53 .c.o:
54         $(E) "  CC $<"
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 $<
59
60 installdirs::
61
62 install:: all
63
64 uninstall::
65
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
69
70 test_profile: $(srcdir)/profile.c profile_helpers.o argv_parse.o \
71                 prof_err.o profile.h $(DEPSTATIC_LIBCOM_ERR)
72         $(E) "  LD $@"
73         $(Q) $(CC) -o test_profile -DDEBUG_PROGRAM $(srcdir)/profile.c prof_err.o \
74                 profile_helpers.o argv_parse.o $(STATIC_LIBCOM_ERR) \
75                 $(ALL_CFLAGS)
76
77 test_cstring: $(srcdir)/cstring.c
78         $(E) " CC $@"
79         $(Q) $(CC) -o test_cstring -DDEBUG_PROGRAM $(srcdir)/cstring.c \
80                 $(ALL_CFLAGS)
81
82 clean::
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
86
87 #fullcheck check:: tst_uuid
88 #       LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
89
90 mostlyclean:: clean
91 distclean:: clean
92         $(RM) -f .depend Makefile \
93                 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
94
95 #
96 # Hack to parallel makes recognize dependencies correctly.
97 #
98 ../../lib/libsupport.a: libsupport.a
99 ../../lib/libsupport.so: image
100 ../../lib/libsupport.dylib: image
101
102 $(OBJS):
103
104 # +++ Dependency line eater +++
105
106 # Makefile dependencies follow.  This must be the last section in
107 # the Makefile.in file
108 #
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