]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - include/Makefile
xfs: refactor xfs_trans_roll
[thirdparty/xfsprogs-dev.git] / include / Makefile
1 #
2 # Copyright (c) 2000-2006 Silicon Graphics, Inc.
3 # All Rights Reserved.
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License as
7 # published by the Free Software Foundation.
8 #
9 # This program is distributed in the hope that it would be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write the Free Software Foundation,
15 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 #
17
18 TOPDIR = ..
19 include $(TOPDIR)/include/builddefs
20
21 LIBHFILES = libxfs.h \
22 libxlog.h \
23 libxcmd.h \
24 atomic.h \
25 bitops.h \
26 cache.h \
27 hlist.h \
28 kmem.h \
29 list.h \
30 parent.h \
31 radix-tree.h \
32 xfs_btree_trace.h \
33 xfs_inode.h \
34 xfs_log_recover.h \
35 xfs_metadump.h \
36 xfs_mount.h \
37 xfs_quota_defs.h \
38 xfs_sb.h \
39 xfs_shared.h \
40 xfs_trace.h \
41 xfs_trans.h \
42 command.h \
43 input.h \
44 path.h \
45 project.h \
46 platform_defs.h
47
48 HFILES = handle.h \
49 jdm.h \
50 $(PKG_PLATFORM).h \
51 xfs.h \
52 xqm.h \
53 xfs_arch.h
54
55 PHFILES = darwin.h freebsd.h linux.h gnukfreebsd.h
56 LSRCFILES = $(shell echo $(PHFILES) | sed -e "s/$(PKG_PLATFORM).h//g")
57 LSRCFILES += platform_defs.h.in builddefs.in buildmacros buildrules install-sh
58 LSRCFILES += $(DKHFILES) $(LIBHFILES)
59 LDIRT = disk
60 LDIRDIRT = xfs
61
62 default: disk
63
64 disk:
65 @echo " [LN] $@"
66 $(Q)$(LN_S) . $@
67
68 include $(BUILDRULES)
69
70 # set up include/xfs header directory
71 install-headers: $(addsuffix -hdrs, $(PHFILES) $(DKHFILES) $(HFILES))
72
73 %-hdrs:
74 $(Q)$(LN_S) -f $(CURDIR)/$* xfs/$*
75
76 install: default
77 $(INSTALL) -m 755 -d $(PKG_INC_DIR)
78
79 install-dev: install
80 $(INSTALL) -m 644 $(HFILES) $(PKG_INC_DIR)