# /***************************************************************************** | |
#* °æÈ¨ËùÓÐ (C)2010, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£ | |
#* | |
#* ÎļþÃû³Æ: gcc_csky.mk | |
#* Îļþ±êʶ: gcc_csky.mk | |
#* ÄÚÈÝÕªÒª: ºË¸ß»ùgcc±àÒëÆ÷ÅäÖÃÎļþ | |
#* ʹÓ÷½·¨: include gcc_csky.mk | |
#* | |
#* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ | |
#* ----------------------------------------------------------------------------- | |
#* 2011/11/01 V1.0 Create ÁõÑÇÄÏ ´´½¨ | |
#* | |
# ******************************************************************************/ | |
#=============================================================================== | |
# compiler tools path, TOS_GCC_ROOT is set in build_eCos.bat | |
#=============================================================================== | |
GCC_ROOT = $(TOS_GCC_ROOT) | |
GCC_BIN = $(GCC_ROOT)/$(TOS_GCC_PATH)/bin | |
GCC_LIB = $(TOS_LIB) | |
#=============================================================================== | |
# compiler tools setup | |
#=============================================================================== | |
CC = $(GCC_BIN)/$(TOS_COMMAND_PREFIX)gcc | |
CXX = $(GCC_BIN)/$(TOS_COMMAND_PREFIX)gcc | |
ASM = $(GCC_BIN)/$(TOS_COMMAND_PREFIX)as | |
AR = $(GCC_BIN)/$(TOS_COMMAND_PREFIX)ar | |
LD = $(GCC_BIN)/$(TOS_COMMAND_PREFIX)ld | |
ELF2BIN = $(GCC_BIN)/$(TOS_COMMAND_PREFIX)objcopy | |
#=============================================================================== | |
# C include path setup | |
#=============================================================================== | |
INCLUDE = -I$(ZP_ROOT)/ \ | |
-I$(TOS_INC) \ | |
-I$(TOS_INC)/$(CPU_ARCH) | |
#=============================================================================== | |
# C++ STL(standard template library) include path setup | |
#=============================================================================== | |
STDINCLUDE += | |
#=============================================================================== | |
# gcc flags setup | |
#=============================================================================== | |
export CCFLAGS = -I$(GCC_INC) -Wall -Wstrict-prototypes -Winline -Wundef -Wa,-mfpf -Wl,--gc-sections -g -c -Os -fdata-sections -fno-exceptions -fshort-enums -fsigned-char -msoft-float -mcpu=$(CPU_ARCH) | |
export CXXFLAGS = $(CCFLAGS) | |
#=============================================================================== | |
# assembler flags setup | |
#=============================================================================== | |
ASFLAGS = -mcpu=$(CPU_ARCH) | |
#=============================================================================== | |
# archieve flags setup | |
#=============================================================================== | |
ARFLAGS = -rcs | |
#ARFLAGS = -r -o | |
#=============================================================================== | |
# library include path setup | |
#=============================================================================== | |
LDFLAG = -nostartfiles -L$(GCC_LIB) -Ttarget.ld | |
#=============================================================================== | |
# ld setup | |
#=============================================================================== | |
LDOUT = | |
LDMAP = | |
#=============================================================================== | |
# elf to binary tools setup | |
#=============================================================================== | |
ELF2BINOUT = -O binary | |
#=============================================================================== | |
# user defintion | |
#=============================================================================== | |
export PLAT_GCC_OPTIMIZE = -O2 | |
export COM_GCC_OPTIMIZE = -O2 | |
export DRV_GCC_OPTIMIZE = -O2 | |
export PS_GCC_OPTIMIZE = -O2 | |
export TOOLS_GCC_OPTIMIZE = -O2 | |