📄 armmkmac
字号:
################################################################
# Include ARM7TDMI 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.
################################################################
CPU = ARM7TDMI
TOOL=gnu
include $(WIND_BASE)/target/h/make/make.$(CPU)$(TOOL)
##################################################################
# 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.
####################################################################
include makeanch
##################################################################
# 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.
####################################################################
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
INCLUDE = $(FDI_PATH)/include
TEST_INC = $(FDI_PATH)/test_inc
DAV_INC = $(FDI_PATH)/dav_inc
FDI = $(FDI_PATH)/fdi
TEST_GSM = $(FDI_PATH)/test_gsm
LOWLVL = $(FDI_PATH)/lowlvl
COMMON = $(FDI_PATH)/common
DAV = $(FDI_PATH)/dav_enh
FM_INC = $(FDI_PATH)/fm_inc
FM = $(FDI_PATH)/fm_enh
#######################################################################
# 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 = -g
CFLAGS += -O
#CFLAGS += -msoft-float -mnobitfield
#CFLAGS += -fvolatile -fno-builtin
### Remove -ansi -pedantic for INLINE ASM
CFLAGS += -ansi -pedantic -Wall
###CFLAGS += -Wno-format
###CFLAGS += -fno-common
##################################################################
# 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
###################################################################
###CC = ccarm
CFLAGS += -mcpu=arm7tdmi -mapcs-32 -mno-thumb-interwork -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT -mno-sched-prolog -fno-builtin -fvolatile
#CFLAGS_AS = -mcpu=arm7tdmi -mapcs-32 -mno-thumb-interwork -ansi -nostdinc -mno-sched-prolog -fno-builtin -fvolatile -P -x assembler-with-cpp -I.
PRJ_LIBS = $(WIND_BASE)/host/x86-win32/lib/gcc-lib/arm-wrs-vxworks/2.7.9-970819/libgcc.a
###CPPFLAGS = -DCPU=$(CPU)
###CPPFLAGS += -nostdinc
###CPPFLAGS += -M
###CPPFLAGS += -I$(INCLUDE) -I$(TEST_INC)
CPPFLAGS = -I. -I$(TGT_H) -DCPU=$(CPU) -I$(TGT_SIO) -I$(INCLUDE) -I$(TEST_INC) -I$(DAV_INC) -I$(FM_INC) -I$(TGT_TIMER) -I$(TGT_PID7T) -c
#####################################################################
# 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 = -nostdlib -r -Wl,-X -Wl,
#####################################################################
# 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 $(INCLUDE)/FDI_cust.h
TESTINCS = $(TEST_INC)/Debug.h $(TEST_INC)/loadcode.h
TESTINCS += $(TEST_INC)/Async.h $(TEST_INC)/Comm.h $(TEST_INC)/Gsm_ms.h
TESTINCS += $(TEST_INC)/Slc.h $(TEST_INC)/Timer.h $(TEST_INC)/embscr.h
TESTINCS += $(TEST_INC)/Layer3.h $(TEST_INC)/Message.h $(TEST_INC)/testscr.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
DAVINCS += $(DAV_INC)/dav.h $(DAV_INC)/davalloc.h $(DAV_INC)/davcghdr.h
FMINCS = $(FM_INC)/fdi_file.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)/ARMmkMac
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -