]>
Commit | Line | Data |
---|---|---|
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 |
20 | ifndef _BUILDDEFS_INCLUDED_ |
21 | _BUILDDEFS_INCLUDED_ = 1 | |
286ceebb | 22 | |
2bd0ea18 NS |
23 | DEBUG = @debug_build@ |
24 | OPTIMIZER = @opt_build@ | |
25 | MALLOCLIB = @malloc_lib@ | |
4d32d744 | 26 | LOADERFLAGS = @LDFLAGS@ |
2bd0ea18 | 27 | |
6ec3f6ba | 28 | LIBRT = @librt@ |
639231be | 29 | LIBUUID = @libuuid@ |
949c0f10 | 30 | LIBPTHREAD = @libpthread@ |
541a1d4f | 31 | LIBTERMCAP = @libtermcap@ |
d4b9ebda | 32 | LIBEDITLINE = @libeditline@ |
e246ba5f | 33 | LIBREADLINE = @libreadline@ |
e4da9941 | 34 | LIBBLKID = @libblkid@ |
f937adac | 35 | LIBXFS = $(TOPDIR)/libxfs/libxfs.la |
3d93ccb7 | 36 | LIBXCMD = $(TOPDIR)/libxcmd/libxcmd.la |
d321ceac | 37 | LIBXLOG = $(TOPDIR)/libxlog/libxlog.la |
f937adac NS |
38 | LIBDISK = $(TOPDIR)/libdisk/libdisk.la |
39 | LIBHANDLE = $(TOPDIR)/libhandle/libhandle.la | |
fc49813f | 40 | |
9440d84d | 41 | PKG_NAME = @pkg_name@ |
93d9f139 NS |
42 | PKG_USER = @pkg_user@ |
43 | PKG_GROUP = @pkg_group@ | |
9440d84d NS |
44 | PKG_RELEASE = @pkg_release@ |
45 | PKG_VERSION = @pkg_version@ | |
46 | PKG_PLATFORM = @pkg_platform@ | |
47 | PKG_DISTRIBUTION= @pkg_distribution@ | |
595e27db CH |
48 | |
49 | prefix = @prefix@ | |
50 | exec_prefix = @exec_prefix@ | |
51 | datarootdir = @datarootdir@ | |
52 | top_builddir = @top_builddir@ | |
53 | ||
9440d84d | 54 | PKG_SBIN_DIR = @sbindir@ |
595e27db CH |
55 | PKG_ROOT_SBIN_DIR = @root_sbindir@ |
56 | PKG_ROOT_LIB_DIR= @root_libdir@@libdirsuffix@ | |
82805b60 | 57 | PKG_LIB_DIR = @libdir@@libdirsuffix@ |
9440d84d | 58 | PKG_INC_DIR = @includedir@/xfs |
595e27db | 59 | DK_INC_DIR = @includedir@/disk |
9440d84d NS |
60 | PKG_MAN_DIR = @mandir@ |
61 | PKG_DOC_DIR = @datadir@/doc/@pkg_name@ | |
62 | PKG_LOCALE_DIR = @datadir@/locale | |
2bd0ea18 | 63 | |
9440d84d | 64 | CC = @cc@ |
9440d84d NS |
65 | AWK = @awk@ |
66 | SED = @sed@ | |
67 | TAR = @tar@ | |
68 | ZIP = @zip@ | |
69 | MAKE = @make@ | |
70 | ECHO = @echo@ | |
16c44ed2 | 71 | SORT = @sort@ |
9440d84d NS |
72 | LN_S = @LN_S@ |
73 | LIBTOOL = @LIBTOOL@ | |
74 | MAKEDEPEND = @makedepend@ | |
75 | ||
76 | MSGFMT = @msgfmt@ | |
77 | MSGMERGE = @msgmerge@ | |
1b758ea9 | 78 | XGETTEXT = @xgettext@ |
8c053393 | 79 | LOCALIZED_FILES = @LOCALIZED_FILES@ |
9440d84d NS |
80 | |
81 | RPM = @rpm@ | |
82 | RPMBUILD = @rpmbuild@ | |
83 | RPM_VERSION = @rpm_version@ | |
f937adac | 84 | |
82805b60 TS |
85 | ENABLE_SHARED = @enable_shared@ |
86 | ENABLE_GETTEXT = @enable_gettext@ | |
87 | ENABLE_EDITLINE = @enable_editline@ | |
88 | ENABLE_READLINE = @enable_readline@ | |
e4da9941 | 89 | ENABLE_BLKID = @enable_blkid@ |
82805b60 | 90 | |
9440d84d NS |
91 | HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@ |
92 | ||
0bba1a49 NS |
93 | HAVE_FADVISE = @have_fadvise@ |
94 | HAVE_MADVISE = @have_madvise@ | |
95 | HAVE_MINCORE = @have_mincore@ | |
96 | HAVE_SENDFILE = @have_sendfile@ | |
cfe6e3f0 NS |
97 | HAVE_GETMNTENT = @have_getmntent@ |
98 | HAVE_GETMNTINFO = @have_getmntinfo@ | |
c0b5232a | 99 | HAVE_FALLOCATE = @have_fallocate@ |
0bba1a49 | 100 | |
5e656dbb BN |
101 | GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall |
102 | # -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-decl | |
d3a8db8a | 103 | |
9440d84d | 104 | ifeq ($(PKG_PLATFORM),linux) |
d3a8db8a | 105 | PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS) |
d931d17e | 106 | DEPENDFLAGS = -D__linux__ |
93d9f139 NS |
107 | endif |
108 | ifeq ($(PKG_PLATFORM),darwin) | |
d3a8db8a | 109 | PCFLAGS = -traditional-cpp $(GCCFLAGS) |
d931d17e | 110 | DEPENDFLAGS = -D__APPLE__ |
9440d84d | 111 | endif |
93d9f139 NS |
112 | ifeq ($(PKG_PLATFORM),irix) |
113 | PLDLIBS = -ldisk -lgen | |
d931d17e | 114 | DEPENDFLAGS = -D__sgi__ |
93d9f139 | 115 | endif |
4f1631ae RC |
116 | ifeq ($(PKG_PLATFORM),freebsd) |
117 | PLDLIBS = -L/usr/local/lib -lintl | |
d3a8db8a | 118 | PCFLAGS = -I/usr/local/include $(GCCFLAGS) |
d931d17e | 119 | DEPENDFLAGS = -D__FreeBSD__ |
4f1631ae | 120 | endif |
9440d84d | 121 | |
d3a8db8a | 122 | GCFLAGS = $(OPTIMIZER) $(DEBUG) \ |
062998e3 NS |
123 | -DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\" \ |
124 | -DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include | |
f937adac | 125 | |
e84ec15d AM |
126 | ifeq ($(ENABLE_GETTEXT),yes) |
127 | GCFLAGS += -DENABLE_GETTEXT | |
128 | endif | |
129 | ||
1bdd986b NS |
130 | # First, Global, Platform, Local CFLAGS |
131 | CFLAGS += $(FCFLAGS) $(GCFLAGS) $(PCFLAGS) $(LCFLAGS) | |
2bd0ea18 | 132 | |
3ded4129 | 133 | include $(TOPDIR)/include/buildmacros |
286ceebb NS |
134 | |
135 | endif | |
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 |