?? montavista.mak
字號:
#************************************************************************
#Filename : gnu.mak
#Description: GNU compiler tool definitions
#************************************************************************
# Copyright (c) 2001 RADVISION Inc. and RADVISION Ltd.
#************************************************************************
#NOTICE:
#This document contains information that is confidential and proprietary
#to RADVISION Inc. and RADVISION Ltd.. No part of this document may be
#reproduced in any form whatsoever without written prior approval by
#RADVISION Inc. or RADVISION Ltd..
#
#RADVISION Inc. and RADVISION Ltd. reserve the right to revise this
#publication and make changes without obligation to notify any person of
#such revisions or changes.
#************************************************************************
# Set supported TARGET_OS's for these compiler tools
LEGAL_COMPILER_OS:= emblinux
# Set legal values for COMPILER_TOOL_VERSION
LEGAL_COMPILER_TOOL_VERSION:= 2.9
# Set up rvbuildconfig.h definitions for COMPILER_TOOL and COMPILER_TOOL_VERSION
# to map to rvtooldefs.h
COMPILER_TOOL_LINE:= "RV_TOOL_TYPE_MONTAVISTA"
ifeq ($(COMPILER_TOOL_VERSION), 2.9)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_MONTAVISTA_2_9"
endif
ifeq ($(COMPILER_TOOL_VERSION), 3.0)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_MONTAVISTA_3_0"
endif
# Add required info to master lists
# MAKE_LIST - List any OS dependent makefiles (inclduing this one)
# INCLUDE_DIRS - List any OS dependent include directories in search order
# LIBS_LIST - List any OS dependent libraries needed to link executables
# MAKE_LIST +=
# Compiler setup - GNU defaults for all targets
CC := $(TARGET_CPU_FAMILY)-gcc
CFLAGS +=
INCLUDE_FLAG := -I
C_DEBUGFLAG := -g
C_OPTFLAG := -O2
COMPILE_ONLY_FLAG := -c
OBJ_EXTENSION := .o
CC_OBJ_OUTPUT = -o $@
AR := ar
ARFLAGS := -rc
LIB_EXTENSION := .a
LIB_PREFIX := lib
LIB_OUTPUT = $@
LIBS_FLAG := -l
LIBS_USE_FULLNAME := no
LIBS_DIRFLAG:= -L
LINK := gcc
LIB_EXTENSION := .so
LDFLAGS +=
DEPEND_EXTENSION:= .d
#CFLAGS += -fno-builtin -fPIC -mcpu=$(TARGET_CPU_ID) -DCPU=$(TARGET_CPU_HEADERS) -D_GNU_TOOL
CFLAGS += -fPIC
AR := $(TARGET_CPU_FAMILY)-ar
LINK := $(TARGET_CPU_FAMILY)-gcc
# Compiler setup - GNU for Linux specifics
ifeq ($(TARGET_OS), emblinux)
CFLAGS += -pthread -D_GNU_SOURCE
LDFLAGS += -pthread
endif
# Define full .d file generation command since they vary so much. The
# target will be the dependency file and the first dependency will be
# the .c file. Keep this at the end of the file for OS specifics.
MAKEDEPEND = set -e; $(CC) -M -c $(CFLAGS) $< | \
sed '1s*^*$*.d $(*D)/*' > $@; \
[ -s $@ ] || rm -f $@
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -