?? solaris.mak
字號:
# Solaris and compiler definitions
# Currently only supports Sun Workshop and GNU compilers
# Assumes default include paths for the compilers are set properly
# 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 += solaris.mak
INCLUDE_DIRS +=
LIBS_LIST += socket nsl pthread posix4
LIB_DIRS += /usr/lib
# Indicate if executable targets can be built for this OS via these makefiles
# Set to yes if they can be built, no if they can't.
BUILD_EXECUTABLE := yes
# Extention to target name for executable (ie .exe for Windows)
EXECUTE_EXTENTION :=
ifeq ($(COMPILER), sparcworks)
# Compiler setup - Sun Workshop
CC := cc -mt
INCLUDE_FLAG := -I
C_DEBUGFLAG := -g
C_OPTFLAG := -O
CFLAGS +=
OBJ_EXTENTION := .o
AR := ar
ARFLAGS := -rc
LIB_EXTENTION := .a
LINK := cc
LIBS_FLAG := -l
LIBS_DIRFLAG:= -L
LDFLAGS +=
# 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 $@
else
ifeq ($(COMPILER), gnu)
# Compiler setup - GNU
CC := gcc -D_REENTRANT
INCLUDE_FLAG := -I
C_DEBUGFLAG := -g
C_OPTFLAG := -O3
CFLAGS +=
OBJ_EXTENTION := .o
AR := ar
ARFLAGS := -rc
LIB_EXTENTION := .a
LINK := gcc
LIBS_FLAG := -l
LIBS_DIRFLAG:= -L
LDFLAGS +=
# 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) -M -c $(CFLAGS) $< | \
sed '1s*^*$*.d $(*D)/*' > $@; \
[ -s $@ ] || rm -f $@
else
# Only sparcworks, gnu are supported for sun
$(error Compiler '$(COMPILER)' not supported for Solaris. Only 'sparcworks' (Sun Workshop) and 'gnu' are currently supported)
endif
endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -