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