]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/builddefs.in
libxfs: fix fsmap.h inclusion
[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@
717e6142 27LTLDFLAGS = @LDFLAGS@
5c0599b7 28CFLAGS = @CFLAGS@ -D_FILE_OFFSET_BITS=64
c4cd2572 29BUILD_CFLAGS = @BUILD_CFLAGS@ -D_FILE_OFFSET_BITS=64
2bd0ea18 30
6ec3f6ba 31LIBRT = @librt@
639231be 32LIBUUID = @libuuid@
949c0f10 33LIBPTHREAD = @libpthread@
541a1d4f 34LIBTERMCAP = @libtermcap@
d4b9ebda 35LIBEDITLINE = @libeditline@
e246ba5f 36LIBREADLINE = @libreadline@
e4da9941 37LIBBLKID = @libblkid@
f937adac 38LIBXFS = $(TOPDIR)/libxfs/libxfs.la
3d93ccb7 39LIBXCMD = $(TOPDIR)/libxcmd/libxcmd.la
d321ceac 40LIBXLOG = $(TOPDIR)/libxlog/libxlog.la
f937adac 41LIBHANDLE = $(TOPDIR)/libhandle/libhandle.la
fc49813f 42
9440d84d 43PKG_NAME = @pkg_name@
93d9f139
NS
44PKG_USER = @pkg_user@
45PKG_GROUP = @pkg_group@
9440d84d
NS
46PKG_RELEASE = @pkg_release@
47PKG_VERSION = @pkg_version@
48PKG_PLATFORM = @pkg_platform@
49PKG_DISTRIBUTION= @pkg_distribution@
595e27db
CH
50
51prefix = @prefix@
52exec_prefix = @exec_prefix@
53datarootdir = @datarootdir@
54top_builddir = @top_builddir@
55
9440d84d 56PKG_SBIN_DIR = @sbindir@
595e27db
CH
57PKG_ROOT_SBIN_DIR = @root_sbindir@
58PKG_ROOT_LIB_DIR= @root_libdir@@libdirsuffix@
82805b60 59PKG_LIB_DIR = @libdir@@libdirsuffix@
9440d84d 60PKG_INC_DIR = @includedir@/xfs
595e27db 61DK_INC_DIR = @includedir@/disk
9440d84d
NS
62PKG_MAN_DIR = @mandir@
63PKG_DOC_DIR = @datadir@/doc/@pkg_name@
64PKG_LOCALE_DIR = @datadir@/locale
2bd0ea18 65
9440d84d 66CC = @cc@
e14913c1 67BUILD_CC = @BUILD_CC@
9440d84d
NS
68AWK = @awk@
69SED = @sed@
70TAR = @tar@
71ZIP = @zip@
72MAKE = @make@
73ECHO = @echo@
16c44ed2 74SORT = @sort@
9440d84d 75LN_S = @LN_S@
6abbfed5 76SHELL = @SHELL@
9440d84d
NS
77LIBTOOL = @LIBTOOL@
78MAKEDEPEND = @makedepend@
79
80MSGFMT = @msgfmt@
81MSGMERGE = @msgmerge@
1b758ea9 82XGETTEXT = @xgettext@
8c053393 83LOCALIZED_FILES = @LOCALIZED_FILES@
9440d84d
NS
84
85RPM = @rpm@
86RPMBUILD = @rpmbuild@
87RPM_VERSION = @rpm_version@
f937adac 88
82805b60
TS
89ENABLE_SHARED = @enable_shared@
90ENABLE_GETTEXT = @enable_gettext@
91ENABLE_EDITLINE = @enable_editline@
92ENABLE_READLINE = @enable_readline@
6635d6ab 93ENABLE_BLKID = @enable_blkid@
82805b60 94
9440d84d
NS
95HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@
96
0bba1a49
NS
97HAVE_FADVISE = @have_fadvise@
98HAVE_MADVISE = @have_madvise@
99HAVE_MINCORE = @have_mincore@
100HAVE_SENDFILE = @have_sendfile@
cfe6e3f0
NS
101HAVE_GETMNTENT = @have_getmntent@
102HAVE_GETMNTINFO = @have_getmntinfo@
c0b5232a 103HAVE_FALLOCATE = @have_fallocate@
8f0e0912 104HAVE_FIEMAP = @have_fiemap@
197d5828 105HAVE_PREADV = @have_preadv@
628e112a 106HAVE_COPY_FILE_RANGE = @have_copy_file_range@
197d5828 107HAVE_SYNC_FILE_RANGE = @have_sync_file_range@
eb24bcff 108HAVE_SYNCFS = @have_syncfs@
3bc05641 109HAVE_READDIR = @have_readdir@
5ae294ea 110HAVE_MNTENT = @have_mntent@
5121281b 111HAVE_FLS = @have_fls@
c14c7b79 112HAVE_FSETXATTR = @have_fsetxattr@
a49984b3 113HAVE_MREMAP = @have_mremap@
6529e656 114NEED_INTERNAL_FSXATTR = @need_internal_fsxattr@
71956d72 115HAVE_GETFSMAP = @have_getfsmap@
0bba1a49 116
f8149110 117GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
5e656dbb 118# -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-decl
d3a8db8a 119
9440d84d 120ifeq ($(PKG_PLATFORM),linux)
4a066166 121PCFLAGS = -D_GNU_SOURCE $(GCCFLAGS)
cd960ece
MS
122ifeq ($(HAVE_UMODE_T),yes)
123PCFLAGS += -DHAVE_UMODE_T
124endif
d931d17e 125DEPENDFLAGS = -D__linux__
93d9f139 126endif
2ee06c8d
PS
127ifeq ($(PKG_PLATFORM),gnukfreebsd)
128PCFLAGS = -D_GNU_SOURCE $(GCCFLAGS)
129endif
93d9f139 130ifeq ($(PKG_PLATFORM),darwin)
96f2cfb2 131PCFLAGS = $(GCCFLAGS)
b35b4eb8 132DEPENDFLAGS = -D__APPLE__ -D_DARWIN_FEATURE_64_BIT_INODE
9440d84d 133endif
4f1631ae
RC
134ifeq ($(PKG_PLATFORM),freebsd)
135PLDLIBS = -L/usr/local/lib -lintl
d3a8db8a 136PCFLAGS = -I/usr/local/include $(GCCFLAGS)
d931d17e 137DEPENDFLAGS = -D__FreeBSD__
4f1631ae 138endif
5121281b
JT
139ifeq ($(HAVE_FLS),yes)
140LCFLAGS+= -DHAVE_FLS
141endif
5ae294ea
JT
142ifeq ($(HAVE_MNTENT),yes)
143PCFLAGS+= -DHAVE_MNTENT
144endif
c14c7b79
JT
145ifeq ($(HAVE_FSETXATTR),yes)
146PCFLAGS+= -DHAVE_FSETXATTR
147endif
6635d6ab
JT
148ifeq ($(ENABLE_BLKID),yes)
149PCFLAGS+= -DENABLE_BLKID
150endif
6529e656
DW
151ifeq ($(NEED_INTERNAL_FSXATTR),yes)
152PCFLAGS+= -DOVERRIDE_SYSTEM_FSXATTR
153endif
71956d72
DW
154ifeq ($(HAVE_GETFSMAP),yes)
155PCFLAGS+= -DHAVE_GETFSMAP
156endif
6635d6ab 157
9440d84d 158
0a71e383 159GCFLAGS = $(DEBUG) \
062998e3 160 -DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\" \
6b803e5a 161 -DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include -I$(TOPDIR)/libxfs
f937adac 162
e84ec15d
AM
163ifeq ($(ENABLE_GETTEXT),yes)
164GCFLAGS += -DENABLE_GETTEXT
165endif
166
0a71e383 167BUILD_CFLAGS += $(GCFLAGS) $(PCFLAGS)
1bdd986b 168# First, Global, Platform, Local CFLAGS
0a71e383 169CFLAGS += $(FCFLAGS) $(OPTIMIZER) $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
2bd0ea18 170
3ded4129 171include $(TOPDIR)/include/buildmacros
286ceebb
NS
172
173endif
174
175#
176# For targets that should always be rebuilt,
177# define a target that is never up-to-date.
178# Targets needing this should depend on $(_FORCE)
179_FORCE = __force_build