Makefile.in revision 6013bbf596fe7fc20e53d5c7fb5cc37e48cc0136
1# 2# Standard e2fsprogs prologue.... 3# 4 5srcdir = @srcdir@ 6top_srcdir = @top_srcdir@ 7VPATH = @srcdir@ 8top_builddir = .. 9my_dir = misc 10INSTALL = @INSTALL@ 11 12@MCONFIG@ 13 14@IMAGER_CMT@E2IMAGE_PROG= e2image 15@IMAGER_CMT@E2IMAGE_MAN= e2image.8 16 17@UUIDD_CMT@UUIDD_PROG= uuidd 18@UUIDD_CMT@UUIDD_MAN= uuidd.8 19 20@BLKID_CMT@BLKID_PROG= blkid 21@BLKID_CMT@BLKID_MAN= blkid.8 22 23@BLKID_CMT@FINDFS_LINK= findfs 24@BLKID_CMT@FINDFS_MAN= findfs.8 25 26SPROGS= mke2fs badblocks tune2fs dumpe2fs $(BLKID_PROG) logsave \ 27 $(E2IMAGE_PROG) @FSCK_PROG@ e2undo 28USPROGS= mklost+found filefrag $(UUIDD_PROG) 29SMANPAGES= tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \ 30 e2label.8 $(FINDFS_MAN) $(BLKID_MAN) $(E2IMAGE_MAN) \ 31 logsave.8 filefrag.8 e2undo.8 $(UUIDD_MAN) @FSCK_MAN@ 32FMANPAGES= mke2fs.conf.5 33 34UPROGS= chattr lsattr @UUID_CMT@ uuidgen 35UMANPAGES= chattr.1 lsattr.1 @UUID_CMT@ uuidgen.1 36 37LPROGS= @E2INITRD_PROG@ 38 39TUNE2FS_OBJS= tune2fs.o util.o 40MKLPF_OBJS= mklost+found.o 41MKE2FS_OBJS= mke2fs.o util.o profile.o prof_err.o default_profile.o 42CHATTR_OBJS= chattr.o 43LSATTR_OBJS= lsattr.o 44UUIDGEN_OBJS= uuidgen.o 45UUIDD_OBJS= uuidd.o 46DUMPE2FS_OBJS= dumpe2fs.o 47BADBLOCKS_OBJS= badblocks.o 48E2IMAGE_OBJS= e2image.o 49FSCK_OBJS= fsck.o base_device.o ismounted.o 50BLKID_OBJS= blkid.o 51FILEFRAG_OBJS= filefrag.o 52E2UNDO_OBJS= e2undo.o 53 54PROFILED_TUNE2FS_OBJS= profiled/tune2fs.o profiled/util.o 55PROFILED_MKLPF_OBJS= profiled/mklost+found.o 56PROFILED_MKE2FS_OBJS= profiled/mke2fs.o profiled/util.o profiled/profile.o \ 57 profiled/prof_err.o profiled/default_profile.o 58PROFILED_CHATTR_OBJS= profiled/chattr.o 59PROFILED_LSATTR_OBJS= profiled/lsattr.o 60PROFILED_UUIDGEN_OBJS= profiled/uuidgen.o 61PROFILED_UUIDD_OBJS= profiled/uuidd.o 62PROFILED_DUMPE2FS_OBJS= profiled/dumpe2fs.o 63PROFILED_BADBLOCKS_OBJS= profiled/badblocks.o 64PROFILED_E2IMAGE_OBJS= profiled/e2image.o 65PROFILED_FSCK_OBJS= profiled/fsck.o profiled/base_device.o \ 66 profiled/ismounted.o 67PROFILED_BLKID_OBJS= profiled/blkid.o 68PROFILED_FILEFRAG_OBJS= profiled/filefrag.o 69PROFILED_E2UNDO_OBJS= profiled/e2undo.o 70 71 72XTRA_CFLAGS= -I$(srcdir)/../e2fsck -I. 73 74SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c \ 75 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \ 76 $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \ 77 $(srcdir)/uuidgen.c $(srcdir)/blkid.c $(srcdir)/logsave.c \ 78 $(srcdir)/filefrag.c $(srcdir)/base_device.c \ 79 $(srcdir)/ismounted.c $(srcdir)/../e2fsck/profile.c \ 80 $(srcdir)/e2undo.c 81 82LIBS= $(LIBEXT2FS) $(LIBCOM_ERR) 83DEPLIBS= $(LIBEXT2FS) $(LIBCOM_ERR) 84PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR) 85PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR) 86 87STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) 88STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) 89 90LIBS_E2P= $(LIBE2P) $(LIBCOM_ERR) 91DEPLIBS_E2P= $(LIBE2P) $(LIBCOM_ERR) 92 93COMPILE_ET=$(top_builddir)/lib/et/compile_et --build-tree 94 95.c.o: 96 @echo " CC $<" 97 @$(CC) -c $(ALL_CFLAGS) $< -o $@ 98@PROFILE_CMT@ @$(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< 99 100all:: profiled $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES) \ 101 $(FMANPAGES) $(LPROGS) 102 103@PROFILE_CMT@all:: tune2fs.profiled blkid.profiled e2image.profiled \ 104 e2undo.profiled mke2fs.profiled dumpe2fs.profiled fsck.profiled \ 105 logsave.profiled filefrag.profiled uuidgen.profiled uuidd.profiled \ 106 e2image.profiled 107 108profiled: 109@PROFILE_CMT@ @echo " MKDIR $@" 110@PROFILE_CMT@ @mkdir profiled 111 112prof_err.c prof_err.h: $(srcdir)/../e2fsck/prof_err.et 113 @echo " COMPILE_ET prof_err.et" 114 @$(COMPILE_ET) $(srcdir)/../e2fsck/prof_err.et 115 116default_profile.c: $(srcdir)/mke2fs.conf $(srcdir)/profile-to-c.awk 117 @echo " PROFILE_TO_C mke2fs.conf" 118 @$(AWK) -f $(srcdir)/profile-to-c.awk < $(srcdir)/mke2fs.conf \ 119 > default_profile.c 120profile.o: 121 @echo " CC $<" 122 @$(CC) -c $(ALL_CFLAGS) $(srcdir)/../e2fsck/profile.c -o $@ 123@PROFILE_CMT@ @$(CC) $(ALL_CFLAGS) -g -pg -o profiled/profile.o -c \ 124@PROFILE_CMT@ $(srcdir)/../e2fsck/profile.c 125 126findsuper: findsuper.o 127 @echo " LD $@" 128 @$(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o 129 130partinfo: partinfo.o 131 @echo " LD $@" 132 @$(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o 133 134e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS) 135 @echo " LD $@" 136 @$(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \ 137 $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL) 138 139tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \ 140 $(DEPLIBUUID) $(LIBEXT2FS) 141 @echo " LD $@" 142 @$(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS) \ 143 $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBS_E2P) $(LIBINTL) 144 145tune2fs.static: $(TUNE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBBLKID) 146 @echo " LD $@" 147 @$(CC) $(LDFLAGS_STATIC) -o tune2fs.static $(TUNE2FS_OBJS) \ 148 $(STATIC_LIBS) $(STATIC_LIBBLKID) $(STATIC_LIBUUID) \ 149 $(STATIC_LIBE2P) $(LIBINTL) 150 151tune2fs.profiled: $(PROFILED_TUNE2FS_OBJS) $(PROFILED_DEPLIBS) \ 152 $(PROFILED_E2P) $(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID) 153 @echo " LD $@" 154 @$(CC) $(ALL_LDFLAGS) -g -pg -o tune2fs.profiled \ 155 $(PROFILED_TUNE2FS_OBJS) $(PROFILED_LIBBLKID) \ 156 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \ 157 $(PROFILED_LIBS) 158 159blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS) 160 @echo " LD $@" 161 @$(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \ 162 $(LIBEXT2FS) 163 164blkid.static: $(BLKID_OBJS) $(STATIC_DEPLIBS) $(DEPSTATIC_LIBBLKID) 165 @echo " LD $@" 166 @$(CC) $(ALL_LDFLAGS) -o blkid.static $(BLKID_OBJS) $(STATIC_LIBS) \ 167 $(STATIC_LIBBLKID) $(LIBINTL) 168 169blkid.profiled: $(PROFILED_BLKID_OBJS) $(DEPPROFILED_LIBBLKID) \ 170 $(PROFILED_LIBEXT2FS) 171 @echo " LD $@" 172 @$(CC) $(ALL_LDFLAGS) -g -pg -o blkid.profiled $(PROFILED_BLKID_OBJS) \ 173 $(PROFILED_LIBBLKID) $(LIBINTL) $(PROFILED_LIBEXT2FS) 174 175e2image: $(E2IMAGE_OBJS) $(DEPLIBS) 176 @echo " LD $@" 177 @$(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS) $(LIBINTL) 178 179e2image.profiled: $(PROFILED_E2IMAGE_OBJS) $(PROFILED_DEPLIBS) 180 @echo " LD $@" 181 @$(CC) $(ALL_LDFLAGS) -g -pg -o e2image.profiled \ 182 $(PROFILED_E2IMAGE_OBJS) $(PROFILED_LIBS) $(LIBINTL) 183 184e2undo: $(E2UNDO_OBJS) $(DEPLIBS) 185 @echo " LD $@" 186 @$(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) $(LIBINTL) 187 188e2undo.profiled: $(PROFILED_E2UNDO_OBJS) $(PROFILED_DEPLIBS) 189 @echo " LD $@" 190 @$(CC) $(ALL_LDFLAGS) -g -pg -o e2undo.profiled \ 191 $(PROFILED_E2UNDO_OBJS) $(PROFILED_LIBS) $(LIBINTL) 192 193base_device: base_device.c 194 @echo " LD $@" 195 @$(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \ 196 -DDEBUG -o base_device 197 198check:: base_device 199 ./base_device < $(srcdir)/base_device.tst > base_device.out 200 cmp $(srcdir)/base_device.tst base_device.out 201 202mklost+found: $(MKLPF_OBJS) 203 @echo " LD $@" 204 @$(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS) $(LIBINTL) 205 206mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBBLKID) $(DEPLIBUUID) \ 207 $(LIBEXT2FS) 208 @echo " LD $@" 209 @$(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBBLKID) \ 210 $(LIBUUID) $(LIBEXT2FS) $(LIBE2P) $(LIBINTL) 211 212mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID) $(DEPSTATIC_LIBBLKID) 213 @echo " LD $@" 214 @$(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \ 215 $(STATIC_LIBS) $(STATIC_LIBE2P) $(STATIC_LIBBLKID) \ 216 $(STATIC_LIBUUID) $(LIBINTL) 217 218mke2fs.profiled: $(PROFILED_MKE2FS_OBJS) $(PROFILED_DEPLIBS) \ 219 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBBLKID) $(PROFILED_DEPLIBUUID) 220 @echo " LD $@" 221 @$(CC) $(ALL_LDFLAGS) -g -pg -o mke2fs.profiled \ 222 $(PROFILED_MKE2FS_OBJS) $(PROFILED_LIBBLKID) \ 223 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \ 224 $(PROFILED_LIBS) 225 226chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P) 227 @echo " LD $@" 228 @$(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P) $(LIBINTL) 229 230lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P) 231 @echo " LD $@" 232 @$(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P) $(LIBINTL) 233 234uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID) 235 @echo " LD $@" 236 @$(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID) $(LIBINTL) 237 238uuidgen.profiled: $(PROFILED_UUIDGEN_OBJS) $(PROFILED_DEPLIBUUID) 239 @echo " LD $@" 240 @$(CC) $(ALL_LDFLAGS) -g -pg -o uuidgen.profiled \ 241 $(PROFILED_UUIDGEN_OBJS) $(PROFILED_LIBUUID) $(LIBINTL) 242 243uuidd: $(UUIDD_OBJS) $(DEPLIBUUID) 244 @echo " LD $@" 245 @$(CC) $(ALL_LDFLAGS) -o uuidd $(UUIDD_OBJS) $(LIBUUID) $(LIBINTL) 246 247uuidd.profiled: $(PROFILED_UUIDD_OBJS) $(PROFILED_DEPLIBUUID) 248 @echo " LD $@" 249 @$(CC) $(ALL_LDFLAGS) -g -pg -o uuidd.profiled $(PROFILED_UUIDD_OBJS) \ 250 $(PROFILED_LIBUUID) $(LIBINTL) 251 252dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID) 253 @echo " LD $@" 254 @$(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS) \ 255 $(LIBS_E2P) $(LIBUUID) $(LIBINTL) 256 257dumpe2fs.profiled: $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_DEPLIBS) \ 258 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBUUID) 259 @echo " LD $@" 260 @$(CC) $(ALL_LDFLAGS) -g -pg -o dumpe2fs.profiled \ 261 $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \ 262 $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL) 263 264fsck: $(FSCK_OBJS) $(DEPLIBBLKID) 265 @echo " LD $@" 266 @$(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL) 267 268fsck.profiled: $(PROFILED_FSCK_OBJS) $(PROFILED_DEPLIBBLKID) 269 @echo " LD $@" 270 @$(CC) $(ALL_LDFLAGS) -g -pg -o fsck.profiled $(PROFILED_FSCK_OBJS) \ 271 $(PROFILED_LIBBLKID) $(LIBINTL) 272 273badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS) 274 @echo " LD $@" 275 @$(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) $(LIBINTL) 276 277badblocks.profiled: $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_DEPLIBS) 278 @echo " LD $@" 279 @$(CC) $(ALL_LDFLAGS) -g -pg -o badblocks.profiled \ 280 $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_LIBS) $(LIBINTL) 281 282logsave: logsave.o 283 @echo " LD $@" 284 @$(CC) $(ALL_LDFLAGS) -o logsave logsave.o 285 286logsave.profiled: profiled/logsave.o 287 @echo " LD $@" 288 @$(CC) $(ALL_LDFLAGS) -g -pg -o logsave.profiled profiled/logsave.o 289 290filefrag: $(FILEFRAG_OBJS) 291 @echo " LD $@" 292 @$(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS) 293 294filefrag.profiled: $(PROFILED_FILEFRAG_OBJS) 295 @echo " LD $@" 296 @$(CC) $(ALL_LDFLAGS) -g -pg -o filefrag.profiled \ 297 $(PROFILED_FILEFRAG_OBJS) 298 299tst_ismounted: $(srcdir)/ismounted.c $(STATIC_LIBEXT2FS) 300 @echo " LD $@" 301 $(CC) -o tst_ismounted $(srcdir)/ismounted.c -DDEBUG $(ALL_CFLAGS) $(LIBCOM_ERR) 302 303tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in 304 @echo " SUBST $@" 305 @$(SUBSTITUTE_UPTIME) $(srcdir)/tune2fs.8.in tune2fs.8 306 307mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in 308 @echo " SUBST $@" 309 @$(SUBSTITUTE_UPTIME) $(srcdir)/mklost+found.8.in mklost+found.8 310 311mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in 312 @echo " SUBST $@" 313 @$(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.8.in mke2fs.8 314 315mke2fs.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.conf.5.in 316 @echo " SUBST $@" 317 @$(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.conf.5.in mke2fs.conf.5 318 319e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in 320 @echo " SUBST $@" 321 @$(SUBSTITUTE_UPTIME) $(srcdir)/e2label.8.in e2label.8 322 323e2undo.8: $(DEP_SUBSTITUTE) $(srcdir)/e2undo.8.in 324 @echo " SUBST $@" 325 @$(SUBSTITUTE_UPTIME) $(srcdir)/e2undo.8.in e2undo.8 326 327findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in 328 @echo " SUBST $@" 329 @$(SUBSTITUTE_UPTIME) $(srcdir)/findfs.8.in findfs.8 330 331e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in 332 @echo " SUBST $@" 333 @$(SUBSTITUTE_UPTIME) $(srcdir)/e2image.8.in e2image.8 334 335dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in 336 @echo " SUBST $@" 337 @$(SUBSTITUTE_UPTIME) $(srcdir)/dumpe2fs.8.in dumpe2fs.8 338 339badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in 340 @echo " SUBST $@" 341 @$(SUBSTITUTE_UPTIME) $(srcdir)/badblocks.8.in badblocks.8 342 343fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in 344 @echo " SUBST $@" 345 @$(SUBSTITUTE_UPTIME) $(srcdir)/fsck.8.in fsck.8 346 347blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in 348 @echo " SUBST $@" 349 @$(SUBSTITUTE_UPTIME) $(srcdir)/blkid.8.in blkid.8 350 351logsave.8: $(DEP_SUBSTITUTE) $(srcdir)/logsave.8.in 352 @echo " SUBST $@" 353 @$(SUBSTITUTE_UPTIME) $(srcdir)/logsave.8.in logsave.8 354 355uuidd.8: $(DEP_SUBSTITUTE) $(srcdir)/uuidd.8.in 356 @echo " SUBST $@" 357 @$(SUBSTITUTE_UPTIME) $(srcdir)/uuidd.8.in uuidd.8 358 359chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in 360 @echo " SUBST $@" 361 @$(SUBSTITUTE_UPTIME) $(srcdir)/chattr.1.in chattr.1 362 363lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in 364 @echo " SUBST $@" 365 @$(SUBSTITUTE_UPTIME) $(srcdir)/lsattr.1.in lsattr.1 366 367uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in 368 @echo " SUBST $@" 369 @$(SUBSTITUTE_UPTIME) $(srcdir)/uuidgen.1.in uuidgen.1 370 371blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in 372 @echo " SUBST $@" 373 @$(SUBSTITUTE_UPTIME) $(srcdir)/blkid.1.in blkid.1 374 375filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in 376 @echo " SUBST $@" 377 @$(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8 378 379installdirs: 380 @echo " MKINSTALLDIRS $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)" 381 @$(MKINSTALLDIRS) $(DESTDIR)$(sbindir) \ 382 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \ 383 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \ 384 $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \ 385 $(DESTDIR)$(libdir) $(DESTDIR)/$(root_sysconfdir) 386 387install: all $(SMANPAGES) $(UMANPAGES) installdirs 388 @for i in $(SPROGS); do \ 389 echo " INSTALL $(root_sbindir)/$$i"; \ 390 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \ 391 done 392 @for i in $(USPROGS); do \ 393 echo " INSTALL $(sbindir)/$$i"; \ 394 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \ 395 done 396 @echo " LINK $(root_sbindir)/mkfs.ext2" 397 @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \ 398 $(DESTDIR)$(root_sbindir)/mkfs.ext2 399 @echo " LINK $(root_sbindir)/mkfs.ext3" 400 @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \ 401 $(DESTDIR)$(root_sbindir)/mkfs.ext3 402 @echo " LINK $(root_sbindir)/mkfs.ext4" 403 @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \ 404 $(DESTDIR)$(root_sbindir)/mkfs.ext4 405 @echo " LINK $(root_sbindir)/mkfs.ext4dev" 406 @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \ 407 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev 408 @echo " LINK $(root_sbindir)/e2label" 409 @$(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \ 410 $(DESTDIR)$(root_sbindir)/e2label 411 @if test -n "$(FINDFS_LINK)"; then \ 412 echo " LINK $(root_sbindir)/findfs"; \ 413 $(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \ 414 $(DESTDIR)$(root_sbindir)/$(FINDFS_LINK); \ 415 fi 416 @for i in $(UPROGS); do \ 417 echo " INSTALL $(bindir)/$$i"; \ 418 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \ 419 done 420 @for i in $(LPROGS); do \ 421 echo " INSTALL $(libdir)/$$i"; \ 422 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libdir)/$$i; \ 423 done 424 @for i in $(SMANPAGES); do \ 425 for j in $(COMPRESS_EXT); do \ 426 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \ 427 done; \ 428 echo " INSTALL_DATA $(man8dir)/$$i"; \ 429 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \ 430 done 431 @$(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \ 432 $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz 433 @echo " LINK mkfs.ext2.8" 434 @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \ 435 $(DESTDIR)$(man8dir)/mkfs.ext2.8 436 @echo " LINK mkfs.ext3.8" 437 @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \ 438 $(DESTDIR)$(man8dir)/mkfs.ext3.8 439 @echo " LINK mkfs.ext4.8" 440 @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \ 441 $(DESTDIR)$(man8dir)/mkfs.ext4.8 442 @echo " LINK mkfs.ext4dev.8" 443 @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \ 444 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8 445 @for i in $(UMANPAGES); do \ 446 for j in $(COMPRESS_EXT); do \ 447 $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \ 448 done; \ 449 echo " INSTALL_DATA $(man1dir)/$$i"; \ 450 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \ 451 done 452 @for i in $(FMANPAGES); do \ 453 for j in $(COMPRESS_EXT); do \ 454 $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \ 455 done; \ 456 echo " INSTALL_DATA $(man5dir)/$$i"; \ 457 $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \ 458 done 459 @if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \ 460 if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \ 461 $(srcdir)/mke2fs.conf; then \ 462 true; \ 463 else \ 464 if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \ 465 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \ 466 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \ 467 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \ 468 echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \ 469 echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \ 470 else \ 471 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \ 472 mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \ 473 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \ 474 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \ 475 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \ 476 echo "Your mke2fs.conf is too old. Backing up old version in"; \ 477 echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old. Please check to see"; \ 478 echo "if you have any local customizations that you wish to preserve."; \ 479 fi; \ 480 echo " "; \ 481 fi; \ 482 else \ 483 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \ 484 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \ 485 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \ 486 fi 487 488install-strip: install 489 @for i in $(SPROGS); do \ 490 echo " STRIP $(root_sbindir)/$$i"; \ 491 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \ 492 done 493 @for i in $(USPROGS); do \ 494 echo " STRIP $(sbindir)/$$i"; \ 495 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \ 496 done 497 498uninstall: 499 for i in $(SPROGS); do \ 500 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \ 501 done 502 for i in $(USPROGS); do \ 503 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \ 504 done 505 for i in $(LPROGS); do \ 506 $(RM) -f $(DESTDIR)$(libdir)/$$i; \ 507 done 508 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \ 509 $(DESTDIR)$(root_sbindir)/mkfs.ext3 \ 510 $(DESTDIR)$(root_sbindir)/mkfs.ext4 \ 511 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev 512 for i in $(UPROGS); do \ 513 $(RM) -f $(DESTDIR)$(bindir)/$$i; \ 514 done 515 for i in $(SMANPAGES); do \ 516 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \ 517 done 518 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \ 519 $(DESTDIR)$(man8dir)/mkfs.ext3.8 \ 520 $(DESTDIR)$(man8dir)/mkfs.ext4.8 \ 521 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8 522 for i in $(UMANPAGES); do \ 523 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \ 524 done 525 for i in $(FINDFS_LINK) e2label ; do \ 526 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \ 527 done 528 for i in $(FMANPAGES); do \ 529 $(RM) -f $(DESTDIR)$(man5dir)/$$i; \ 530 done 531 if cmp -s $(srcdir)/mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \ 532 $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \ 533 fi 534 535clean: 536 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \ 537 $(FMANPAGES) \ 538 base_device base_device.out mke2fs.static filefrag \ 539 e2initrd_helper partinfo prof_err.[ch] default_profile.c \ 540 uuidd e2image tune2fs.static tst_ismounted fsck.profiled \ 541 blkid.profiled tune2fs.profiled e2image.profiled \ 542 e2undo.profiled mke2fs.profiled dumpe2fs.profiled \ 543 logsave.profiled filefrag.profiled uuidgen.profiled \ 544 uuidd.profiled e2image.profiled \ 545 profiled/*.o \#* *.s *.o *.a *~ core gmon.out 546 547mostlyclean: clean 548distclean: clean 549 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old 550 551# +++ Dependency line eater +++ 552# 553# Makefile dependencies follow. This must be the last section in 554# the Makefile.in file 555# 556tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 557 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ 558 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 559 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 560 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \ 561 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \ 562 $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \ 563 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h \ 564 $(srcdir)/util.h $(top_srcdir)/lib/blkid/blkid.h \ 565 $(top_builddir)/lib/blkid/blkid_types.h $(top_srcdir)/version.h \ 566 $(srcdir)/nls-enable.h 567mklost+found.o: $(srcdir)/mklost+found.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 568 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \ 569 $(srcdir)/nls-enable.h 570mke2fs.o: $(srcdir)/mke2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 571 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \ 572 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \ 573 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ 574 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ 575 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ 576 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/util.h \ 577 $(srcdir)/../e2fsck/profile.h prof_err.h $(top_srcdir)/version.h \ 578 $(srcdir)/nls-enable.h 579chattr.o: $(srcdir)/chattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 580 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \ 581 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 582 $(top_srcdir)/version.h $(srcdir)/nls-enable.h 583lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 584 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \ 585 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 586 $(top_srcdir)/version.h $(srcdir)/nls-enable.h 587dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 588 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ 589 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 590 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 591 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \ 592 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \ 593 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \ 594 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/lib/uuid/uuid.h \ 595 $(top_srcdir)/version.h $(srcdir)/nls-enable.h 596badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \ 597 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 598 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ 599 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 600 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 601 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \ 602 $(srcdir)/nls-enable.h 603fsck.o: $(srcdir)/fsck.c $(top_srcdir)/version.h $(srcdir)/nls-enable.h \ 604 $(srcdir)/fsck.h $(top_srcdir)/lib/blkid/blkid.h \ 605 $(top_builddir)/lib/blkid/blkid_types.h 606util.o: $(srcdir)/util.c $(top_srcdir)/lib/et/com_err.h \ 607 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 608 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ 609 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ 610 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ 611 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/nls-enable.h \ 612 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \ 613 $(srcdir)/util.h 614uuidgen.o: $(srcdir)/uuidgen.c $(top_srcdir)/lib/uuid/uuid.h \ 615 $(srcdir)/nls-enable.h 616blkid.o: $(srcdir)/blkid.c $(top_srcdir)/lib/blkid/blkid.h \ 617 $(top_builddir)/lib/blkid/blkid_types.h 618logsave.o: $(srcdir)/logsave.c 619filefrag.o: $(srcdir)/filefrag.c 620base_device.o: $(srcdir)/base_device.c $(srcdir)/fsck.h 621ismounted.o: $(srcdir)/ismounted.c $(top_srcdir)/lib/et/com_err.h 622profile.o: $(srcdir)/../e2fsck/profile.c $(top_srcdir)/lib/et/com_err.h \ 623 $(srcdir)/../e2fsck/profile.h prof_err.h 624e2undo.o: $(srcdir)/e2undo.c $(top_srcdir)/lib/ext2fs/tdb.h 625