#
# Copyright (c) 2002-2006 Silicon Graphics, Inc.  All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# include/builddefs.  Generated from builddefs.in by configure.
#

ifndef _BUILDDEFS_INCLUDED_
_BUILDDEFS_INCLUDED_ = 1

DEBUG = -DDEBUG
OPTIMIZER = -g -O2
MALLOCLIB = 
LOADERFLAGS = -Wl,-O1 -Wl,--hash-style=gnu -Wl,--build-id=sha1 -Wl,--as-needed

LIBATTR = $(TOPDIR)/libattr/libattr.la
LIBMISC = $(TOPDIR)/libmisc/libmisc.la

prefix = /usr
exec_prefix = /usr
top_builddir = ..
datarootdir = ${prefix}/share

PKG_NAME	= attr
PKG_USER	= root
PKG_GROUP	= root
PKG_RELEASE	= 0
PKG_VERSION	= 2.4.47
PKG_PLATFORM	= linux
PKG_DISTRIBUTION= Linux
PKG_BIN_DIR	= /usr/bin
PKG_SBIN_DIR	= /usr/sbin
PKG_LIB_DIR	= /usr/lib
PKG_DEVLIB_DIR	= /usr/lib
PKG_INC_DIR	= /usr/include/attr
PKG_MAN_DIR	= /usr/share/man
PKG_DOC_DIR	= /usr/share/doc/attr
PKG_LOCALE_DIR	= /usr/share/locale

CC		= arm-none-linux-gnueabi-gcc -march=armv7ve -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --no-sysroot-suffix --sysroot=/Icomfort/jenkins/workspace/Build_Linux/Yocto/build_m30-production/tmp/sysroots/densowave-m30
AWK		= /bin/awk
SED		= sed
TAR		= /opt/densowave/next+snapshot/sysroots/x86_64-melsdk-linux/usr/bin/tar
ZIP		= /opt/densowave/next+snapshot/sysroots/x86_64-melsdk-linux/usr/bin/gzip
MAKE		= /usr/bin/gmake
ECHO		= /bin/echo
SORT		= /bin/sort
LN_S		= ln -s
SHELL		= /bin/sh
LIBTOOL		= $(top_builddir)/arm-mel-linux-gnueabi-libtool
MAKEDEPEND	= /Icomfort/jenkins/workspace/Build_Linux/Yocto/build_m30-production/tmp/sysroots/x86_64-linux/usr/bin/makedepend

MSGFMT		= /Icomfort/jenkins/workspace/Build_Linux/Yocto/build_m30-production/tmp/sysroots/x86_64-linux/usr/bin/msgfmt
MSGMERGE	= /Icomfort/jenkins/workspace/Build_Linux/Yocto/build_m30-production/tmp/sysroots/x86_64-linux/usr/bin/msgmerge
XGETTEXT	= /Icomfort/jenkins/workspace/Build_Linux/Yocto/build_m30-production/tmp/sysroots/x86_64-linux/usr/bin/xgettext

RPM		= /bin/rpm
RPMBUILD	= /usr/bin/rpmbuild
RPM_VERSION	= 4

ENABLE_SHARED	= yes
ENABLE_GETTEXT	= yes

HAVE_ZIPPED_MANPAGES = true

ifneq "$(findstring $(PKG_PLATFORM), linux gnu gnu/kfreebsd gnu/knetbsd)" ""
PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
endif

ifeq ($(PKG_PLATFORM),linux)
DEPENDFLAGS = -D__linux__
endif
ifeq ($(PKG_PLATFORM),darwin)
DEPENDFLAGS = -D__APPLE__
endif
ifeq ($(PKG_PLATFORM),irix)
DEPENDFLAGS = -D__sgi__
endif
ifeq ($(PKG_PLATFORM),freebsd)
DEPENDFLAGS = -D__FreeBSD__
endif

GCFLAGS = $(OPTIMIZER) $(DEBUG) -funsigned-char -fno-strict-aliasing -Wall \
	  -DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\"  \
	  -DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include

# Global, Platform, Local CFLAGS
CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)

include $(TOPDIR)/include/buildmacros

endif

#
# For targets that should always be rebuilt,
# define a target that is never up-to-date.
# Targets needing this should depend on $(_FORCE)
_FORCE = __force_build
