xref: /aosp_15_r20/external/e2fsprogs/lib/support/Makefile.in (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker# Makefile for e2fsprog's internal support
2*6a54128fSAndroid Build Coastguard Worker#
3*6a54128fSAndroid Build Coastguard Worker
4*6a54128fSAndroid Build Coastguard Workersrcdir = @srcdir@
5*6a54128fSAndroid Build Coastguard Workertop_srcdir = @top_srcdir@
6*6a54128fSAndroid Build Coastguard WorkerVPATH = @srcdir@
7*6a54128fSAndroid Build Coastguard Workertop_builddir = ../..
8*6a54128fSAndroid Build Coastguard Workermy_dir = lib/support
9*6a54128fSAndroid Build Coastguard WorkerINSTALL = @INSTALL@
10*6a54128fSAndroid Build Coastguard WorkerMKDIR_P = @MKDIR_P@
11*6a54128fSAndroid Build Coastguard Worker
12*6a54128fSAndroid Build Coastguard Worker@MCONFIG@
13*6a54128fSAndroid Build Coastguard Worker
14*6a54128fSAndroid Build Coastguard Workerall::
15*6a54128fSAndroid Build Coastguard Worker
16*6a54128fSAndroid Build Coastguard WorkerOBJS=		cstring.o \
17*6a54128fSAndroid Build Coastguard Worker		mkquota.o \
18*6a54128fSAndroid Build Coastguard Worker		plausible.o \
19*6a54128fSAndroid Build Coastguard Worker		profile.o \
20*6a54128fSAndroid Build Coastguard Worker		parse_qtype.o \
21*6a54128fSAndroid Build Coastguard Worker		print_fs_flags.o \
22*6a54128fSAndroid Build Coastguard Worker		profile_helpers.o \
23*6a54128fSAndroid Build Coastguard Worker		prof_err.o \
24*6a54128fSAndroid Build Coastguard Worker		quotaio.o \
25*6a54128fSAndroid Build Coastguard Worker		quotaio_v2.o \
26*6a54128fSAndroid Build Coastguard Worker		quotaio_tree.o \
27*6a54128fSAndroid Build Coastguard Worker		dict.o \
28*6a54128fSAndroid Build Coastguard Worker		devname.o
29*6a54128fSAndroid Build Coastguard Worker
30*6a54128fSAndroid Build Coastguard WorkerSRCS=		$(srcdir)/argv_parse.c \
31*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/cstring.c \
32*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/mkquota.c \
33*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/parse_qtype.c \
34*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/plausible.c \
35*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/print_fs_flags.c \
36*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/profile.c \
37*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/profile_helpers.c \
38*6a54128fSAndroid Build Coastguard Worker		prof_err.c \
39*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/quotaio.c \
40*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/quotaio_tree.c \
41*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/quotaio_v2.c \
42*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/dict.c \
43*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/devname.c
44*6a54128fSAndroid Build Coastguard Worker
45*6a54128fSAndroid Build Coastguard WorkerLIBRARY= libsupport
46*6a54128fSAndroid Build Coastguard WorkerLIBDIR= support
47*6a54128fSAndroid Build Coastguard Worker
48*6a54128fSAndroid Build Coastguard Worker@MAKEFILE_LIBRARY@
49*6a54128fSAndroid Build Coastguard Worker@MAKEFILE_PROFILE@
50*6a54128fSAndroid Build Coastguard Worker
51*6a54128fSAndroid Build Coastguard WorkerCOMPILE_ET=	_ET_DIR_OVERRIDE=$(srcdir)/../et ../et/compile_et
52*6a54128fSAndroid Build Coastguard Worker
53*6a54128fSAndroid Build Coastguard Worker.c.o:
54*6a54128fSAndroid Build Coastguard Worker	$(E) "	CC $<"
55*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@
56*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
57*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
58*6a54128fSAndroid Build Coastguard Worker@PROFILE_CMT@	$(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
59*6a54128fSAndroid Build Coastguard Worker
60*6a54128fSAndroid Build Coastguard Workerinstalldirs::
61*6a54128fSAndroid Build Coastguard Worker
62*6a54128fSAndroid Build Coastguard Workerinstall:: all
63*6a54128fSAndroid Build Coastguard Worker
64*6a54128fSAndroid Build Coastguard Workeruninstall::
65*6a54128fSAndroid Build Coastguard Worker
66*6a54128fSAndroid Build Coastguard Workerprof_err.c prof_err.h: prof_err.et
67*6a54128fSAndroid Build Coastguard Worker	$(E) "	COMPILE_ET prof_err.et"
68*6a54128fSAndroid Build Coastguard Worker	$(Q) $(COMPILE_ET) $(srcdir)/prof_err.et
69*6a54128fSAndroid Build Coastguard Worker
70*6a54128fSAndroid Build Coastguard Workertest_profile: $(srcdir)/profile.c profile_helpers.o argv_parse.o \
71*6a54128fSAndroid Build Coastguard Worker		prof_err.o profile.h $(DEPSTATIC_LIBCOM_ERR)
72*6a54128fSAndroid Build Coastguard Worker	$(E) "	LD $@"
73*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CC) -o test_profile -DDEBUG_PROGRAM $(srcdir)/profile.c prof_err.o \
74*6a54128fSAndroid Build Coastguard Worker		profile_helpers.o argv_parse.o $(STATIC_LIBCOM_ERR) \
75*6a54128fSAndroid Build Coastguard Worker		$(ALL_CFLAGS)
76*6a54128fSAndroid Build Coastguard Worker
77*6a54128fSAndroid Build Coastguard Workertest_cstring: $(srcdir)/cstring.c
78*6a54128fSAndroid Build Coastguard Worker	$(E) " CC $@"
79*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CC) -o test_cstring -DDEBUG_PROGRAM $(srcdir)/cstring.c \
80*6a54128fSAndroid Build Coastguard Worker		$(ALL_CFLAGS)
81*6a54128fSAndroid Build Coastguard Worker
82*6a54128fSAndroid Build Coastguard Workerclean::
83*6a54128fSAndroid Build Coastguard Worker	$(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* \
84*6a54128fSAndroid Build Coastguard Worker		../libsupport.a ../libsupport_p.a $(SMANPAGES) \
85*6a54128fSAndroid Build Coastguard Worker		prof_err.c prof_err.h test_profile test_cstring
86*6a54128fSAndroid Build Coastguard Worker
87*6a54128fSAndroid Build Coastguard Worker#fullcheck check:: tst_uuid
88*6a54128fSAndroid Build Coastguard Worker#	LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
89*6a54128fSAndroid Build Coastguard Worker
90*6a54128fSAndroid Build Coastguard Workermostlyclean:: clean
91*6a54128fSAndroid Build Coastguard Workerdistclean:: clean
92*6a54128fSAndroid Build Coastguard Worker	$(RM) -f .depend Makefile \
93*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/TAGS $(srcdir)/Makefile.in.old
94*6a54128fSAndroid Build Coastguard Worker
95*6a54128fSAndroid Build Coastguard Worker#
96*6a54128fSAndroid Build Coastguard Worker# Hack to parallel makes recognize dependencies correctly.
97*6a54128fSAndroid Build Coastguard Worker#
98*6a54128fSAndroid Build Coastguard Worker../../lib/libsupport.a: libsupport.a
99*6a54128fSAndroid Build Coastguard Worker../../lib/libsupport.so: image
100*6a54128fSAndroid Build Coastguard Worker../../lib/libsupport.dylib: image
101*6a54128fSAndroid Build Coastguard Worker
102*6a54128fSAndroid Build Coastguard Worker$(OBJS):
103*6a54128fSAndroid Build Coastguard Worker
104*6a54128fSAndroid Build Coastguard Worker# +++ Dependency line eater +++
105*6a54128fSAndroid Build Coastguard Worker#
106*6a54128fSAndroid Build Coastguard Worker# Makefile dependencies follow.  This must be the last section in
107*6a54128fSAndroid Build Coastguard Worker# the Makefile.in file
108*6a54128fSAndroid Build Coastguard Worker#
109*6a54128fSAndroid Build Coastguard Workerargv_parse.o: $(srcdir)/argv_parse.c $(top_builddir)/lib/config.h \
110*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/argv_parse.h
111*6a54128fSAndroid Build Coastguard Workercstring.o: $(srcdir)/cstring.c $(top_builddir)/lib/config.h \
112*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/cstring.h
113*6a54128fSAndroid Build Coastguard Workermkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \
114*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
115*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
116*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
117*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
118*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
119*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h \
120*6a54128fSAndroid Build Coastguard Worker $(srcdir)/quotaio.h $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h \
121*6a54128fSAndroid Build Coastguard Worker $(srcdir)/quotaio_v2.h $(srcdir)/common.h $(srcdir)/dict.h
122*6a54128fSAndroid Build Coastguard Workerparse_qtype.o: $(srcdir)/parse_qtype.c $(top_builddir)/lib/config.h \
123*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/quotaio.h \
124*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
125*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
126*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
127*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_err.h \
128*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
129*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h \
130*6a54128fSAndroid Build Coastguard Worker $(srcdir)/quotaio_tree.h
131*6a54128fSAndroid Build Coastguard Workerplausible.o: $(srcdir)/plausible.c $(top_builddir)/lib/config.h \
132*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/plausible.h \
133*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
134*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
135*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
136*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_err.h \
137*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
138*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/nls-enable.h
139*6a54128fSAndroid Build Coastguard Workerprint_fs_flags.o: $(srcdir)/print_fs_flags.c $(top_builddir)/lib/config.h \
140*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
141*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
142*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
143*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
144*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
145*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h
146*6a54128fSAndroid Build Coastguard Workerprofile.o: $(srcdir)/profile.c $(top_builddir)/lib/config.h \
147*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
148*6a54128fSAndroid Build Coastguard Worker $(srcdir)/profile.h prof_err.h
149*6a54128fSAndroid Build Coastguard Workerprofile_helpers.o: $(srcdir)/profile_helpers.c $(top_builddir)/lib/config.h \
150*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
151*6a54128fSAndroid Build Coastguard Worker $(srcdir)/profile.h $(srcdir)/profile_helpers.h prof_err.h
152*6a54128fSAndroid Build Coastguard Workerprof_err.o: prof_err.c
153*6a54128fSAndroid Build Coastguard Workerquotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \
154*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
155*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio.h \
156*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
157*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
158*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
159*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
160*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h \
161*6a54128fSAndroid Build Coastguard Worker $(srcdir)/quotaio_tree.h
162*6a54128fSAndroid Build Coastguard Workerquotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \
163*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
164*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_tree.h \
165*6a54128fSAndroid Build Coastguard Worker $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
166*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
167*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
168*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_err.h \
169*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
170*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h
171*6a54128fSAndroid Build Coastguard Workerquotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \
172*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
173*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_v2.h \
174*6a54128fSAndroid Build Coastguard Worker $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
175*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
176*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
177*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_err.h \
178*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
179*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/dqblk_v2.h \
180*6a54128fSAndroid Build Coastguard Worker $(srcdir)/quotaio_tree.h
181*6a54128fSAndroid Build Coastguard Workerdict.o: $(srcdir)/dict.c $(top_builddir)/lib/config.h \
182*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/dict.h
183*6a54128fSAndroid Build Coastguard Workerdevname.o: $(srcdir)/devname.c $(top_builddir)/lib/config.h \
184*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/devname.h $(srcdir)/nls-enable.h
185