]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - misc/Makefile.in
ChangeLog, pass3.c, problem.c, problem.h, util.c:
[thirdparty/e2fsprogs.git] / misc / Makefile.in
CommitLineData
a418d3ad
TT
1#
2# Standard e2fsprogs prologue....
3#
4
5srcdir = @srcdir@
6top_srcdir = @top_srcdir@
7VPATH = @srcdir@
8top_builddir = ..
1e3472c5 9my_dir = misc
a418d3ad
TT
10INSTALL = @INSTALL@
11
12@MCONFIG@
13
ab6b8ab6 14SPROGS= mke2fs badblocks tune2fs dumpe2fs e2label @FSCK_PROG@
a418d3ad 15USPROGS= mklost+found
1e3472c5 16SMANPAGES= tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \
a789d840 17 e2label.8 @FSCK_MAN@
a418d3ad
TT
18
19UPROGS= chattr lsattr
20UMANPAGES= chattr.1 lsattr.1
21
22TUNE2FS_OBJS= tune2fs.o
23MKLPF_OBJS= mklost+found.o
24MKE2FS_OBJS= mke2fs.o
25CHATTR_OBJS= chattr.o
26LSATTR_OBJS= lsattr.o
27DUMPE2FS_OBJS= dumpe2fs.o
28BADBLOCKS_OBJS= badblocks.o
ab6b8ab6 29E2LABEL_OBJS= e2label.o
a418d3ad
TT
30FSCK_OBJS= fsck.o
31
32SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c \
33 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \
34 $(srcdir)/badblocks.c $(srcdir)/fsck.c
35
62c06f79
TT
36LIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
37DEPLIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
38
39STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
40STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
41
42LIBS_E2P= $(LIBEXT2FS) $(LIBE2P) $(LIBCOM_ERR)
43DEPLIBS_E2P= $(LIBEXT2FS) $(LIBE2P) $(LIBCOM_ERR)
a418d3ad
TT
44
45.c.o:
74becf3c 46 $(CC) -c $(ALL_CFLAGS) $< -o $@
a418d3ad 47
44339bdf 48all:: $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES)
a418d3ad 49
1e3472c5
TT
50tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS_E2P) $(LIBUUID)
51 $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS_E2P) $(LIBUUID)
a418d3ad 52
ab6b8ab6
TT
53e2label: $(E2LABEL_OBJS)
54 $(CC) $(ALL_LDFLAGS) -o e2label $(E2LABEL_OBJS)
55
a418d3ad 56mklost+found: $(MKLPF_OBJS)
74becf3c 57 $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS)
a418d3ad 58
1e3472c5
TT
59mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBUUID)
60 $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBUUID)
a418d3ad 61
1e3472c5 62mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBUUID)
62c06f79 63 $(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \
1e3472c5
TT
64 $(STATIC_LIBS) $(STATIC_LIBUUID)
65
66resize2fs: resize2fs.o $(DEPLIBS)
67 $(CC) $(ALL_LDFLAGS) -o resize2fs resize2fs.o $(LIBS)
a418d3ad 68
62c06f79
TT
69chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P)
70 $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P)
a418d3ad 71
62c06f79
TT
72lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P)
73 $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P)
a418d3ad 74
62c06f79
TT
75dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS_E2P)
76 $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS_E2P)
a418d3ad 77
62c06f79
TT
78fsck: $(FSCK_OBJS)
79 $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS)
a418d3ad
TT
80
81badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
74becf3c 82 $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS)
a418d3ad 83
44339bdf 84tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in
62c06f79
TT
85 $(SUBSTITUTE) $(srcdir)/tune2fs.8.in tune2fs.8
86
44339bdf 87mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in
62c06f79
TT
88 $(SUBSTITUTE) $(srcdir)/mklost+found.8.in mklost+found.8
89
44339bdf 90mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in
62c06f79
TT
91 $(SUBSTITUTE) $(srcdir)/mke2fs.8.in mke2fs.8
92
a789d840
TT
93e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
94 $(SUBSTITUTE) $(srcdir)/e2label.8.in e2label.8
95
44339bdf 96dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in
62c06f79
TT
97 $(SUBSTITUTE) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
98
44339bdf 99badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in
62c06f79
TT
100 $(SUBSTITUTE) $(srcdir)/badblocks.8.in badblocks.8
101
44339bdf 102fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in
62c06f79
TT
103 $(SUBSTITUTE) $(srcdir)/fsck.8.in fsck.8
104
44339bdf 105chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in
62c06f79
TT
106 $(SUBSTITUTE) $(srcdir)/chattr.1.in chattr.1
107
44339bdf 108lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in
62c06f79
TT
109 $(SUBSTITUTE) $(srcdir)/lsattr.1.in lsattr.1
110
a418d3ad 111installdirs:
7e44f242
TT
112 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) \
113 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \
114 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir)
a418d3ad
TT
115
116install: all $(SMANPAGES) $(UMANPAGES) installdirs
117 for i in $(SPROGS); do \
7e44f242
TT
118 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
119 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
a418d3ad
TT
120 done
121 for i in $(USPROGS); do \
7e44f242
TT
122 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
123 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
a418d3ad 124 done
7e44f242
TT
125 $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
126 $(DESTDIR)$(root_sbindir)/mkfs.ext2
a418d3ad 127 for i in $(UPROGS); do \
7e44f242
TT
128 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \
129 $(STRIP) $(DESTDIR)$(bindir)/$$i; \
a418d3ad
TT
130 done
131 for i in $(SMANPAGES); do \
74becf3c 132 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
a418d3ad
TT
133 done
134 for i in $(UMANPAGES); do \
74becf3c 135 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
a418d3ad
TT
136 done
137
138uninstall:
139 for i in $(SPROGS); do \
7e44f242 140 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
a418d3ad
TT
141 done
142 for i in $(USPROGS); do \
7e44f242 143 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
a418d3ad 144 done
7e44f242 145 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2
a418d3ad 146 for i in $(UPROGS); do \
7e44f242 147 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
a418d3ad
TT
148 done
149 for i in $(SMANPAGES); do \
7e44f242 150 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
a418d3ad
TT
151 done
152 for i in $(UMANPAGES); do \
7e44f242 153 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
a418d3ad
TT
154 done
155
156clean:
62c06f79
TT
157 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
158 mke2fs.static \#* *.s *.o *.a *~ core
159
a418d3ad
TT
160mostlyclean: clean
161distclean: clean
162 $(RM) -f .depend Makefile
163
164# +++ Dependency line eater +++
165#
166# Makefile dependencies follow. This must be the last section in
167# the Makefile.in file
168#
a29f4d30 169tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2fs.h \
d40259fd 170 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
a29f4d30
TT
171 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
172 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \
173 $(srcdir)/../version.h
62c06f79
TT
174mklost+found.o: $(srcdir)/mklost+found.c $(srcdir)/../version.h
175mke2fs.o: $(srcdir)/mke2fs.c $(top_srcdir)/lib/et/com_err.h \
1e3472c5 176 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
d40259fd 177 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
1e3472c5 178 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/../version.h
62c06f79
TT
179chattr.o: $(srcdir)/chattr.c $(top_srcdir)/lib/et/com_err.h \
180 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/../version.h
181lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/et/com_err.h \
182 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/../version.h
5a679c8f
TT
183dumpe2fs.o: $(srcdir)/dumpe2fs.c \
184 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
185 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
186 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h \
187 $(srcdir)/../version.h
62c06f79 188badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
d40259fd 189 $(top_srcdir)/lib/ext2fs/ext2_io.h
62c06f79 190fsck.o: $(srcdir)/fsck.c $(srcdir)/../version.h $(srcdir)/fsck.h