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

📄 solaris.mak

📁 h.248协议源码
💻 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 + -