]>
Commit | Line | Data |
---|---|---|
2bd0ea18 | 1 | # |
541a1d4f | 2 | # Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. |
dfc130f3 | 3 | # |
2bd0ea18 NS |
4 | |
5 | TOPDIR = .. | |
6 | include $(TOPDIR)/include/builddefs | |
7 | ||
e246ba5f | 8 | LTCOMMAND = xfs_io |
d347f827 | 9 | LSRCFILES = xfs_bmap.sh xfs_freeze.sh xfs_mkfile.sh |
3d93ccb7 NS |
10 | HFILES = init.h io.h |
11 | CFILES = init.c \ | |
6e3140c7 | 12 | attr.c bmap.c file.c freeze.c fsync.c getrusage.c imap.c mmap.c \ |
74043ab2 | 13 | open.c parent.c pread.c prealloc.c pwrite.c shutdown.c truncate.c |
48c46ee3 | 14 | |
74043ab2 TS |
15 | LLDLIBS = $(LIBXCMD) $(LIBHANDLE) |
16 | LTDEPENDENCIES = $(LIBXCMD) $(LIBHANDLE) | |
3d93ccb7 NS |
17 | LLDFLAGS = -static |
18 | ||
0bba1a49 NS |
19 | ifeq ($(HAVE_FADVISE),yes) |
20 | CFILES += fadvise.c | |
21 | LCFLAGS += -DHAVE_FADVISE | |
48c46ee3 | 22 | else |
0bba1a49 NS |
23 | LSRCFILES += fadvise.c |
24 | endif | |
25 | ||
26 | ifeq ($(HAVE_MADVISE),yes) | |
27 | CFILES += madvise.c | |
28 | LCFLAGS += -DHAVE_MADVISE | |
29 | else | |
30 | LSRCFILES += madvise.c | |
31 | endif | |
32 | ||
33 | ifeq ($(HAVE_MINCORE),yes) | |
34 | CFILES += mincore.c | |
35 | LCFLAGS += -DHAVE_MINCORE | |
36 | else | |
37 | LSRCFILES += mincore.c | |
38 | endif | |
39 | ||
40 | ifeq ($(HAVE_SENDFILE),yes) | |
41 | CFILES += sendfile.c | |
42 | LCFLAGS += -DHAVE_SENDFILE | |
43 | else | |
44 | LSRCFILES += sendfile.c | |
c0211f67 NS |
45 | endif |
46 | ||
258b00ea | 47 | ifeq ($(PKG_PLATFORM),irix) |
6e3140c7 | 48 | LSRCFILES += inject.c resblks.c |
258b00ea | 49 | else |
6e3140c7 NS |
50 | CFILES += inject.c resblks.c |
51 | LCFLAGS += -DHAVE_INJECT -DHAVE_RESBLKS | |
48c46ee3 | 52 | endif |
e246ba5f NS |
53 | |
54 | ifeq ($(ENABLE_READLINE),yes) | |
541a1d4f | 55 | LLDLIBS += $(LIBREADLINE) $(LIBTERMCAP) |
e246ba5f | 56 | endif |
2bd0ea18 | 57 | |
d4b9ebda | 58 | ifeq ($(ENABLE_EDITLINE),yes) |
541a1d4f | 59 | LLDLIBS += $(LIBEDITLINE) $(LIBTERMCAP) |
d4b9ebda NS |
60 | endif |
61 | ||
c0b5232a ES |
62 | ifeq ($(HAVE_FALLOCATE),yes) |
63 | LCFLAGS += -DHAVE_FALLOCATE | |
64 | endif | |
65 | ||
f937adac | 66 | default: $(LTCOMMAND) |
2bd0ea18 NS |
67 | |
68 | include $(BUILDRULES) | |
69 | ||
70 | install: default | |
9a5c6ff4 AE |
71 | $(INSTALL) -m 755 -d $(PKG_BIN_DIR) |
72 | $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_BIN_DIR) | |
73 | $(LTINSTALL) -m 755 xfs_bmap.sh $(PKG_BIN_DIR)/xfs_bmap | |
74 | $(LTINSTALL) -m 755 xfs_freeze.sh $(PKG_BIN_DIR)/xfs_freeze | |
75 | $(LTINSTALL) -m 755 xfs_mkfile.sh $(PKG_BIN_DIR)/xfs_mkfile | |
fc49813f | 76 | install-dev: |