]>
Commit | Line | Data |
---|---|---|
f34af41b | 1 | # Makefile for e2fsprog's internal support |
f239fefc AK |
2 | # |
3 | ||
4 | srcdir = @srcdir@ | |
5 | top_srcdir = @top_srcdir@ | |
6 | VPATH = @srcdir@ | |
7 | top_builddir = ../.. | |
f34af41b | 8 | my_dir = lib/support |
f239fefc AK |
9 | INSTALL = @INSTALL@ |
10 | ||
11 | @MCONFIG@ | |
12 | ||
13 | all:: | |
14 | ||
4d5b21be TT |
15 | OBJS= cstring.o \ |
16 | mkquota.o \ | |
99ceb8ec | 17 | plausible.o \ |
1dc16b0b | 18 | profile.o \ |
a195e862 | 19 | parse_qtype.o \ |
1dc16b0b TT |
20 | profile_helpers.o \ |
21 | prof_err.o \ | |
22 | quotaio.o \ | |
23 | quotaio_v2.o \ | |
24 | quotaio_tree.o \ | |
25 | dict.o | |
26 | ||
27 | SRCS= $(srcdir)/argv_parse.c \ | |
4d5b21be | 28 | $(srcdir)/cstring.c \ |
1dc16b0b | 29 | $(srcdir)/mkquota.c \ |
a195e862 | 30 | $(srcdir)/parse_qtype.c \ |
99ceb8ec | 31 | $(srcdir)/plausible.c \ |
1dc16b0b TT |
32 | $(srcdir)/profile.c \ |
33 | $(srcdir)/profile_helpers.c \ | |
34 | prof_err.c \ | |
f239fefc AK |
35 | $(srcdir)/quotaio.c \ |
36 | $(srcdir)/quotaio_tree.c \ | |
37 | $(srcdir)/quotaio_v2.c \ | |
3dca12fb | 38 | $(srcdir)/dict.c |
f239fefc | 39 | |
f34af41b TT |
40 | LIBRARY= libsupport |
41 | LIBDIR= support | |
f239fefc AK |
42 | |
43 | @MAKEFILE_LIBRARY@ | |
f239fefc | 44 | @MAKEFILE_PROFILE@ |
f239fefc | 45 | |
a2143b51 | 46 | COMPILE_ET= _ET_DIR_OVERRIDE=$(srcdir)/../et ../et/compile_et |
1dc16b0b | 47 | |
f239fefc AK |
48 | .c.o: |
49 | $(E) " CC $<" | |
50 | $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@ | |
832cb612 | 51 | $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $< |
a46300fe | 52 | $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $< |
f239fefc | 53 | @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< |
f239fefc | 54 | |
f239fefc | 55 | installdirs:: |
d37178bb TT |
56 | |
57 | install:: all | |
f239fefc AK |
58 | |
59 | uninstall:: | |
f239fefc | 60 | |
1dc16b0b TT |
61 | prof_err.c prof_err.h: prof_err.et |
62 | $(E) " COMPILE_ET prof_err.et" | |
63 | $(Q) $(COMPILE_ET) $(srcdir)/prof_err.et | |
64 | ||
65 | test_profile: $(srcdir)/profile.c profile_helpers.o argv_parse.o \ | |
66 | prof_err.o profile.h $(DEPSTATIC_LIBCOM_ERR) | |
67 | $(E) " LD $@" | |
68 | $(Q) $(CC) -o test_profile -DDEBUG_PROGRAM $(srcdir)/profile.c prof_err.o \ | |
69 | profile_helpers.o argv_parse.o $(STATIC_LIBCOM_ERR) \ | |
70 | $(ALL_CFLAGS) | |
71 | ||
4d5b21be TT |
72 | test_cstring: $(srcdir)/cstring.c |
73 | $(E) " CC $@" | |
74 | $(Q) $(CC) -o test_cstring -DDEBUG_PROGRAM $(srcdir)/cstring.c \ | |
75 | $(ALL_CFLAGS) | |
76 | ||
f239fefc | 77 | clean:: |
1dc16b0b TT |
78 | $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* \ |
79 | ../libsupport.a ../libsupport_p.a $(SMANPAGES) \ | |
4d5b21be | 80 | prof_err.c prof_err.h test_profile test_cstring |
f239fefc | 81 | |
11b8ef8b | 82 | #fullcheck check:: tst_uuid |
f239fefc AK |
83 | # LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid |
84 | ||
85 | mostlyclean:: clean | |
86 | distclean:: clean | |
d37178bb | 87 | $(RM) -f .depend Makefile \ |
f239fefc AK |
88 | $(srcdir)/TAGS $(srcdir)/Makefile.in.old |
89 | ||
90 | # | |
91 | # Hack to parallel makes recognize dependencies correctly. | |
92 | # | |
f34af41b TT |
93 | ../../lib/libsupport.a: libsupport.a |
94 | ../../lib/libsupport.so: image | |
95 | ../../lib/libsupport.dylib: image | |
f239fefc AK |
96 | |
97 | $(OBJS): | |
98 | ||
99 | # +++ Dependency line eater +++ | |
100 | # | |
101 | # Makefile dependencies follow. This must be the last section in | |
102 | # the Makefile.in file | |
103 | # | |
1dc16b0b TT |
104 | argv_parse.o: $(srcdir)/argv_parse.c $(top_builddir)/lib/config.h \ |
105 | $(top_builddir)/lib/dirpaths.h $(srcdir)/argv_parse.h | |
4d5b21be | 106 | cstring.o: $(srcdir)/cstring.c $(top_builddir)/lib/config.h \ |
0ee1eaf7 | 107 | $(top_builddir)/lib/dirpaths.h $(srcdir)/cstring.h |
d1154eb4 TT |
108 | mkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \ |
109 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
f239fefc AK |
110 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
111 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ | |
112 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
113 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
2ae58b6d | 114 | $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/quotaio.h $(srcdir)/dqblk_v2.h \ |
3dca12fb TT |
115 | $(srcdir)/quotaio_tree.h $(srcdir)/quotaio_v2.h $(srcdir)/common.h \ |
116 | $(srcdir)/dict.h | |
a195e862 TT |
117 | parse_qtype.o: $(srcdir)/parse_qtype.c $(top_builddir)/lib/config.h \ |
118 | $(top_builddir)/lib/dirpaths.h $(srcdir)/quotaio.h \ | |
119 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ | |
120 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ | |
121 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ | |
122 | $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
123 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
124 | $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h | |
99ceb8ec TT |
125 | plausible.o: $(srcdir)/plausible.c $(top_builddir)/lib/config.h \ |
126 | $(top_builddir)/lib/dirpaths.h $(srcdir)/plausible.h \ | |
127 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ | |
128 | $(top_srcdir)/lib/ext2fs/ext2_fs.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)/nls-enable.h | |
1dc16b0b TT |
133 | profile.o: $(srcdir)/profile.c $(top_builddir)/lib/config.h \ |
134 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \ | |
135 | $(srcdir)/profile.h prof_err.h | |
136 | profile_helpers.o: $(srcdir)/profile_helpers.c $(top_builddir)/lib/config.h \ | |
137 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \ | |
f6acc121 | 138 | $(srcdir)/profile.h $(srcdir)/profile_helpers.h prof_err.h |
1dc16b0b | 139 | prof_err.o: prof_err.c |
d1154eb4 | 140 | quotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \ |
c714d024 TT |
141 | $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \ |
142 | $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio.h \ | |
d37178bb | 143 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
c714d024 TT |
144 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ |
145 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
f239fefc | 146 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
3dca12fb | 147 | $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h |
d1154eb4 | 148 | quotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \ |
c714d024 TT |
149 | $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \ |
150 | $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_tree.h \ | |
d37178bb TT |
151 | $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
152 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ | |
c714d024 TT |
153 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ |
154 | $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
f239fefc | 155 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
3dca12fb | 156 | $(srcdir)/dqblk_v2.h |
d1154eb4 | 157 | quotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \ |
c714d024 TT |
158 | $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \ |
159 | $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_v2.h \ | |
d37178bb TT |
160 | $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
161 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ | |
c714d024 TT |
162 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ |
163 | $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
2ae58b6d | 164 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
3dca12fb TT |
165 | $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h |
166 | dict.o: $(srcdir)/dict.c $(top_builddir)/lib/config.h \ | |
167 | $(top_builddir)/lib/dirpaths.h $(srcdir)/dict.h |