📄 diab.mak
字号:
#************************************************************************
#Filename : diab.mak
#Description: Diab 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.
#************************************************************************
# Check for required definitions - DIABLIB must be defined in the environment
ifndef DIABLIB
$(error DIABLIB is not defined. It must be set to the diab main directory)
endif
# Set supported TARGET_OS's for these compiler tools
LEGAL_COMPILER_OS:= psos nucleus vxworks
# Set legal values for COMPILER_TOOL_VERSION
LEGAL_COMPILER_TOOL_VERSION:= 4.3 5.5
# Set up rvbuildconfig.h definitions for COMPILER_TOOL and COMPILER_TOOL_VERSION
# to map to rvtooldefs.h
COMPILER_TOOL_LINE:= "RV_TOOL_TYPE_DIAB"
ifeq ($(COMPILER_TOOL_VERSION), 4.3)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_DIAB_4_3"
endif
ifeq ($(COMPILER_TOOL_VERSION), 5.5)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_DIAB_5_5"
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 +=
INCLUDE_DIRS += $(DIABLIB)/include
LIBS_LIST +=
LIB_DIRS +=
# Compiler setup - DIAB defaults for all targets
CC := dcc
CFLAGS += -Xansi
INCLUDE_FLAG := -I
C_DEBUGFLAG := -g
C_OPTFLAG := -XO
COMPILE_ONLY_FLAG := -c
OBJ_EXTENSION := .o
CC_OBJ_OUTPUT = -o $@
AR := dar
LIB_EXTENSION := .a
LIB_PREFIX := lib
LIB_OUTPUT = $@
ifeq ($(COMPILER_TOOL_VERSION), 5.5)
LINK := dld
ARFLAGS := vrus
LD_DEBUGFLAG :=
else
LINK := dcc
ARFLAGS := -r
LD_DEBUGFLAG := $(C_DEBUGFLAG)
endif
LDFLAGS +=
LIBS_FLAG := -l
LIBS_USE_FULLNAME := no
LIBS_DIRFLAG:= -L
DEPEND_EXTENSION:= .d
# 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 -c $(CFLAGS) "$<" -o $*.t 2>&1 | \
grep -v "warning (" | grep -v "error (" | sort -u | \
sed 's*^*$*.o $@: *' > $@; \
rm -f $*.t; [ -e $@ ] || rm -f $@
# Compiler setup - DIAB for pSOS specifics
ifeq ($(TARGET_OS), psos)
CFLAGS += -t$(TARGET_CPU_ID):psos
LDFLAGS += -t$(TARGET_CPU_ID):psos -Xsuppress-dot -Xreloc-bug -m2 -e _START
endif
# Compiler setup - DIAB for Nucleus specifics
ifeq ($(TARGET_OS), nucleus)
CFLAGS += -t$(TARGET_CPU_ID):simple
C_DEBUGFLAG += -DNU_DEBUG
LDFLAGS += -t$(TARGET_CPU_ID):simple -Xsuppress-dot -Xreloc-bug -m2 -e _START
endif
# Compiler setup - DIAB for VxWorks specifics
ifeq ($(TARGET_OS), vxworks)
ifeq ($(TARGET_OS_VERSION), 2.0)
CFLAGS += -t$(TARGET_CPU_HEADERS):tornado
LDFLAGS += -t$(TARGET_CPU_HEADERS):tornado -X -N -Xgenerate-paddr
endif
ifeq ($(TARGET_OS_VERSION), 2.2)
CFLAGS += -t$(TARGET_CPU_HEADERS):vxworks55
LDFLAGS += -t$(TARGET_CPU_HEADERS):vxworks55 -X -r -N -Xgenerate-paddr
endif
CFLAGS += -W:c:,-Xmismatch-warning=2 \
-ew1554,1551,1552,1086,1047,1547 \
-Xclib-optim-off \
-Xstrings-in-text=0 \
-Wa,-Xsemi-is-newline \
-ei1516,1643,1604 \
-Xlocal-data-area-static-only \
-Xsize-opt \
-Xaddr-code=0x11 \
-Xaddr-data=0x11 \
-Xstruct-max-align=4 \
-Xlint \
-DCPU=PPC$(TARGET_CPU_ID) \
-DTOOL_FAMILY=diab \
-DTOOL=diab
endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -