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

📄 gnu.mak

📁 基于h323协议的软phone
💻 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:= solaris vxworks linux unixware

# Set legal values for COMPILER_TOOL_VERSION
LEGAL_COMPILER_TOOL_VERSION:= cyg-2.7 2.9 3.0

# Set up rvbuildconfig.h definitions for COMPILER_TOOL and COMPILER_TOOL_VERSION
# to map to rvtooldefs.h
COMPILER_TOOL_LINE:= "RV_TOOL_TYPE_GNU"
ifeq ($(COMPILER_TOOL_VERSION), cyg-2.7)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_GNU_CYG_2_7"
endif
ifeq ($(COMPILER_TOOL_VERSION), 2.9)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_GNU_2_9"
endif
ifeq ($(COMPILER_TOOL_VERSION), 3.0)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_GNU_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 := 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
LDFLAGS +=
LD_DEBUGFLAG := $(C_DEBUGFLAG)
DEPEND_EXTENSION:= .d

# Compiler setup - GNU for VxWorks specifics
ifeq ($(TARGET_OS), vxworks)
CC := cc$(TARGET_CPU_FAMILY)
ifeq ($(TARGET_OS_VERSION), 2.0)
# Only Tornado 2.0 should use this flag
CFLAGS += -nostdinc
endif
CFLAGS += -fno-builtin -mcpu=$(TARGET_CPU_ID) -DCPU=$(TARGET_CPU_HEADERS) -D_GNU_TOOL
AR := ar$(TARGET_CPU_FAMILY)
LINK := cc$(TARGET_CPU_FAMILY)
LIBS_LIST += $(TARGET_CPU_HEADERS)gnuvx

# Following are fixes enabling tornado to download the outputs to the target.
# they will affirm the creation of a single object file, instead of archive.
LINK := ld$(TARGET_CPU_FAMILY) -r -X
LIB_EXTENSION := .o
endif

# Compiler setup - GNU for Solaris specifics
ifeq ($(TARGET_OS), solaris)
CFLAGS += -D_REENTRANT -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__ -DBSD_COMP
C_OPTFLAG := -O3
endif

# Compiler setup - GNU for Linux specifics
ifeq ($(TARGET_OS), linux)
CFLAGS += -pthread -D_GNU_SOURCE
LDFLAGS += -pthread
endif

# Compiler setup - GNU for UnixWare specifics
ifeq ($(TARGET_OS), unixware)
CFLAGS += 
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 + -