| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved. |
| 3 |
# |
| 4 |
|
| 5 |
TOPDIR = .. |
| 6 |
include $(TOPDIR)/include/builddefs |
| 7 |
|
| 8 |
LSRCFILES = README |
| 9 |
|
| 10 |
LTCOMMAND = xfs_repair |
| 11 |
|
| 12 |
HFILES = \ |
| 13 |
agheader.h \ |
| 14 |
agbtree.h \ |
| 15 |
attr_repair.h \ |
| 16 |
avl.h \ |
| 17 |
bulkload.h \ |
| 18 |
bmap.h \ |
| 19 |
bmap_repair.h \ |
| 20 |
btree.h \ |
| 21 |
da_util.h \ |
| 22 |
dinode.h \ |
| 23 |
dir2.h \ |
| 24 |
err_protos.h \ |
| 25 |
globals.h \ |
| 26 |
incore.h \ |
| 27 |
pptr.h \ |
| 28 |
prefetch.h \ |
| 29 |
progress.h \ |
| 30 |
protos.h \ |
| 31 |
quotacheck.h \ |
| 32 |
rcbag_btree.h \ |
| 33 |
rcbag.h \ |
| 34 |
rmap.h \ |
| 35 |
rt.h \ |
| 36 |
scan.h \ |
| 37 |
slab.h \ |
| 38 |
strblobs.h \ |
| 39 |
threads.h \ |
| 40 |
versions.h |
| 41 |
|
| 42 |
CFILES = \ |
| 43 |
agheader.c \ |
| 44 |
agbtree.c \ |
| 45 |
attr_repair.c \ |
| 46 |
avl.c \ |
| 47 |
bulkload.c \ |
| 48 |
bmap.c \ |
| 49 |
bmap_repair.c \ |
| 50 |
btree.c \ |
| 51 |
da_util.c \ |
| 52 |
dino_chunks.c \ |
| 53 |
dinode.c \ |
| 54 |
dir2.c \ |
| 55 |
globals.c \ |
| 56 |
incore_bmc.c \ |
| 57 |
incore.c \ |
| 58 |
incore_ext.c \ |
| 59 |
incore_ino.c \ |
| 60 |
init.c \ |
| 61 |
phase1.c \ |
| 62 |
phase2.c \ |
| 63 |
phase3.c \ |
| 64 |
phase4.c \ |
| 65 |
phase5.c \ |
| 66 |
phase6.c \ |
| 67 |
phase7.c \ |
| 68 |
pptr.c \ |
| 69 |
prefetch.c \ |
| 70 |
progress.c \ |
| 71 |
quotacheck.c \ |
| 72 |
rcbag_btree.c \ |
| 73 |
rcbag.c \ |
| 74 |
rmap.c \ |
| 75 |
rt.c \ |
| 76 |
rtrefcount_repair.c \ |
| 77 |
rtrmap_repair.c \ |
| 78 |
sb.c \ |
| 79 |
scan.c \ |
| 80 |
slab.c \ |
| 81 |
strblobs.c \ |
| 82 |
threads.c \ |
| 83 |
versions.c \ |
| 84 |
zoned.c \ |
| 85 |
xfs_repair.c |
| 86 |
|
| 87 |
LLDLIBS = $(LIBXFS) $(LIBXLOG) $(LIBXCMD) $(LIBFROG) $(LIBUUID) $(LIBRT) \ |
| 88 |
$(LIBBLKID) $(LIBURCU) $(LIBPTHREAD) |
| 89 |
LTDEPENDENCIES = $(LIBXFS) $(LIBXLOG) $(LIBXCMD) $(LIBFROG) |
| 90 |
LLDFLAGS = -static-libtool-libs |
| 91 |
|
| 92 |
default: depend $(LTCOMMAND) |
| 93 |
|
| 94 |
globals.o: globals.h |
| 95 |
|
| 96 |
include $(BUILDRULES) |
| 97 |
|
| 98 |
# |
| 99 |
# Tracing flags: |
| 100 |
# -DXR_INODE_TRACE inode processing |
| 101 |
# -DXR_DIR_TRACE directory processing |
| 102 |
# -DXR_DUP_TRACE duplicate extent processing |
| 103 |
# -DXR_BCNT_TRACE incore bcnt freespace btree building |
| 104 |
# -DXR_BLD_FREE_TRACE building on-disk freespace (bcnt/bno) btrees |
| 105 |
# -DXR_BLD_INO_TRACE building on-disk inode allocation btrees |
| 106 |
# -DXR_BLD_ADD_EXTENT track phase 5 block extent creation |
| 107 |
# -DXR_BCKPTR_DBG parent list debugging info |
| 108 |
# -DXR_PF_TRACE prefetch trace |
| 109 |
# |
| 110 |
#CFLAGS += ... |
| 111 |
|
| 112 |
install: default |
| 113 |
$(INSTALL) -m 755 -d $(PKG_SBIN_DIR) |
| 114 |
$(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_SBIN_DIR) |
| 115 |
install-dev: |
| 116 |
|
| 117 |
-include .dep |