⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ghs.mak

📁 基于h323协议的软phone
💻 MAK
字号:
#************************************************************************
#Filename   : ghs.mak
#Description: Greenhills Multi 2000 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:= ose

# Set legal values for COMPILER_TOOL_VERSION
LEGAL_COMPILER_TOOL_VERSION:= 3.0-compat 3.5 3.5-compat

# Set up rvbuildconfig.h definitions for COMPILER_TOOL and COMPILER_TOOL_VERSION
# to map to rvtooldefs.h (we also set the compiler mode too).
COMPILER_TOOL_LINE:= "RV_TOOL_TYPE_GHS"
ifeq ($(COMPILER_TOOL_VERSION), 3.0-compat)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_GHS_3_0_COMPAT"
GHS_COMPILER_MODE := compat
# GHS compiler requires a special flag indicating order of network bit stream.
ifeq ($(TARGET_CPU_ENDIAN), little)
CFLAGS += -DLITTLE_ENDIAN
else
CFLAGS += -DBIG_ENDIAN
endif
endif
ifeq ($(COMPILER_TOOL_VERSION), 3.5)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_GHS_3_5"
GHS_COMPILER_MODE := new
endif
ifeq ($(COMPILER_TOOL_VERSION), 3.5-compat)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_GHS_3_5_COMPAT"
GHS_COMPILER_MODE := compat
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 - defaults for all targets
CC := cc$(TARGET_CPU_FAMILY)
CFLAGS += -cpu=$(TARGET_CPU_ID) -ansi -wantprototype
INCLUDE_FLAG := -I
C_DEBUGFLAG := -G
C_OPTFLAG := -Ospeed
COMPILE_ONLY_FLAG := -c
OBJ_EXTENSION := .o
CC_OBJ_OUTPUT = -o $@
AR := ax
ARFLAGS := rc
LIB_EXTENSION := .a
LIB_PREFIX := lib
LIB_OUTPUT = $@
LINK := cc$(TARGET_CPU_FAMILY)
LDFLAGS += -cpu=(TARGET_CPU_ID)
LIBS_FLAG := -l
LIBS_USE_FULLNAME := no
LIBS_DIRFLAG:= -L
LD_DEBUGFLAG := $(C_DEBUGFLAG)
DEPEND_EXTENSION:= .d

# Greenhills compatability mode specifics
ifeq ($(GHS_COMPILER_MODE), compat)
CC := cc$(TARGET_CPU_FAMILY) -compat
LINK := cc$(TARGET_CPU_FAMILY) -compat

# Compatability mode dependency generation
# Define full .d file generation command since they vary so much. The
# target will be the .d file and the first dependency will be the .c file.
MAKEDEPEND = set -e; $(CC) -H -P --brief_diagnostics $(CFLAGS) "$<" -o $*.t 2>&1 | \
		grep -v "line " | grep -v "WARNING" | sort -u | \
		sed 's*^*$*.o $@: *' > $@; \
		rm -f $*.t; [ -e $@ ] || rm -f $@
endif

# Greenhills new generation mode specifics
ifeq ($(GHS_COMPILER_MODE), new)
CC := cc$(TARGET_CPU_FAMILY) -c2000
LINK := cc$(TARGET_CPU_FAMILY) -c2000

# New generation mode dependency generation
# Define full .d file generation command since they vary so much. The
# target will be the .d file and the first dependency will be the .c file.
MAKEDEPEND = set -e; $(CC) -Make $(CFLAGS) "$<" | \
		sed 's*^*$@ *' > $@; \
		[ -e $@ ] || rm -f $@
endif

# Compiler setup - Greenhills for OSE specifics
ifeq ($(TARGET_OS), ose)
CFLAGS += -DOSE_DELTA
C_DEBUGFLAG += -DOS_DEBUG -DUSE_DEBUG_PRINTF
endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -