# app-Makefile
#
# Makefile fragment to allow ABLE userland apps to compile properly
#
# If your app is to be compiled using gcc then this fragment will
# automatically attempt to include the libable-gcc-support.a library
# from the level above the libc.
#
# This library is available separately, from Simtec Electronics or your
# direct supplier themselves.
#
# Copyright 2006 Simtec Electronics
#

ifeq ($(ABLE_LIB),)
ifeq ($(ABLE_CLIB),)
  ABLE_LIB:=/opt/simtec/able
else
  ABLE_LIB := $(ABLE_CLIB)
endif
endif

export ABLE_LIB

ABLE_CROSS ?= $(ABLE_LIB)/bin/arm-able-
CC=$(ABLE_CROSS)cc
CXX=$(ABLE_CROSS)c++
LD=$(ABLE_CROSS)ld
AR=$(ABLE_CROSS)ar
