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

📄 makemac

📁 FDI Intel开发的FLASH文件系统,功能很强大
💻
字号:
 ### Copyright(R) 1997 Intel Corporation
 ########################################################################
 ###
 ### Object: FDI Make Macro file. This file exists to set up all path
 ###         names and compile time options for the source code, 
 ###         operating system files, and compiler tools for the FDI 
 ###         project. This file is used as an include file for all of
 ###         the FDI make files. It is not a make file. You will need to 
 ###         carefully modify this file to set up the appropriate path
 ###         names for your operating system and compiler tools as well
 ###         as the appropriate options. Please follow the porting
 ###         directions provided below to accomplish modification of this
 ###         file.
 ###
 ###
 ###
 ###   $Workfile: makemac $
 ###   $Revision: 1 $
 ### 
 
################################################################
# Include CPU32 specific definitions and flags for the GNU Tools
# IMPORTANT: These definitions and includes are specific to
#            the Wind River Systems VxWorks development environment
#            You may be able to delete or comment out the following
#            four lines, however, your compiler tools may have
#            specific directives that it requires and they can be 
#            placed here.
################################################################
TOOL=gnu
include $(WIND_BASE)/target/h/make/make.$(CPU)$(TOOL)

##################################################################
# Tornado include directories
# IMPORTANT: The following defines set up the path names to the 
#            various Wind River Systems Operating System 
#            directory paths you must modify these to add
#            any paths necessary for various include directories
#            for your operating system. This will depend on which OS
#            directories you have. The names of these may be modified,
#            however, if this is done, it must be coordinated with
#            the makefiles which use the defines.
#            Please note that WIND_BASE is a system environment variable
#            set up in our test environment. These can be changed to
#            become direct path names. These paths are pulled in to
#            the compile for prototypes for operating system calls
#            and various operating system usages as defined in the
#            porting guide.
####################################################################
ifeq ($(CPU),CPU32)
   TGT_H        = $(WIND_BASE)/target/h 
   TGT_CFGALL   = $(WIND_BASE)/target/config/all
   TGT_SRCCFG   = $(WIND_BASE)/target/src/config
   TGT_SRCDRV   = $(WIND_BASE)/target/src/drv
   TGT_DRVTMR   = $(WIND_BASE)/target/h/drv/timer
   TGT_EST360   = $(WIND_BASE)/target/config/est360
   TGT_MULTI    = $(WIND_BASE)/target/h/drv/multi
else
   TGT_H        = $(WIND_BASE)/target/h 
   TGT_SIO      = $(WIND_BASE)/target/h/drv/sio
   TGT_TIMER    = $(WIND_BASE)/target/h/drv/timer
   TGT_PID7T    = $(WIND_BASE)/target/config/pid7t
   TGT_DIR      = $(WIND_BASE)/target
endif

 
################################################################
# Include CPU32 specific definitions and flags for the GNU Tools
# IMPORTANT: These definitions and includes are specific to
#            the Wind River Systems VxWorks development environment
#            You may be able to delete or comment out the following
#            four lines, however, your compiler tools may have
#            specific directives that it requires and they can be 
#            placed here.
################################################################

ifeq ($(CPU),CPU32)
   GCC_EXEC_PREFIX = $(WIND_BASE)/host/x86-win32/lib/gcc-lib/
else
   PRJ_LIBS = $(WIND_BASE)/host/x86-win32/lib/gcc-lib/arm-wrs-vxworks/2.7.9-970819/libgcc.a
endif

##################################################################
# FDI source directories path setup
# IMPORTANT: The following defines set up the path names to the 
#            various fdi directory paths. You should NOT need to
#            modify these if the fdi zip file was unzipped with
#            the 'pkunzip -d' command and the directory structure
#            has not been modified. If you have modified the
#            directory structure, please modify appropriately.
#            The test_pc/test_gsm/test_inc and test_com directories 
#            will not exist for OEM's as they are the FDI test code 
#            and not part of the release. These defines can be left  
#            as they are.
####################################################################
FDI          = $(FDI_PATH)/fdi
COMMON       = $(FDI_PATH)/common
LOWLVL       = $(FDI_PATH)/lowlvl
TEST_GSM     = $(FDI_PATH)/test_gsm
TEST_PC      = $(FDI_PATH)/test_pc
TEST_COM     = $(FDI_PATH)/test_com
INCLUDE      = $(FDI_PATH)/include
TEST_INC     = $(FDI_PATH)/test_inc
DAV          = $(FDI_PATH)/dav_enh
DAV_INC      = $(FDI_PATH)/dav_inc
FM           = $(FDI_PATH)/fm_enh
FM_INC       = $(FDI_PATH)/fm_inc
PERF         = $(FDI_PATH)/perf_cm

####################################################################### 
# Assembler Flags
# Currently no assembler flags are needed for our environment. If you
# choose to use the assembler for your system, set any flags appropriate
#######################################################################
ASFLAGS  =

##################################################################
# The following options are C compiler Flags for the gcc compiler.
# IMPORTANT: You need to modify these options to be applicable to
#            your compiler. The descriptions below are for the 
#            gcc compiler. Modify the CFLAGS defines below to
#            incorporate your compiler options.
#
# CFLAGS              Extra flags to give the C compiler
#        -B           specify path to find GCC tools (instead of GCC_EXEC_PREFIX)
#        -c           generate object files only, 
#        -msoft-float
#        -mnobitfield
#        -fvolatile   use volatile flag,
#        -fno-builtin don't recognize built-in functions (helps when debugging)
#        -O           use the optimization now (hopefully it works well)
#        -pipe        Use pipes instead of temp files
#        -ansi        ANSI
#        -pedantic    Strict ANSI Warnings
#        -Wall        GNU's Recommended Warnings Set
#        -Wno-format  Turn of printf format warnings (Standard C and vxworks printf formats differ)
#        -fno-common  causes an error when 2 global vars with same name are linked together. 
#                     (Normally commented out, because is also put all vars into data segment,
#                      making the objects files larger)      
#        -g           debug on
# 
#####################################################################
CFLAGS   = -c
CFLAGS  += -O2
ifeq ($(CPU),CPU32)
   CFLAGS  += -msoft-float -mnobitfield
   CFLAGS  += -fvolatile -fno-builtin
else
   CFLAGS  +=  -mcpu=arm7tdmi -mapcs-32 -mno-thumb-interwork -ansi -nostdinc 
   CFLAGS  +=  -DRW_MULTI_THREAD -D_REENTRANT -mno-sched-prolog -fno-builtin -fvolatile 
endif
### Remove -ansi -pedantic for INLINE ASM
CFLAGS  += -ansi -pedantic -Wall
###CFLAGS += -Wno-format
###CFLAGS += -fno-common 
CFLAGS  += -g

##################################################################
# The following options are C preprocessor flags for the gnu 
# preprocessor.
# IMPORTANT: You need to modify these options to be applicable to
#            your compiler/pre-processor. The descriptions below are 
#            for the gnu tools. Modify the CFLAGS defines below to
#            incorporate your compiler options.
#
# CPPFLAGS            Extra flags to give the C preprocessor
#        -DCPU        define CPU
#        -nostdinc    disable standard include paths
#        -I           set our include paths
#        -M           create make rules for include files
###################################################################

CPPFLAGS  =  -DCPU=$(CPU)
CPPFLAGS +=  -nostdinc
###CPPFLAGS +=  -M
CPPFLAGS +=  -I$(TEST_INC) -I$(INCLUDE) -I- -I$(DAV_INC) -I$(FM_INC) -I$(PERF)

ifeq ($(CPU),CPU32)
   CPPFLAGS +=  -I$(TGT_H) -I$(TGT_CFGALL) -I$(TGT_SRCCFG) -I$(TGT_SRCDRV) -I$(TGT_DRVTMR)
   CPPFLAGS +=  -I$(TGT_EST360) -I$(TGT_MULTI)
else
   CPPFLAGS +=  -I$(TGT_H) -I$(TGT_SIO)  -I$(TGT_TIMER) -I$(TGT_PID7T)
endif

##################################################################### 
# Linker (ld) Flags
# The following options are Linker flags for the gnu 
# Linker tools
# IMPORTANT: You need to modify these options to be applicable to
#            your linker. The descriptions below are 
#            for the gnu tools. Modify the LNKFLAGS defines below to
#            incorporate your linker options.
#
# LNKFLAGS   Extra flags to give the Linker
#        -N     Do not page-align the data segment
#
#####################################################################
LNKFLAGS  =  -N

##################################################################### 
# Include dependencies
# IMPORTANT: This define sets up the include dependencies to determine 
#            when any output files require changing and a 
#            re-make needs to occur. This define should not require any
#            changes.
######################################################################
INCS      = $(INCLUDE)/FDI_Type.h $(INCLUDE)/FDI_err.h $(INCLUDE)/FDI_que.h 
INCS     += $(INCLUDE)/fdi_int.h $(INCLUDE)/fdi_ext.h $(INCLUDE)/FDI_lowl.h
INCS     += $(INCLUDE)/fdi_pckt.h $(INCLUDE)/fdi_mutx.h $(TEST_INC)/fdi_cust.h
TESTINCS  = $(TEST_INC)/Debug.h $(TEST_INC)/fdi_cust.h
TESTINCS += $(TEST_INC)/Async.h $(TEST_INC)/Comm.h $(TEST_INC)/Gsm_ms.h $(TEST_INC)/Slc.h
TESTINCS += $(TEST_INC)/Timer.h $(TEST_INC)/embscr.h $(TEST_INC)/Layer3.h
TESTINCS += $(TEST_INC)/Message.h $(TEST_INC)/testscr.h
DAVINCS   = $(DAV_INC)/dav.h $(DAV_INC)/davalloc.h $(DAV_INC)/davcghdr.h
DAVINCS  += $(DAV_INC)/davevent.h $(DAV_INC)/davflash.h
DAVINCS  += $(DAV_INC)/davgetnh.h $(DAV_INC)/davhdr.h $(DAV_INC)/davinit.h
DAVINCS  += $(DAV_INC)/davlib.h $(DAV_INC)/davmath.h $(DAV_INC)/davrcvpg.h
DAVINCS  += $(DAV_INC)/davrcvpr.h $(DAV_INC)/davrecip.h $(DAV_INC)/davrecl.h
DAVINCS  += $(DAV_INC)/davrcvr.h $(DAV_INC)/davrecpg.h $(DAV_INC)/davrecpr.h 
DAVINCS  += $(DAV_INC)/davrecrv.h $(DAV_INC)/davrectb.h $(DAV_INC)/davsrecl.h 
DAVINCS  += $(DAV_INC)/davtpdef.h $(DAV_INC)/davott.h
FMINCS    = $(FM_INC)/fdi_file.h
PERFINCS  = $(PERF)\CM_Perf.h


######################################################################## 
# Make dependencies
# IMPORTANT: This define sets up the file dependencies to determine 
#            when any output files require changing and a 
#            re-make needs to occur. This define should not require any
#            changes.
########################################################################
MAKES     = $(FDI_PATH)/makeAnch $(FDI_PATH)/makeMac


⌨️ 快捷键说明

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