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