#
# 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,--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		= microblazeel-xilinx-linux-gnu-gcc   -mlittle-endian   -mcpu=v10.0           -mxl-barrel-shift -mno-xl-soft-mul -mxl-multiply-high  -mno-xl-soft-div  -mxl-pattern-compare -mno-xl-reorder -Wl,--hash-style=gnu --sysroot=/scratch/petalinux-yocto/yocto_sdk_full_2017.3/build/tmp/sysroots/microblazeel-v10.0-bs-cmp-mh-div-generic
AWK		= /usr/bin/awk
SED		= sed
TAR		= /usr/bin/tar
ZIP		= /usr/bin/gzip
MAKE		= /usr/bin/gmake
ECHO		= /usr/bin/echo
SORT		= /usr/bin/sort
LN_S		= ln -s
SHELL		= /bin/sh
LIBTOOL		= $(top_builddir)/microblazeel-xilinx-linux-libtool
MAKEDEPEND	= /scratch/petalinux-yocto/yocto_sdk_full_2017.3/build/tmp/sysroots/x86_64-linux/usr/bin/makedepend

MSGFMT		= /scratch/petalinux-yocto/yocto_sdk_full_2017.3/build/tmp/sysroots/x86_64-linux/usr/bin/msgfmt
MSGMERGE	= /scratch/petalinux-yocto/yocto_sdk_full_2017.3/build/tmp/sysroots/x86_64-linux/usr/bin/msgmerge
XGETTEXT	= /scratch/petalinux-yocto/yocto_sdk_full_2017.3/build/tmp/sysroots/x86_64-linux/usr/bin/xgettext

RPM		= /scratch/petalinux-yocto/yocto_sdk_full_2017.3/build/tmp/sysroots/x86_64-linux/usr/bin/rpm
RPMBUILD	= /scratch/petalinux-yocto/yocto_sdk_full_2017.3/build/tmp/sysroots/x86_64-linux/usr/bin/rpmbuild
RPM_VERSION	= 5

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
