]>
Commit | Line | Data |
---|---|---|
2bd0ea18 | 1 | # |
0bba1a49 | 2 | # Copyright (c) 2004 Silicon Graphics, Inc. All Rights Reserved. |
dfc130f3 | 3 | # |
2bd0ea18 NS |
4 | # This program is free software; you can redistribute it and/or modify it |
5 | # under the terms of version 2 of the GNU General Public License as | |
6 | # published by the Free Software Foundation. | |
dfc130f3 | 7 | # |
2bd0ea18 NS |
8 | # This program is distributed in the hope that it would be useful, but |
9 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
dfc130f3 | 11 | # |
2bd0ea18 NS |
12 | # Further, this software is distributed without any warranty that it is |
13 | # free of the rightful claim of any third person regarding infringement | |
14 | # or the like. Any license provided herein, whether implied or | |
15 | # otherwise, applies only to this software file. Patent licenses, if | |
16 | # any, provided herein do not apply to combinations of this program with | |
17 | # other software, or any other product whatsoever. | |
dfc130f3 | 18 | # |
2bd0ea18 NS |
19 | # You should have received a copy of the GNU General Public License along |
20 | # with this program; if not, write the Free Software Foundation, Inc., 59 | |
21 | # Temple Place - Suite 330, Boston MA 02111-1307, USA. | |
dfc130f3 | 22 | # |
2bd0ea18 NS |
23 | # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, |
24 | # Mountain View, CA 94043, or: | |
dfc130f3 RC |
25 | # |
26 | # http://www.sgi.com | |
27 | # | |
28 | # For further information regarding this notice, see: | |
29 | # | |
2bd0ea18 NS |
30 | # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/ |
31 | # | |
32 | # @configure_input@ | |
33 | # | |
34 | ||
6c6508ec NS |
35 | ifndef _BUILDDEFS_INCLUDED_ |
36 | _BUILDDEFS_INCLUDED_ = 1 | |
286ceebb | 37 | |
2bd0ea18 NS |
38 | DEBUG = @debug_build@ |
39 | OPTIMIZER = @opt_build@ | |
40 | MALLOCLIB = @malloc_lib@ | |
41 | ||
639231be | 42 | LIBUUID = @libuuid@ |
949c0f10 | 43 | LIBPTHREAD = @libpthread@ |
d4b9ebda | 44 | LIBEDITLINE = @libeditline@ |
e246ba5f | 45 | LIBREADLINE = @libreadline@ |
f937adac | 46 | LIBXFS = $(TOPDIR)/libxfs/libxfs.la |
d321ceac | 47 | LIBXLOG = $(TOPDIR)/libxlog/libxlog.la |
f937adac NS |
48 | LIBDISK = $(TOPDIR)/libdisk/libdisk.la |
49 | LIBHANDLE = $(TOPDIR)/libhandle/libhandle.la | |
fc49813f | 50 | |
9440d84d NS |
51 | DK_INC_DIR = @includedir@/disk |
52 | ||
e572fea0 NS |
53 | prefix = @prefix@ |
54 | exec_prefix = @exec_prefix@ | |
55 | ||
9440d84d | 56 | PKG_NAME = @pkg_name@ |
93d9f139 NS |
57 | PKG_USER = @pkg_user@ |
58 | PKG_GROUP = @pkg_group@ | |
9440d84d NS |
59 | PKG_RELEASE = @pkg_release@ |
60 | PKG_VERSION = @pkg_version@ | |
61 | PKG_PLATFORM = @pkg_platform@ | |
62 | PKG_DISTRIBUTION= @pkg_distribution@ | |
9440d84d NS |
63 | PKG_BIN_DIR = @bindir@ |
64 | PKG_SBIN_DIR = @sbindir@ | |
65 | PKG_LIB_DIR = @libdir@ | |
66 | PKG_DEVLIB_DIR = @libexecdir@ | |
67 | PKG_INC_DIR = @includedir@/xfs | |
68 | PKG_MAN_DIR = @mandir@ | |
69 | PKG_DOC_DIR = @datadir@/doc/@pkg_name@ | |
70 | PKG_LOCALE_DIR = @datadir@/locale | |
2bd0ea18 | 71 | |
9440d84d | 72 | CC = @cc@ |
9440d84d NS |
73 | AWK = @awk@ |
74 | SED = @sed@ | |
75 | TAR = @tar@ | |
76 | ZIP = @zip@ | |
77 | MAKE = @make@ | |
78 | ECHO = @echo@ | |
16c44ed2 | 79 | SORT = @sort@ |
9440d84d NS |
80 | LN_S = @LN_S@ |
81 | LIBTOOL = @LIBTOOL@ | |
82 | MAKEDEPEND = @makedepend@ | |
83 | ||
84 | MSGFMT = @msgfmt@ | |
85 | MSGMERGE = @msgmerge@ | |
9440d84d NS |
86 | |
87 | RPM = @rpm@ | |
88 | RPMBUILD = @rpmbuild@ | |
89 | RPM_VERSION = @rpm_version@ | |
f937adac | 90 | |
f937adac | 91 | ENABLE_SHARED = @enable_shared@ |
9440d84d | 92 | ENABLE_GETTEXT = @enable_gettext@ |
d4b9ebda | 93 | ENABLE_EDITLINE = @enable_editline@ |
e246ba5f | 94 | ENABLE_READLINE = @enable_readline@ |
9440d84d NS |
95 | HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@ |
96 | ||
0bba1a49 NS |
97 | HAVE_FADVISE = @have_fadvise@ |
98 | HAVE_MADVISE = @have_madvise@ | |
99 | HAVE_MINCORE = @have_mincore@ | |
100 | HAVE_SENDFILE = @have_sendfile@ | |
101 | ||
9440d84d NS |
102 | ifeq ($(PKG_PLATFORM),linux) |
103 | PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 | |
93d9f139 NS |
104 | endif |
105 | ifeq ($(PKG_PLATFORM),darwin) | |
9440d84d NS |
106 | PCFLAGS = -traditional-cpp |
107 | endif | |
93d9f139 NS |
108 | ifeq ($(PKG_PLATFORM),irix) |
109 | PLDLIBS = -ldisk -lgen | |
110 | endif | |
4f1631ae RC |
111 | ifeq ($(PKG_PLATFORM),freebsd) |
112 | PLDLIBS = -L/usr/local/lib -lintl | |
1707056a | 113 | PCFLAGS = -I/usr/local/include |
4f1631ae | 114 | endif |
9440d84d | 115 | |
16c44ed2 | 116 | GCFLAGS += -O1 $(OPTIMIZER) $(DEBUG) -funsigned-char -Wall -I$(TOPDIR)/include \ |
9440d84d | 117 | -DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\" \ |
dfc130f3 | 118 | -DPACKAGE=\"$(PKG_NAME)\" |
f937adac | 119 | |
9440d84d NS |
120 | # Global, Platform, Local CFLAGS |
121 | CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS) | |
2bd0ea18 | 122 | |
3ded4129 | 123 | include $(TOPDIR)/include/buildmacros |
286ceebb NS |
124 | |
125 | endif | |
126 | ||
127 | # | |
128 | # For targets that should always be rebuilt, | |
129 | # define a target that is never up-to-date. | |
130 | # Targets needing this should depend on $(_FORCE) | |
131 | _FORCE = __force_build |