]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/builddefs.in
Ongoing xfs_repair/libxfs scaling work - incorporate lio_listio detection into the...
[thirdparty/xfsprogs-dev.git] / include / builddefs.in
CommitLineData
2bd0ea18 1#
82805b60 2# Copyright (c) 2004-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# @configure_input@
18#
19
6c6508ec
NS
20ifndef _BUILDDEFS_INCLUDED_
21_BUILDDEFS_INCLUDED_ = 1
286ceebb 22
2bd0ea18
NS
23DEBUG = @debug_build@
24OPTIMIZER = @opt_build@
25MALLOCLIB = @malloc_lib@
4d32d744 26LOADERFLAGS = @LDFLAGS@
2bd0ea18 27
6ec3f6ba 28LIBRT = @librt@
639231be 29LIBUUID = @libuuid@
949c0f10 30LIBPTHREAD = @libpthread@
541a1d4f 31LIBTERMCAP = @libtermcap@
d4b9ebda 32LIBEDITLINE = @libeditline@
e246ba5f 33LIBREADLINE = @libreadline@
f937adac 34LIBXFS = $(TOPDIR)/libxfs/libxfs.la
3d93ccb7 35LIBXCMD = $(TOPDIR)/libxcmd/libxcmd.la
d321ceac 36LIBXLOG = $(TOPDIR)/libxlog/libxlog.la
f937adac
NS
37LIBDISK = $(TOPDIR)/libdisk/libdisk.la
38LIBHANDLE = $(TOPDIR)/libhandle/libhandle.la
fc49813f 39
9440d84d
NS
40DK_INC_DIR = @includedir@/disk
41
e572fea0
NS
42prefix = @prefix@
43exec_prefix = @exec_prefix@
44
9440d84d 45PKG_NAME = @pkg_name@
93d9f139
NS
46PKG_USER = @pkg_user@
47PKG_GROUP = @pkg_group@
9440d84d
NS
48PKG_RELEASE = @pkg_release@
49PKG_VERSION = @pkg_version@
50PKG_PLATFORM = @pkg_platform@
51PKG_DISTRIBUTION= @pkg_distribution@
9440d84d
NS
52PKG_BIN_DIR = @bindir@
53PKG_SBIN_DIR = @sbindir@
82805b60
TS
54PKG_LIB_DIR = @libdir@@libdirsuffix@
55PKG_DEVLIB_DIR = @libexecdir@@libdirsuffix@
9440d84d
NS
56PKG_INC_DIR = @includedir@/xfs
57PKG_MAN_DIR = @mandir@
58PKG_DOC_DIR = @datadir@/doc/@pkg_name@
59PKG_LOCALE_DIR = @datadir@/locale
2bd0ea18 60
9440d84d 61CC = @cc@
9440d84d
NS
62AWK = @awk@
63SED = @sed@
64TAR = @tar@
65ZIP = @zip@
66MAKE = @make@
67ECHO = @echo@
16c44ed2 68SORT = @sort@
9440d84d
NS
69LN_S = @LN_S@
70LIBTOOL = @LIBTOOL@
71MAKEDEPEND = @makedepend@
72
73MSGFMT = @msgfmt@
74MSGMERGE = @msgmerge@
9440d84d
NS
75
76RPM = @rpm@
77RPMBUILD = @rpmbuild@
78RPM_VERSION = @rpm_version@
f937adac 79
82805b60
TS
80ENABLE_SHARED = @enable_shared@
81ENABLE_GETTEXT = @enable_gettext@
82ENABLE_EDITLINE = @enable_editline@
83ENABLE_READLINE = @enable_readline@
84
9440d84d
NS
85HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@
86
0bba1a49
NS
87HAVE_FADVISE = @have_fadvise@
88HAVE_MADVISE = @have_madvise@
89HAVE_MINCORE = @have_mincore@
90HAVE_SENDFILE = @have_sendfile@
cfe6e3f0
NS
91HAVE_GETMNTENT = @have_getmntent@
92HAVE_GETMNTINFO = @have_getmntinfo@
0bba1a49 93
9440d84d
NS
94ifeq ($(PKG_PLATFORM),linux)
95PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
93d9f139
NS
96endif
97ifeq ($(PKG_PLATFORM),darwin)
9440d84d
NS
98PCFLAGS = -traditional-cpp
99endif
93d9f139
NS
100ifeq ($(PKG_PLATFORM),irix)
101PLDLIBS = -ldisk -lgen
102endif
4f1631ae
RC
103ifeq ($(PKG_PLATFORM),freebsd)
104PLDLIBS = -L/usr/local/lib -lintl
1707056a 105PCFLAGS = -I/usr/local/include
4f1631ae 106endif
9440d84d 107
a85e1c6b 108GCFLAGS = $(OPTIMIZER) $(DEBUG) -funsigned-char -fno-strict-aliasing -Wall \
062998e3
NS
109 -DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\" \
110 -DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include
f937adac 111
1bdd986b
NS
112# First, Global, Platform, Local CFLAGS
113CFLAGS += $(FCFLAGS) $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
2bd0ea18 114
3ded4129 115include $(TOPDIR)/include/buildmacros
286ceebb
NS
116
117endif
118
119#
120# For targets that should always be rebuilt,
121# define a target that is never up-to-date.
122# Targets needing this should depend on $(_FORCE)
123_FORCE = __force_build