]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/Makefile
38e0f6421cfb9cc735475839a669817a57be4c8f
[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 dinode.h dir.h \
13 dir2.h err_protos.h globals.h incore.h protos.h rt.h \
14 progress.h scan.h versions.h prefetch.h radix-tree.h threads.h
15
16 CFILES = agheader.c attr_repair.c avl.c avl64.c bmap.c dino_chunks.c \
17 dinode.c dir.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 radix-tree.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
26
27 default: $(LTCOMMAND)
28
29 globals.o: globals.h
30
31 include $(BUILDRULES)
32
33 #
34 # Tracing flags:
35 # -DXR_BMAP_DBG incore block bitmap debugging
36 # -DXR_INODE_TRACE inode processing
37 # -DXR_BMAP_TRACE bmap btree processing
38 # -DXR_DIR_TRACE directory processing
39 # -DXR_DUP_TRACE duplicate extent processing
40 # -DXR_BCNT_TRACE incore bcnt freespace btree building
41 # -DXR_BLD_FREE_TRACE building on-disk freespace (bcnt/bno) btrees
42 # -DXR_BLD_INO_TRACE building on-disk inode allocation btrees
43 # -DXR_BLD_ADD_EXTENT track phase 5 block extent creation
44 # -DXR_BCKPTR_DBG parent list debugging info
45 # -DXR_PF_TRACE prefetch trace
46 #
47 #CFLAGS += ...
48
49 install: default
50 $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
51 $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_SBIN_DIR)
52 install-dev: