mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
af49fc6049
or new multiarch if not found close #2589
35 lines
784 B
Makefile
35 lines
784 B
Makefile
# Hey Emacs, this is a -*- makefile -*-
|
|
#
|
|
# Copyright (C) 2012-2014 Felix Ruess <felix.ruess@gmail.com>
|
|
|
|
|
|
#
|
|
# This is the common Makefile for finding the arm compiler
|
|
# for bare metal systems like on the ARM7TDMI, cortex M3/4
|
|
|
|
PREFIX ?= arm-none-eabi
|
|
|
|
ifeq ($(shell which $(PREFIX)-gcc),)
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
$(warning Warning: arm-none-eabi-gcc cross-compiler not found! Some tools might not be able to build correctly)
|
|
endif
|
|
endif
|
|
|
|
CC = $(PREFIX)-gcc
|
|
CXX = $(PREFIX)-g++
|
|
LD = $(PREFIX)-g++
|
|
AR = $(PREFIX)-ar
|
|
CP = $(PREFIX)-objcopy
|
|
DMP = $(PREFIX)-objdump
|
|
NM = $(PREFIX)-nm
|
|
SIZE = $(PREFIX)-size
|
|
STRIP = $(PREFIX)-strip
|
|
|
|
GDB = $(shell which $(PREFIX)-gdb)
|
|
ifeq ($(GDB),)
|
|
GDB = $(shell which gdb-multiarch)
|
|
endif
|
|
|
|
# some general commands
|
|
RM = rm
|