You need to sign in or sign up before continuing.
Makefile 633 Bytes
Newer Older
Abhijith PA's avatar
Abhijith PA committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#
# Makefile for ARM Streamline - Gator Daemon
#

# Uncomment and define CROSS_COMPILE if it is not already defined
# CROSS_COMPILE=/path/to/cross-compiler/arm-linux-gnueabihf-
# NOTE: This toolchain uses the hardfloat abi by default. For non-hardfloat
# targets run 'make SOFTFLOAT=1 SYSROOT=/path/to/sysroot', see
# README_Streamline.txt for more details

CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++

ifeq ($(SOFTFLOAT),1)
	CPPFLAGS += -marm -mthumb-interwork -march=armv4t -mfloat-abi=soft
	LDFLAGS += -marm -march=armv4t -mfloat-abi=soft
endif
ifneq ($(SYSROOT),)
	LDFLAGS += --sysroot=$(SYSROOT)
endif

include common.mk