sysid.mak
来自「symbian 上的stl_port进过编译的。」· MAK 代码 · 共 90 行
MAK
90 行
# Time-stamp: <05/12/15 01:46:03 ptr>ifndef BUILD_DATEifeq (mwccnlm,$(COMPILER_NAME))# this is really crossTARGET_OS := netwareendififndef TARGET_OSOSNAME := $(shell uname -s | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')# RedHat use nonstandard options for uname at least in cygwin,# macro should be overwritten:ifeq (cygwin,$(findstring cygwin,$(OSNAME)))OSNAME := cygmingOSREALNAME := $(shell uname -o | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')endififeq (mingw,$(findstring mingw,$(OSNAME)))OSNAME := cygmingOSREALNAME := mingwendifOSREL := $(shell uname -r | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')M_ARCH := $(shell uname -m | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')ifeq ($(OSNAME),hp-ux)P_ARCH := unknownelseP_ARCH := $(shell uname -p | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')endifelse# TARGET_OS defined, cross compilation assumedifndef (mwccnlm,$(COMPILER_NAME))OSNAME := $(shell echo ${TARGET_OS} | sed 's/^[a-z0-9_]\+-[a-z0-9]\+-\([a-z]\+\).*/\1/' | sed 's/^[a-z0-9_]\+-\([a-z]\+\).*/\1/' )OSREL := $(shell echo ${TARGET_OS} | sed 's/^[[:alnum:]_]\+-[a-z0-9]\+-[a-z]\+\([a-zA-Z.0-9]*\).*/\1/' | sed 's/^[a-z0-9_]\+-[a-z]\+\([a-zA-Z.0-9]*\).*/\1/' )M_ARCH := $(shell echo ${TARGET_OS} | sed 's/^\([a-z0-9_]\+\)-.*/\1/' )P_ARCH := unknownelseOSNAME := netwareOSREL := 5M_ARCH := i386P_ARCH := unknownendif# TARGET_OSendifNODENAME := $(shell uname -n | tr '[A-Z]' '[a-z]' )SYSVER := $(shell uname -v )USER := $(shell echo $$USER )ifeq ($(OSNAME),freebsd)OSREL_MAJOR := $(shell echo ${OSREL} | tr '.-' ' ' | awk '{print $$1;}')OSREL_MINOR := $(shell echo ${OSREL} | tr '.-' ' ' | awk '{print $$2;}')endif# OS_VER := $(shell uname -s | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',_')BUILD_SYSTEM := $(shell echo `uname -n` `uname -s` `uname -r` `uname -v` `uname -m` $$USER)BUILD_DATE := $(shell date +'%Y/%m/%d %T %Z')BUILD_OSNAME := $(shell uname -s | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')# RedHat use nonstandard options for uname at least in cygwin,# macro should be overwritten:ifeq (cygwin,$(findstring cygwin,$(BUILD_OSNAME)))BUILD_OSNAME := cygmingBUILD_OSREALNAME := $(shell uname -o | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')endififeq (mingw,$(findstring mingw,$(BUILD_OSNAME)))BUILD_OSNAME := cygmingBUILD_OSREALNAME := mingwendifBUILD_OSREL := $(shell uname -r | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')BUILD_M_ARCH := $(shell uname -m | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')ifeq ($(OSNAME),hp-ux)BUILD_P_ARCH := unknownelseBUILD_P_ARCH := $(shell uname -p | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')endif# end of BUILD_DATE not definedendif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?