]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/builddefs.in
allow linking against libblkid instead of libdisk
[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@
e4da9941 34LIBBLKID = @libblkid@
f937adac 35LIBXFS = $(TOPDIR)/libxfs/libxfs.la
3d93ccb7 36LIBXCMD = $(TOPDIR)/libxcmd/libxcmd.la
d321ceac 37LIBXLOG = $(TOPDIR)/libxlog/libxlog.la
f937adac
NS
38LIBDISK = $(TOPDIR)/libdisk/libdisk.la
39LIBHANDLE = $(TOPDIR)/libhandle/libhandle.la
fc49813f 40
9440d84d 41PKG_NAME = @pkg_name@
93d9f139
NS
42PKG_USER = @pkg_user@
43PKG_GROUP = @pkg_group@
9440d84d
NS
44PKG_RELEASE = @pkg_release@
45PKG_VERSION = @pkg_version@
46PKG_PLATFORM = @pkg_platform@
47PKG_DISTRIBUTION= @pkg_distribution@
595e27db
CH
48
49prefix = @prefix@
50exec_prefix = @exec_prefix@
51datarootdir = @datarootdir@
52top_builddir = @top_builddir@
53
9440d84d 54PKG_SBIN_DIR = @sbindir@
595e27db
CH
55PKG_ROOT_SBIN_DIR = @root_sbindir@
56PKG_ROOT_LIB_DIR= @root_libdir@@libdirsuffix@
82805b60 57PKG_LIB_DIR = @libdir@@libdirsuffix@
9440d84d 58PKG_INC_DIR = @includedir@/xfs
595e27db 59DK_INC_DIR = @includedir@/disk
9440d84d
NS
60PKG_MAN_DIR = @mandir@
61PKG_DOC_DIR = @datadir@/doc/@pkg_name@
62PKG_LOCALE_DIR = @datadir@/locale
2bd0ea18 63
9440d84d 64CC = @cc@
9440d84d
NS
65AWK = @awk@
66SED = @sed@
67TAR = @tar@
68ZIP = @zip@
69MAKE = @make@
70ECHO = @echo@
16c44ed2 71SORT = @sort@
9440d84d
NS
72LN_S = @LN_S@
73LIBTOOL = @LIBTOOL@
74MAKEDEPEND = @makedepend@
75
76MSGFMT = @msgfmt@
77MSGMERGE = @msgmerge@
1b758ea9 78XGETTEXT = @xgettext@
8c053393 79LOCALIZED_FILES = @LOCALIZED_FILES@
9440d84d
NS
80
81RPM = @rpm@
82RPMBUILD = @rpmbuild@
83RPM_VERSION = @rpm_version@
f937adac 84
82805b60
TS
85ENABLE_SHARED = @enable_shared@
86ENABLE_GETTEXT = @enable_gettext@
87ENABLE_EDITLINE = @enable_editline@
88ENABLE_READLINE = @enable_readline@
e4da9941 89ENABLE_BLKID = @enable_blkid@
82805b60 90
9440d84d
NS
91HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@
92
0bba1a49
NS
93HAVE_FADVISE = @have_fadvise@
94HAVE_MADVISE = @have_madvise@
95HAVE_MINCORE = @have_mincore@
96HAVE_SENDFILE = @have_sendfile@
cfe6e3f0
NS
97HAVE_GETMNTENT = @have_getmntent@
98HAVE_GETMNTINFO = @have_getmntinfo@
c0b5232a 99HAVE_FALLOCATE = @have_fallocate@
0bba1a49 100
5e656dbb
BN
101GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
102# -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-decl
d3a8db8a 103
9440d84d 104ifeq ($(PKG_PLATFORM),linux)
d3a8db8a 105PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
d931d17e 106DEPENDFLAGS = -D__linux__
93d9f139
NS
107endif
108ifeq ($(PKG_PLATFORM),darwin)
d3a8db8a 109PCFLAGS = -traditional-cpp $(GCCFLAGS)
d931d17e 110DEPENDFLAGS = -D__APPLE__
9440d84d 111endif
93d9f139
NS
112ifeq ($(PKG_PLATFORM),irix)
113PLDLIBS = -ldisk -lgen
d931d17e 114DEPENDFLAGS = -D__sgi__
93d9f139 115endif
4f1631ae
RC
116ifeq ($(PKG_PLATFORM),freebsd)
117PLDLIBS = -L/usr/local/lib -lintl
d3a8db8a 118PCFLAGS = -I/usr/local/include $(GCCFLAGS)
d931d17e 119DEPENDFLAGS = -D__FreeBSD__
4f1631ae 120endif
9440d84d 121
d3a8db8a 122GCFLAGS = $(OPTIMIZER) $(DEBUG) \
062998e3
NS
123 -DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\" \
124 -DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include
f937adac 125
e84ec15d
AM
126ifeq ($(ENABLE_GETTEXT),yes)
127GCFLAGS += -DENABLE_GETTEXT
128endif
129
1bdd986b
NS
130# First, Global, Platform, Local CFLAGS
131CFLAGS += $(FCFLAGS) $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
2bd0ea18 132
3ded4129 133include $(TOPDIR)/include/buildmacros
286ceebb
NS
134
135endif
136
137#
138# For targets that should always be rebuilt,
139# define a target that is never up-to-date.
140# Targets needing this should depend on $(_FORCE)
141_FORCE = __force_build