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

📄 macros.mk

📁 intel IXP400系列cpu(2.3版)的库文件
💻 MK
字号:
## Macro definitions for top-level OSAL Makefile## # @par# IXP400 SW Release version 2.3# # -- Copyright Notice --# # @par# Copyright (c) 2001-2005, Intel Corporation.# All rights reserved.# # @par# Redistribution and use in source and binary forms, with or without# modification, are permitted provided that the following conditions# are met:# 1. Redistributions of source code must retain the above copyright#    notice, this list of conditions and the following disclaimer.# 2. Redistributions in binary form must reproduce the above copyright#    notice, this list of conditions and the following disclaimer in the#    documentation and/or other materials provided with the distribution.# 3. Neither the name of the Intel Corporation nor the names of its contributors#    may be used to endorse or promote products derived from this software#    without specific prior written permission.# # # @par# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE# ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF# SUCH DAMAGE.# # # @par# -- End of Copyright Notice --# NOTE!# This file currently depends on the following environment variables:# - WIND_HOST_TYPE# - WIND_HOST_BASE# - WIND_BASE###################################################################### Determine the build host OS## Only Solaris and Windows are currently supported for VxWorks builds# In a Tornado environment, WIND_HOST_TYPE should be setifeq ($(WIND_HOST_TYPE), x86-win32)  IX_OSAL_MK_HOST_OS := windowselse  ifeq ($(WIND_HOST_TYPE), sun4-solaris2)    IX_OSAL_MK_HOST_OS := solaris  else    ifeq ($(WIND_HOST_TYPE), x86-linux2)      IX_OSAL_MK_HOST_OS := linux    else      # Otherwise, try OSTYPE      IX_OSAL_MK_HOST_OS := $(OSTYPE)    endif  endifendif# If we don't have a valid OS name, try to use the Unix uname command# to find it.ifeq (,$(filter $(IX_OSAL_MK_HOST_OS), solaris windows linux))  IX_OSAL_MK_HOST_OS := $(shell uname)  IX_OSAL_MK_HOST_OS := $(subst SunOS,solaris,$(IX_OSAL_MK_HOST_OS))endif# If we still don't know, assume it's Windowsifeq (,$(filter $(IX_OSAL_MK_HOST_OS), solaris windows linux))  IX_OSAL_MK_HOST_OS := windowsendif################################################################# vxWorks BSP selection#ifeq ($(IX_DEVICE),ixp42X)ifeq ($(IX_OSAL_MK_TARGET_ENDIAN), vxle)BSP := ixdp425_leelseBSP := ixdp425endifelseifeq ($(IX_OSAL_MK_TARGET_ENDIAN), vxle)BSP := ixdp465_leelseBSP := ixdp465endifendifBSP_DIR := $(WIND_BASE)/target/config/$(BSP)# Windows paths must use '\' as seperator for the MSDOS 'cd' commandifeq ($(IX_OSAL_MK_HOST_OS),windows)ifeq ($(VXSHELL),ZSH) BSP_DIR := $(subst \,/,$(BSP_DIR)) WIND_BASE := $(subst \,/,$(WIND_BASE))else BSP_DIR := $(subst /,\,$(BSP_DIR))endifendif################################################################# Tornado Compiler & linker commandsifeq ($(IX_TARGET),vxsim)ifeq ($(IX_OSAL_MK_HOST_OS),solaris)VX_TOOL_SUFFIX = sparcCFLAGS := -DCPU=SIMSPARCSOLARISelse # Windows or LinuxVX_TOOL_SUFFIX = pentiumifeq ($(IX_OSAL_MK_HOST_OS),linux)CFLAGS := -DCPU=SIMLINUXelse # Windows$(MAKEFILE_TRACE) vxsim_unsupported_in_Windows#CFLAGS := -DCPU=SIMNTendif # .. Windows or Linuxendif # .. solariselseVX_TOOL_SUFFIX = armendififeq ($(TOOL_FAMILY),)ifeq  ($(findstring gnu,$(TOOL)),gnu)TOOL_FAMILY	= gnuelseifeq  ($(findstring diab,$(TOOL)),diab)TOOL_FAMILY	= diabendifendifendififeq ($(TOOL_FAMILY),diab)CC := dccLD := dldAR := darVXWORKS_VER := vxworks62elseCC := cc$(VX_TOOL_SUFFIX)LD := $(CC)AR := ar$(VX_TOOL_SUFFIX)endif# These are tools used to make a .out file with vxWorks ctor/dtor table.ifeq ($(TOOL_FAMILY),diab)NM := ddump -MelseNM := nm$(VX_TOOL_SUFFIX)endifMUNCH := wtxtcl $(WIND_HOST_BASE)/host/src/hutils/munch.tcl -asm $(VX_TOOL_SUFFIX)ifeq ($(TOOL_FAMILY),diab)COMPILE_TRADITIONAL := $(CC) -c -Xdollar-in-identelseCOMPILE_TRADITIONAL := $(CC) -c -fdollars-in-identifiersendif# This is used for the 'memusage' targetOBJDUMP := objdump$(VX_TOOL_SUFFIX)################################################################# Compiler & linker options# Compiler flags# vxWorks compiler flags ifeq ($(IX_TARGET),vxsim)LDFLAGS := -nostdlib -r -Wl,-X MAKE_DEP_FLAG := -MelseCFLAGS := -DRW_MULTI_THREAD -D_REENTRANT \	-DCPU=XSCALE -DCPU_XSCALE -DARMMMU=ARMMMU_XSCALE -DARMCACHE=ARMCACHE_XSCALEifeq ($(TOOL_FAMILY),diab)# compiler and linker flags using Diab compiler  CFLAGS += -w -Xdialect-ansi -Xno-common -D__vxworks -D_DIAB_TOOL -D__XSCALE__  LDFLAGS := -r -W:as:,-x,-X -Ws  MAKE_DEP_FLAG := -Xmake-dependencyelse# compiler and linker flags using GNU compiler  CFLAGS += -Wall -ansi -pedantic -fno-common -mno-sched-prolog -mcpu=xscale  LDFLAGS := -nostdlib -r -Wl,-X  MAKE_DEP_FLAG := -Mendif	ifeq ($(IX_OSAL_MK_TARGET_ENDIAN), vxle)  CFLAGS += -DARMEL -D__ARMEL__ -DLITTLE_ENDIAN_MODE  ifeq ($(TOOL_FAMILY),diab)    LDFLAGS += -tARMXLS:$(VXWORKS_VER)    CFLAGS += -tARMXLS:$(VXWORKS_VER)  else    LDFLAGS += -txscale -Wa,-EL    CFLAGS += -txscale  -Wa,-EL  endifelse  CFLAGS += -DARMEB -D__ARMEB__ -DBIG_ENDIAN_MODE  ifeq ($(TOOL_FAMILY),diab)    LDFLAGS += -tARMXES:$(VXWORKS_VER)    CFLAGS += -tARMXES:$(VXWORKS_VER)  else    LDFLAGS += -txscalebe -Wa,-EB    CFLAGS += -txscalebe -Wa,-EB  endifendifendif#Set additions to the compiler flag based on device chosenifneq (,$(filter $(IX_DEVICE), ixp42X))CFLAGS += -D__ixp42XelseCFLAGS += -D__ixp46XendifCFLAGS +=  -Isrc/include -I$(WIND_BASE)/target/h -I$(BSP_DIR) -I$(BSP_DIR)/../all CFLAGS += \        -I$(WIND_BASE)/target/h/wrn/coreip \	-I$(WIND_BASE)/target/h/drv \	-I$(WIND_BASE)/target/h/drv/intrCtl \	-I$(WIND_BASE)/target/h/drv/i2c \	-I$(WIND_BASE)/target/h/drv/timer \	-I$(WIND_BASE)/target/h/drv/sio

⌨️ 快捷键说明

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