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

📄 psos.mak

📁 h.248协议源码
💻 MAK
字号:
# pSOS and compiler definitions
# Currently only supports diab compiler
# PSS_BSP, PSS_ROOT, and DIABLIB must be defined in the environment

# Only DIAB is supported for pSOS
ifneq ($(COMPILER), diab)
$(error Compiler '$(COMPILER)' not supported for pSOS. Only 'diab' is currently supported)
endif

# Check for required definitions
ifndef PSS_BSP
$(error PSS_BSP is not defined. It must be set to the directory of the bsp to be used)
endif
ifndef PSS_ROOT
$(error PSS_ROOT is not defined. It must be set to the pSOS root directory)
endif
ifndef DIABLIB
$(error DIABLIB is not defined. It must be set to the diab main directory)
endif

# 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 := no

# Extention to target name for executable (ie .exe for Windows)
EXECUTE_EXTENTION :=

# 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 += psos.mak
INCLUDE_DIRS += $(PSS_BSP) $(PSS_ROOT)/include $(DIABLIB)/include
LIBS_LIST += netu loadr bsp drv sys prepcS pnet query c
LIB_DIRS += $(PSS_BSP) $(PSS_ROOT)/sys/libc $(PSS_ROOT)/sys/os

# Compiler setup - DIAB only
CC := dcc -t$(COMPILER_CPU):psos -D_PSOS -Xansi
INCLUDE_FLAG := -I
C_DEBUGFLAG := -g
C_OPTFLAG := -XO
CFLAGS +=
OBJ_EXTENTION := .o
AR := dar
ARFLAGS := -r
LIB_EXTENTION := .a
LINK := dcc -t$(COMPILER_CPU):psos -Xsuppress-dot -Xreloc-bug -m2 -e _START
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) -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 $@

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -