📄 motechdict.mk
字号:
##########################################################################
# makefile:
# File:
# Version: 0.10
# Author:
# The following nmake targets are available in this makefile:
#
# all - make $(APP_TARGET).a
# clean - delete all object files and $(APP_TARGET).a file
# filename.o - make object file
#
# The above targets can be made with the following command:
#
# make $(TARGET).mk
#
# Assumptions:
# 1. The ARM ADS 1.0.1 tools are installed.
# 2. This Makefile can be used with the ARM ADS 1.0.1 Compiler.
# 3. GNU make Tools environment is build.
###########################################################################
##########################################################################
#Arena Path
##########################################################################
#Release Home
ARENA_HOME = "C:/DTmobile/ArenaSDK/0.2/arena"
#Arena path
ARENA_INC_HOME = $(ARENA_HOME)/include
##########################################################################
#App name settings
##########################################################################
# name prefix for static libraries
APP_LIB_PREFIX =
# name postfix for static libraries
APP_LIB_POSTFIX = .a
#static library target
APP_LIB_TARGET = $(APP_LIB_PREFIX)$(APP_TARGET)$(APP_LIB_POSTFIX)
##########################################################################
#compilers, utilities
##########################################################################
APP_RM = rm -rf
APP_CC = armcc
APP_AR = armar
##########################################################################
#archive specific options
##########################################################################
#Archive options
APP_AR_OPT = -create
##########################################################################
#compiler specific options
##########################################################################
#Optimization options
APP_OPT_OPT = -O0
#Optimization time options
APP_TIME_OPT = #-Otime
#Interworking qualifiers
APP_INTER_OPT = -apcs /interwork -W -D__NOUNIX__ -D_EXT_CTRL_ANIMATION -D__THREADX__ -DMONACO
#Stack checking qualifiers
APP_SWST_OPT = #-apcs /swst
#ANSI option
APP_ANSI_OPT = -ansi
#Cpu name option
ifeq ("$(CPU)","")
CPU_NAME = arm7
else
CPU_NAME = $(CPU)
endif
ifeq ("$(CPU_NAME)","arm7")
APP_CPU_OPT = -cpu ARM7TDMI
endif
#Float point cpu
APP_FPU_OPT = -softvfp
#Switch
APP_FEA_FILE_SYSTEM_SWITCH_OPT = -DOS_FEA_FILE_SYSTEM_SWITCH
#Debug Switch
DEBUG_SWITCH_OPT = -DDEBUG_SWITCH
#Serial print
APP_FEA_SERIAL_PORT_PATCH_SWITCH_OPT = -DOS_FEA_SERIAL_PORT_PATCH_SWITCH
##########################################################################
#debug flags
##########################################################################
APP_DEBUG_OPT = -g
##########################################################################
# combine compiler flags
##########################################################################
APP_CFLAGS = $(APP_DEBUG_OPT) $(APP_CPU_OPT) $(APP_INTER_OPT) $(APP_SWST_OPT) $(APP_TIME_OPT) \
$(APP_OPT_OPT) $(APP_FEA_FILE_SYSTEM_SWITCH_OPT) \
$(APP_FEA_SERIAL_PORT_PATCH_SWITCH_OPT) $(DEBUG_SWITCH_OPT)
# Include file search path options
APP_INCLUDES = \
-I$(ARENA_HOME)/include \
-I$(ARENA_HOME)/include/framework/config-threadx \
-I$(ARENA_HOME)/include/framework \
-I$(ARENA_HOME)/include/framework/tx \
-I$(ARENA_HOME)/include/gal \
-I$(ARENA_HOME)/include/os \
-I$(ARENA_HOME)/include/framework/kernel \
-I$(ARENA_HOME)/include/framework/minigui \
-I$(ARENA_HOME)/include/framework/minigui/control \
-I$(ARENA_HOME)/include/framework/minigui/ctrl \
-I$(ARENA_HOME)/include/framework/minigui/ext \
-I$(ARENA_HOME)/include/framework/tx \
-I$(ARENA_HOME)/include/framework/fwext2 \
-I$(ARENA_HOME)/include/framework/multimedia \
-I$(ARENA_HOME)/include/ime \
-I$(ARENA_HOME)/include/multimedia \
-I$(ARENA_HOME)/include/app2 \
-I.
#object directory
APP_OBJDIR = .
default:all
##########################################################################
#submodule compiler rules
##########################################################################
APP_SRCDIR = .
APP_OBJECTS = $(APP_OBJDIR)/ArenaAppUI.o \
$(APP_OBJDIR)/CutAmr.o \
$(APP_OBJDIR)/Dialog_1000MsgProc.o \
$(APP_OBJDIR)/Engine.o \
$(APP_OBJDIR)/MotechDict.o \
$(APP_OBJECTS): $(APP_OBJDIR)/%.o: $(APP_SRCDIR)/%.c
$(APP_CC) -c $(APP_CFLAGS) $(APP_INCLUDES) -I$(APP_SRCDIR)/ $< -o $@
##########################################################################
#module compiler rules
##########################################################################
#all objects list
APP_OBJS = $(APP_OBJECTS)
#target
APP_TARGET = MotechDict
# create a static linked library
all: $(APP_OBJS)
$(APP_RM) $(APP_OBJDIR)/$(APP_LIB_TARGET)
$(APP_AR) $(APP_AR_OPT) $(APP_OBJDIR)/$(APP_LIB_TARGET) $(APP_OBJS)
#delete all object files and library file
clean:
$(APP_RM) $(APP_OBJS) $(APP_OBJDIR)/$(APP_LIB_TARGET)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -