]>
Commit | Line | Data |
---|---|---|
2bd0ea18 | 1 | # |
e80aa729 | 2 | # Copyright (c) 2000-2006 Silicon Graphics, Inc. |
f302e9e4 | 3 | # All Rights Reserved. |
dfc130f3 | 4 | # |
f302e9e4 NS |
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 | |
2bd0ea18 | 7 | # published by the Free Software Foundation. |
dfc130f3 | 8 | # |
2bd0ea18 NS |
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. | |
dfc130f3 | 12 | # |
f302e9e4 NS |
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 | |
2bd0ea18 NS |
16 | # |
17 | ||
18 | TOPDIR = .. | |
19 | include $(TOPDIR)/include/builddefs | |
20 | ||
77d98709 | 21 | LIBHFILES = libxfs.h \ |
cebd3912 | 22 | libxlog.h \ |
82c3a179 | 23 | libxcmd.h \ |
cebd3912 DC |
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 \ | |
47fe8b7e | 32 | xfs_btree_trace.h \ |
b626fb59 | 33 | xfs_inode.h \ |
cc085d77 DC |
34 | xfs_log_recover.h \ |
35 | xfs_metadump.h \ | |
b626fb59 | 36 | xfs_mount.h \ |
4a32b9e9 DC |
37 | xfs_quota_defs.h \ |
38 | xfs_sb.h \ | |
39 | xfs_shared.h \ | |
b626fb59 | 40 | xfs_trace.h \ |
77d98709 CH |
41 | xfs_trans.h \ |
42 | command.h \ | |
43 | input.h \ | |
44 | path.h \ | |
dcabd4e7 | 45 | project.h \ |
4a32b9e9 | 46 | platform_defs.h |
77a20f18 | 47 | |
cebd3912 DC |
48 | HFILES = handle.h \ |
49 | jdm.h \ | |
50 | $(PKG_PLATFORM).h \ | |
cebd3912 | 51 | xfs.h \ |
5711848a CH |
52 | xqm.h \ |
53 | xfs_arch.h | |
cebd3912 | 54 | |
744a8624 | 55 | PHFILES = darwin.h freebsd.h linux.h gnukfreebsd.h |
a5da4d17 | 56 | LSRCFILES = $(shell echo $(PHFILES) | sed -e "s/$(PKG_PLATFORM).h//g") |
07c561fe | 57 | LSRCFILES += platform_defs.h.in builddefs.in buildmacros buildrules install-sh |
636b4d91 DC |
58 | LSRCFILES += $(DKHFILES) $(LIBHFILES) |
59 | LDIRT = disk | |
60 | LDIRDIRT = xfs | |
2bd0ea18 | 61 | |
b08338d7 | 62 | default: disk |
31e375e6 | 63 | |
636b4d91 | 64 | disk: |
35714853 DC |
65 | @echo " [LN] $@" |
66 | $(Q)$(LN_S) . $@ | |
721ae57d | 67 | |
b08338d7 DC |
68 | include $(BUILDRULES) |
69 | ||
636b4d91 | 70 | # set up include/xfs header directory |
6b803e5a | 71 | install-headers: $(addsuffix -hdrs, $(PHFILES) $(DKHFILES) $(HFILES)) |
636b4d91 | 72 | |
7af0c6c3 | 73 | %-hdrs: |
f4a2ea00 | 74 | $(Q)$(LN_S) -f $(CURDIR)/$* xfs/$* |
636b4d91 | 75 | |
b08338d7 | 76 | install: default |
fc49813f | 77 | $(INSTALL) -m 755 -d $(PKG_INC_DIR) |
b08338d7 DC |
78 | |
79 | install-dev: install | |
fc49813f | 80 | $(INSTALL) -m 644 $(HFILES) $(PKG_INC_DIR) |