xref: /aosp_15_r20/external/e2fsprogs/resize/Makefile.in (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker#
2*6a54128fSAndroid Build Coastguard Worker# Standard e2fsprogs prologue....
3*6a54128fSAndroid Build Coastguard Worker#
4*6a54128fSAndroid Build Coastguard Worker
5*6a54128fSAndroid Build Coastguard Workersrcdir = @srcdir@
6*6a54128fSAndroid Build Coastguard Workertop_srcdir = @top_srcdir@
7*6a54128fSAndroid Build Coastguard WorkerVPATH = @srcdir@
8*6a54128fSAndroid Build Coastguard Workertop_builddir = ..
9*6a54128fSAndroid Build Coastguard Workermy_dir = resize
10*6a54128fSAndroid Build Coastguard WorkerINSTALL = @INSTALL@
11*6a54128fSAndroid Build Coastguard WorkerMKDIR_P = @MKDIR_P@
12*6a54128fSAndroid Build Coastguard Worker
13*6a54128fSAndroid Build Coastguard Worker@MCONFIG@
14*6a54128fSAndroid Build Coastguard Worker
15*6a54128fSAndroid Build Coastguard WorkerPROGS=		resize2fs
16*6a54128fSAndroid Build Coastguard WorkerTEST_PROGS=	test_extent
17*6a54128fSAndroid Build Coastguard WorkerMANPAGES=	resize2fs.8
18*6a54128fSAndroid Build Coastguard Worker
19*6a54128fSAndroid Build Coastguard WorkerRESIZE_OBJS= extent.o resize2fs.o main.o online.o resource_track.o \
20*6a54128fSAndroid Build Coastguard Worker		sim_progress.o
21*6a54128fSAndroid Build Coastguard Worker
22*6a54128fSAndroid Build Coastguard WorkerTEST_EXTENT_OBJS= extent.o test_extent.o
23*6a54128fSAndroid Build Coastguard Worker
24*6a54128fSAndroid Build Coastguard WorkerSRCS= $(srcdir)/extent.c \
25*6a54128fSAndroid Build Coastguard Worker	$(srcdir)/resize2fs.c \
26*6a54128fSAndroid Build Coastguard Worker	$(srcdir)/main.c \
27*6a54128fSAndroid Build Coastguard Worker	$(srcdir)/online.c \
28*6a54128fSAndroid Build Coastguard Worker	$(srcdir)/resource_track.c \
29*6a54128fSAndroid Build Coastguard Worker	$(srcdir)/sim_progress.c
30*6a54128fSAndroid Build Coastguard Worker
31*6a54128fSAndroid Build Coastguard WorkerLIBS= $(LIBE2P) $(LIBEXT2FS) $(LIBCOM_ERR) $(LIBINTL) $(SYSLIBS)
32*6a54128fSAndroid Build Coastguard WorkerDEPLIBS= $(LIBE2P) $(LIBEXT2FS) $(DEPLIBCOM_ERR)
33*6a54128fSAndroid Build Coastguard Worker
34*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBS= $(STATIC_LIBE2P) $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) \
35*6a54128fSAndroid Build Coastguard Worker	$(LIBINTL) $(SYSLIBS)
36*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBS= $(STATIC_LIBE2P) $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
37*6a54128fSAndroid Build Coastguard Worker
38*6a54128fSAndroid Build Coastguard Worker.c.o:
39*6a54128fSAndroid Build Coastguard Worker	$(E) "	CC $<"
40*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
41*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
42*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
43*6a54128fSAndroid Build Coastguard Worker
44*6a54128fSAndroid Build Coastguard Workerall:: $(PROGS) $(TEST_PROGS) $(MANPAGES)
45*6a54128fSAndroid Build Coastguard Worker
46*6a54128fSAndroid Build Coastguard Workerall-static:: resize2fs.static
47*6a54128fSAndroid Build Coastguard Worker
48*6a54128fSAndroid Build Coastguard Workerresize2fs: $(RESIZE_OBJS) $(DEPLIBS)
49*6a54128fSAndroid Build Coastguard Worker	$(E) "	LD $@"
50*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CC) $(ALL_LDFLAGS) -o resize2fs $(RESIZE_OBJS) $(LIBS)
51*6a54128fSAndroid Build Coastguard Worker
52*6a54128fSAndroid Build Coastguard Workerresize2fs.static: $(RESIZE_OBJS) $(DEPSTATIC_LIBS)
53*6a54128fSAndroid Build Coastguard Worker	$(E) "	LD $@"
54*6a54128fSAndroid Build Coastguard Worker	$(Q) $(LD) $(LDFLAGS_STATIC) -o resize2fs.static \
55*6a54128fSAndroid Build Coastguard Worker		$(RESIZE_OBJS) $(STATIC_LIBS)
56*6a54128fSAndroid Build Coastguard Worker
57*6a54128fSAndroid Build Coastguard Workerresize2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/resize2fs.8.in
58*6a54128fSAndroid Build Coastguard Worker	$(E) "	SUBST $@"
59*6a54128fSAndroid Build Coastguard Worker	$(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/resize2fs.8.in resize2fs.8
60*6a54128fSAndroid Build Coastguard Worker
61*6a54128fSAndroid Build Coastguard Workertest_extent: $(TEST_EXTENT_OBJS)
62*6a54128fSAndroid Build Coastguard Worker	$(E) "	LD $@"
63*6a54128fSAndroid Build Coastguard Worker	$(Q) $(CC) $(ALL_LDFLAGS) -o test_extent $(TEST_EXTENT_OBJS) $(LIBS)
64*6a54128fSAndroid Build Coastguard Worker
65*6a54128fSAndroid Build Coastguard Workerinstalldirs:
66*6a54128fSAndroid Build Coastguard Worker	$(E) "	MKDIR_P $(root_sbindir) $(man8dir)"
67*6a54128fSAndroid Build Coastguard Worker	$(Q) $(MKDIR_P) $(DESTDIR)$(root_sbindir) \
68*6a54128fSAndroid Build Coastguard Worker		$(DESTDIR)$(man8dir)
69*6a54128fSAndroid Build Coastguard Worker
70*6a54128fSAndroid Build Coastguard Workerinstall: $(PROGS) $(MANPAGES) installdirs
71*6a54128fSAndroid Build Coastguard Worker	$(Q) for i in $(PROGS); do \
72*6a54128fSAndroid Build Coastguard Worker		echo "	INSTALL $(root_sbindir)/$$i"; \
73*6a54128fSAndroid Build Coastguard Worker		$(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
74*6a54128fSAndroid Build Coastguard Worker	done
75*6a54128fSAndroid Build Coastguard Worker	$(Q) for i in $(MANPAGES); do \
76*6a54128fSAndroid Build Coastguard Worker		for j in $(COMPRESS_EXT); do \
77*6a54128fSAndroid Build Coastguard Worker			$(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
78*6a54128fSAndroid Build Coastguard Worker		done; \
79*6a54128fSAndroid Build Coastguard Worker		echo "	INSTALL_DATA $(man8dir)/$$i"; \
80*6a54128fSAndroid Build Coastguard Worker		$(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
81*6a54128fSAndroid Build Coastguard Worker	done
82*6a54128fSAndroid Build Coastguard Worker
83*6a54128fSAndroid Build Coastguard Workerinstall-strip: install
84*6a54128fSAndroid Build Coastguard Worker	$(Q) for i in $(PROGS); do \
85*6a54128fSAndroid Build Coastguard Worker		echo "	STRIP $(root_sbindir)/$$i"; \
86*6a54128fSAndroid Build Coastguard Worker		$(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
87*6a54128fSAndroid Build Coastguard Worker	done
88*6a54128fSAndroid Build Coastguard Worker
89*6a54128fSAndroid Build Coastguard Workeruninstall:
90*6a54128fSAndroid Build Coastguard Worker	for i in $(PROGS); do \
91*6a54128fSAndroid Build Coastguard Worker		$(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
92*6a54128fSAndroid Build Coastguard Worker	done
93*6a54128fSAndroid Build Coastguard Worker	for i in $(MANPAGES); do \
94*6a54128fSAndroid Build Coastguard Worker		$(RM) -f $(DESTDIR)$(man8dir)/$$i; \
95*6a54128fSAndroid Build Coastguard Worker	done
96*6a54128fSAndroid Build Coastguard Worker
97*6a54128fSAndroid Build Coastguard Workertest_extent.out: test_extent $(srcdir)/test_extent.in
98*6a54128fSAndroid Build Coastguard Worker	$(TESTENV) ./test_extent < $(srcdir)/test_extent.in > test_extent.out
99*6a54128fSAndroid Build Coastguard Worker
100*6a54128fSAndroid Build Coastguard Workerfullcheck check:: test_extent.out
101*6a54128fSAndroid Build Coastguard Worker	$(Q) if cmp -s test_extent.out $(srcdir)/test_extent.in ; then \
102*6a54128fSAndroid Build Coastguard Worker		echo "Test succeeded." ; \
103*6a54128fSAndroid Build Coastguard Worker	else \
104*6a54128fSAndroid Build Coastguard Worker		echo "Test failed!" ; \
105*6a54128fSAndroid Build Coastguard Worker		diff test_extent.out $(srcdir)/test_extent.in ; \
106*6a54128fSAndroid Build Coastguard Worker		exit 1 ; \
107*6a54128fSAndroid Build Coastguard Worker	fi
108*6a54128fSAndroid Build Coastguard Worker
109*6a54128fSAndroid Build Coastguard Workerclean::
110*6a54128fSAndroid Build Coastguard Worker	$(RM) -f $(PROGS) $(TEST_PROGS) $(MANPAGES) \#* *.s *.o *.a *~ core \
111*6a54128fSAndroid Build Coastguard Worker		resize2fs.static test_extent.out
112*6a54128fSAndroid Build Coastguard Worker
113*6a54128fSAndroid Build Coastguard Workermostlyclean: clean
114*6a54128fSAndroid Build Coastguard Worker
115*6a54128fSAndroid Build Coastguard Workerdistclean: clean
116*6a54128fSAndroid Build Coastguard Worker	$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
117*6a54128fSAndroid Build Coastguard Worker
118*6a54128fSAndroid Build Coastguard Worker# +++ Dependency line eater +++
119*6a54128fSAndroid Build Coastguard Worker#
120*6a54128fSAndroid Build Coastguard Worker# Makefile dependencies follow.  This must be the last section in
121*6a54128fSAndroid Build Coastguard Worker# the Makefile.in file
122*6a54128fSAndroid Build Coastguard Worker#
123*6a54128fSAndroid Build Coastguard Workerextent.o: $(srcdir)/extent.c $(top_builddir)/lib/config.h \
124*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/resize2fs.h \
125*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
126*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
127*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
128*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_err.h \
129*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
130*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h
131*6a54128fSAndroid Build Coastguard Workerresize2fs.o: $(srcdir)/resize2fs.c $(top_builddir)/lib/config.h \
132*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/resize2fs.h \
133*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
134*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2fs.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 $(top_srcdir)/lib/e2p/e2p.h
139*6a54128fSAndroid Build Coastguard Workermain.o: $(srcdir)/main.c $(top_builddir)/lib/config.h \
140*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/e2p/e2p.h \
141*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
142*6a54128fSAndroid Build Coastguard Worker $(srcdir)/resize2fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
143*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
144*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
145*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
146*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/version.h
147*6a54128fSAndroid Build Coastguard Workeronline.o: $(srcdir)/online.c $(top_builddir)/lib/config.h \
148*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/resize2fs.h \
149*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
150*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
151*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
152*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_err.h \
153*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
154*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h
155*6a54128fSAndroid Build Coastguard Workerresource_track.o: $(srcdir)/resource_track.c $(top_builddir)/lib/config.h \
156*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/resize2fs.h \
157*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
158*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
159*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
160*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/ext2fs/ext2_err.h \
161*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
162*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h
163*6a54128fSAndroid Build Coastguard Workersim_progress.o: $(srcdir)/sim_progress.c $(top_builddir)/lib/config.h \
164*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(srcdir)/resize2fs.h \
165*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.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 $(top_srcdir)/lib/e2p/e2p.h
171