]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/Makefile
xfs_repair: move common dir2 and attr_repair code to da_util.c
[thirdparty/xfsprogs-dev.git] / repair / Makefile
1 #
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 = agheader.h attr_repair.h avl.h avl64.h bmap.h btree.h \
13 da_util.h dinode.h dir2.h err_protos.h globals.h incore.h protos.h \
14 rt.h progress.h scan.h versions.h prefetch.h threads.h
15
16 CFILES = agheader.c attr_repair.c avl.c avl64.c bmap.c btree.c \
17 da_util.c dino_chunks.c dinode.c dir2.c globals.c incore.c \
18 incore_bmc.c init.c incore_ext.c incore_ino.c phase1.c \
19 phase2.c phase3.c phase4.c phase5.c phase6.c phase7.c \
20 progress.c prefetch.c rt.c sb.c scan.c threads.c \
21 versions.c xfs_repair.c
22
23 LLDLIBS = $(LIBXFS) $(LIBXLOG) $(LIBUUID) $(LIBRT) $(LIBPTHREAD)
24 LTDEPENDENCIES = $(LIBXFS) $(LIBXLOG)
25 LLDFLAGS = -static-libtool-libs
26
27 default: depend $(LTCOMMAND)
28
29 globals.o: globals.h
30
31 include $(BUILDRULES)
32
33 #
34 # Tracing flags:
35 # -DXR_INODE_TRACE inode processing
36 # -DXR_DIR_TRACE directory processing
37 # -DXR_DUP_TRACE duplicate extent processing
38 # -DXR_BCNT_TRACE incore bcnt freespace btree building
39 # -DXR_BLD_FREE_TRACE building on-disk freespace (bcnt/bno) btrees
40 # -DXR_BLD_INO_TRACE building on-disk inode allocation btrees
41 # -DXR_BLD_ADD_EXTENT track phase 5 block extent creation
42 # -DXR_BCKPTR_DBG parent list debugging info
43 # -DXR_PF_TRACE prefetch trace
44 #
45 #CFLAGS += ...
46
47 install: default
48 $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
49 $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
50 install-dev:
51
52 -include .dep