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

📄 worldclock.mk

📁 基于联芯客户的SDK软件
💻 MK
字号:
##########################################################################
# makefile:         
# File:             
# Version:          0.10
# Author:   
#   The following nmake targets are available in this makefile:
#
#     all           - make $(APP_TARGET).dcm or $(APP_TARGET).pli
#     clean         - delete all object files and $(APP_TARGET).dcm/.pli 
#                     and main_lib.axf 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/1.1/arena

#Arena path
ARENA_INC_HOME = $(ARENA_HOME)/include

#dcm frame path
DCM_FRAME_PATH = $(ARENA_HOME)/lib/lemans

##########################################################################
#DApp name settings
##########################################################################
# name prefix for dynamic application module
DAPP_DCM_PREFIX = 

# name postfix for dynamic application module
DAPP_DCM_POSTFIX = .dcm

#dynamic application module target
DAPP_DCM_TARGET = $(DAPP_DCM_PREFIX)$(APP_TARGET)$(DAPP_DCM_POSTFIX)

##########################################################################
#compilers, utilities
##########################################################################
APP_RM = rm -rf

APP_CC = armcc
APP_AR = armar
APP_LINK =armlink


##########################################################################
#compiler specific options
##########################################################################
#Interworking qualifiers
APP_INTER_OPT = -apcs /interwork -DPF_FEA_FW20_SUPPORT -DENABLE_THEMEPICTURE -DPF_FEA_FW20_DAMS

##########################################################################
#debug flags
##########################################################################
APP_DEBUG_OPT = -g

##########################################################################
# link compiler flags
##########################################################################
LINK_FLAG_NORM =  -reloc -split #-noscanlib  
LINK_FLAG_ADDR = -ro-base 0 -rw-base 0
LINK_FLAG_ENTR = -entry sys_main_entry
LINK_FLAG_WEAK = -keep dcm_main -keep dcm_init -keep dcm_exit -keep _dcm_get_symbol_

LINK_FLAG = $(LINK_FLAG_NORM) $(LINK_FLAG_ADDR) $(LINK_FLAG_ENTR) $(LINK_FLAG_WEAK) 	

	
##########################################################################
# combine compiler flags
##########################################################################
APP_CFLAGS  =  $(APP_INTER_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)/bmp_worldmap.o \
		$(APP_OBJDIR)/worldclock.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 = execute

# create a dynamic module
all:  $(APP_OBJS) $(DCM_FRAME_PATH)/libos_dcm_frame.a
	$(APP_LINK)  $(LINK_FLAG)  -output  main_lib.axf  $^
	fromelf  -nolinkview -elf -output $(APP_OBJDIR)/$(DAPP_DCM_TARGET) main_lib.axf
	
#delete all object files and library file
clean:
	$(APP_RM) $(APP_OBJS) $(APP_OBJDIR)/$(DAPP_DCM_TARGET) main_lib.axf 	
	

⌨️ 快捷键说明

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