📄 sun.mak
字号:
#************************************************************************
#Filename : sun.mak
#Description: Sun compiler definitions (Sparcworks, Workshop, Forte, etc)
#************************************************************************
# 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.
#************************************************************************
# Assumes default include paths for the compilers are set properly
# Set supported TARGET_OS's for these compiler tools
LEGAL_COMPILER_OS:= solaris
# Set legal values for COMPILER_TOOL_VERSION
LEGAL_COMPILER_TOOL_VERSION:= 4 5 6
# Set up rvbuildconfig.h definitions for COMPILER_TOOL and COMPILER_TOOL_VERSION
# to map to rvtooldefs.h
COMPILER_TOOL_LINE:= "RV_TOOL_TYPE_SUN"
ifeq ($(COMPILER_TOOL_VERSION), 4)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_SUN_SPARCWORKS_4"
endif
ifeq ($(COMPILER_TOOL_VERSION), 5)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_SUN_WORKSHOP_5"
endif
ifeq ($(COMPILER_TOOL_VERSION), 6)
COMPILER_TOOL_VERSION_LINE:= "RV_TOOL_SUN_FORTE_6"
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 - Sun Compiler Defaults
CC := cc
CFLAGS += -mt -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
INCLUDE_FLAG := -I
C_DEBUGFLAG := -g
C_OPTFLAG := -O
COMPILE_ONLY_FLAG := -c
OBJ_EXTENSION := .o
CC_OBJ_OUTPUT = -o $@
AR := ar
ARFLAGS := -rc
LIB_EXTENSION := .a
LIB_PREFIX := lib
LIB_OUTPUT = $@
LINK := cc
LIBS_FLAG := -l
LIBS_USE_FULLNAME := no
LIBS_DIRFLAG:= -L
LDFLAGS +=
LD_DEBUGFLAG := $(C_DEBUGFLAG)
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) -xM -c $(CFLAGS) $< | \
sort -u | \
sed 's*^*$*.d $(*D)/*' > $@; \
[ -s $@ ] || rm -f $@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -