1#
2# Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
3# 
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.
7# 
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.
11# 
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.
18# 
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.
22# 
23# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24# Mountain View, CA  94043, or:
25# 
26# http://www.sgi.com 
27# 
28# For further information regarding this notice, see: 
29# 
30# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
31#
32# @configure_input@
33#
34
35ifndef _BUILDDEFS_INCLUDED_
36_BUILDDEFS_INCLUDED_ = 1
37
38DEBUG = @debug_build@
39OPTIMIZER = @opt_build@
40MALLOCLIB = @malloc_lib@
41
42LIBACL = $(TOPDIR)/libacl/libacl.la
43LIBATTR = @libattr@
44LIBMISC = $(TOPDIR)/libmisc/libmisc.la
45
46prefix = @prefix@
47exec_prefix = @exec_prefix@
48
49PKG_NAME	= @pkg_name@
50PKG_USER	= @pkg_user@
51PKG_GROUP	= @pkg_group@
52PKG_RELEASE	= @pkg_release@
53PKG_VERSION	= @pkg_version@
54PKG_PLATFORM	= @pkg_platform@
55PKG_DISTRIBUTION= @pkg_distribution@
56PKG_BIN_DIR	= @bindir@
57PKG_SBIN_DIR	= @sbindir@
58PKG_LIB_DIR	= @libdir@
59PKG_DEVLIB_DIR	= @libexecdir@
60PKG_INC_DIR	= @includedir@
61PKG_MAN_DIR	= @mandir@
62PKG_DOC_DIR	= @datadir@/doc/@pkg_name@
63PKG_LOCALE_DIR	= @datadir@/locale
64
65CC		= @cc@
66AWK		= @awk@
67SED		= @sed@
68TAR		= @tar@
69ZIP		= @zip@
70MAKE		= @make@
71ECHO		= @echo@
72SORT		= @sort@
73LN_S		= @LN_S@
74LIBTOOL		= @LIBTOOL@
75MAKEDEPEND	= @makedepend@
76
77MSGFMT		= @msgfmt@
78MSGMERGE	= @msgmerge@
79
80RPM		= @rpm@
81RPMBUILD	= @rpmbuild@
82RPM_VERSION	= @rpm_version@
83
84ENABLE_SHARED = @enable_shared@
85ENABLE_GETTEXT = @enable_gettext@
86HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@
87
88ifeq ($(PKG_PLATFORM),linux)
89PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
90endif
91
92GCFLAGS = $(OPTIMIZER) $(DEBUG) -funsigned-char -Wall -I$(TOPDIR)/include \
93	  -DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\"  \
94	  -DPACKAGE=\"$(PKG_NAME)\" 
95
96# Global, Platform, Local CFLAGS
97CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
98
99include $(TOPDIR)/include/buildmacros
100
101endif
102
103#
104# For targets that should always be rebuilt,
105# define a target that is never up-to-date.
106# Targets needing this should depend on $(_FORCE)
107_FORCE = __force_build
108