1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

Added CODE_SOURCERY switch to makefile to choose if it is used or not.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@143 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
esden 2010-01-29 01:47:24 +00:00 committed by esden
parent 7d8dbc5deb
commit 2234d0a0bf

View File

@ -26,11 +26,17 @@
# Set developer code and compile options # Set developer code and compile options
# Set to YES for debugging # Set to YES for debugging
DEBUG = YES DEBUG = YES
# Set to YES when using Code Sourcery toolchain
CODE_SOURCERY=NO
# Toolchain prefix (i.e arm-elf- -> arm-elf-gcc.exe) # Toolchain prefix (i.e arm-elf- -> arm-elf-gcc.exe)
TCHAIN_PREFIX = arm-none-eabi- TCHAIN_PREFIX = arm-none-eabi-
#REMOVE_CMD=rm
ifeq ($(CODE_SOURCERY), YES)
REMOVE_CMD=cs-rm REMOVE_CMD=cs-rm
else
REMOVE_CMD=rm
endif
FLASH_TOOL = OPENOCD FLASH_TOOL = OPENOCD
@ -273,7 +279,9 @@ CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) -I.
CFLAGS += -mapcs-frame CFLAGS += -mapcs-frame
CFLAGS += -fomit-frame-pointer CFLAGS += -fomit-frame-pointer
#CFLAGS += -fpromote-loop-indices # it is a Sourcery G++ Lite specific option ifeq ($(CODE_SOURCERY), YES)
CFLAGS += -fpromote-loop-indices
endif
CFLAGS += -Wall CFLAGS += -Wall
CFLAGS += -Wa,-adhlns=$(addprefix $(OUTDIR)/, $(notdir $(addsuffix .lst, $(basename $<)))) CFLAGS += -Wa,-adhlns=$(addprefix $(OUTDIR)/, $(notdir $(addsuffix .lst, $(basename $<))))