]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - libxfs/Makefile
librt depends on libpthread. libxfs needs librt
[thirdparty/xfsprogs-dev.git] / libxfs / Makefile
1 #
2 # Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
3 #
4
5 TOPDIR = ..
6 include $(TOPDIR)/include/builddefs
7
8 LTLIBRARY = libxfs.la
9 LT_CURRENT = 0
10 LT_REVISION = 0
11 LT_AGE = 0
12
13 HFILES = xfs.h init.h
14 CFILES = cache.c init.c kmem.c logitem.c rdwr.c trans.c util.c \
15 xfs_alloc.c xfs_ialloc.c xfs_inode.c xfs_btree.c xfs_alloc_btree.c \
16 xfs_ialloc_btree.c xfs_bmap_btree.c xfs_da_btree.c \
17 xfs_dir2.c xfs_dir2_leaf.c xfs_attr_leaf.c xfs_dir2_block.c \
18 xfs_dir2_node.c xfs_dir2_data.c xfs_dir2_sf.c xfs_bmap.c \
19 xfs_mount.c xfs_rtalloc.c xfs_trans.c xfs_attr.c
20
21 CFILES += $(PKG_PLATFORM).c
22 PCFILES = darwin.c freebsd.c irix.c linux.c
23 LSRCFILES = $(shell echo $(PCFILES) | sed -e "s/$(PKG_PLATFORM).c//g")
24
25 #
26 # Tracing flags:
27 # -DIO_DEBUG reads and writes of buffers
28 # -DMEM_DEBUG all zone memory use
29 # -DLI_DEBUG log item (ino/buf) manipulation
30 # -DXACT_DEBUG transaction state changes
31 #
32 #LCFLAGS +=
33
34 FCFLAGS = -I.
35
36 LTLIBS = $(LIBPTHREAD) $(LIBRT)
37
38 # don't try linking xfs_repair with a debug libxfs.
39 DEBUG = -DNDEBUG
40
41 default: ltdepend $(LTLIBRARY)
42
43 include $(BUILDRULES)
44
45 install: default
46
47 install-dev: default
48
49 install-qa: default
50
51 -include .dep