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

📄 polling.mk

📁 ARM入门的好帮手.包含了从简单到相对较复杂的程序.
💻 MK
字号:
#
# Warning: This Makefile is generated by the genmake program from the template:
#	gen_arx.mk - template for ARM compiler to build executables
#	It is advised that you not modify this by hand. If you want
#	to add something, you can change the gen_arx.mk template.
#	Copyright (c) Allant Software 1998
#

TARGET		= ARM
INC_PATHS	= -I..\..

# CFLAGS is the default flags rule. Others are added below
CFLAGS		= -g $(INC_PATHS)
CFLAGS_SRCS	= 
CFLAGS_COMP		= $(CC) -c $(CFLAGS)
CFLAGS_OBJS	= 


CTHUMB_C	=  -I..\.. -DAT91_DEBUG_ICE -DSEMIHOSTING -g+ -dwarf2 -apcs /inter -apcs /softfp -zr16 -zi2
CTHUMB_C_SRCS	= polling.c 
CTHUMB_C_COMP	= c:\tools\arm251\bin\tcc -c $$SRC $(CTHUMB_C) -o $$OBJ
CTHUMB_C_OBJS	= sram_ice\polling.o 

AARM	=  -i..\.. -pd "AT91_DEBUG_ICE SETA 0" -pd "SEMIHOSTING SETA 0" -g -dwarf2 -cpu ARM7TDMI -apcs /inter
AARM_SRCS	= ..\..\targets\eb01\cstartup.s 
AARM_COMP	= c:\tools\arm251\bin\armasm $(AARM) -o $$OBJ $$SRC
AARM_OBJS	= sram_ice\cstartup.o 

#FLAGS end here (put all flag groups above this line)

EXTHDRS		=
HDRS			=
LDFLAGS		=  -info interwork -ro-base 0x2000000 -first sram_ice\cstartup.o(reset)

# LIBS are system libraries as name
LIBS		=   ..\..\parts\m40400\optm_none\m40400_lib16.alf 

CC			= cl$(TARGET)
LINKER		= c:\tools\arm251\bin\armlink -elf
MAKENAME	= sram_ice\polling.mk
PRINT		= pr
PROGRAM		= sram_ice\polling.axf

OBJS		= $(CFLAGS_OBJS) $(CTHUMB_C_OBJS) $(AARM_OBJS) 
SRCS		= $(CFLAGS_SRCS) $(CTHUMB_C_SRCS) $(AARM_SRCS) 

# depend is for dependant rules that should not be linked in
DEPEND	=
O_DEPEND	= 

COMP_LINE	= $(CFLAGS_COMP)

# .c.o is default compile line if not explicitly defined

.c.o :
	$(COMP_LINE) $*.c

# all is first target 
all:		$(PROGRAM)

#LINK: next one is the link command
$(PROGRAM):     $(OBJS) $(DEPEND) $(O_DEPEND) $(MAKENAME)
		$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)

clean:
		+for %d in ($(OBJS) $(PROGRAM)) do if exist %d del %d
rebuild:;	@make -f $(MAKENAME) clean $(PROGRAM)
depend:;	upddep $(MAKENAME)
index:;	ctags -wx $(HDRS) $(SRCS)
print:;	$(PRINT) $(HDRS) $(SRCS)
program:	$(PROGRAM)
tags:		$(HDRS) $(SRCS); ctags $(HDRS) $(SRCS)

# DEPEND: include files below
# Dependency summaries:
# System includes suppressed
______PERIPH_SPECIAL_FUNCTION_SF_H=..\..\periph\special_function\sf.h \
	 ..\..\periph\stdc\std_c.h 
______PERIPH_POWER_SAVING_LIB_POWER_SAVE_H= \
	..\..\periph\power_saving\lib_power_save.h \
	 ..\..\periph\stdc\lib_err.h ..\..\periph\power_saving\ps40400.h \
	 ..\..\periph\power_saving\ps40800.h \
	 ..\..\periph\power_saving\pmc42800.h \
	 ..\..\periph\power_saving\apmc55800.h \
	 ..\..\periph\power_saving\pmc63200.h 
______PERIPH_USART_USART_H=..\..\periph\usart\usart.h \
	 ..\..\periph\pio\lib_pio.h 
______PARTS_M40400_M40400_H=..\..\parts\m40400\m40400.h \
	 ..\..\periph\arm7tdmi\arm.h $(______PERIPH_SPECIAL_FUNCTION_SF_H) \
	 ..\..\periph\ebi\ebi.h \
	 $(______PERIPH_POWER_SAVING_LIB_POWER_SAVE_H) \
	 $(______PERIPH_USART_USART_H) ..\..\periph\watchdog\wd.h \
	 ..\..\periph\timer_counter\tc.h 
______TARGETS_EB01_EB01_H=..\..\targets\eb01\eb01.h \
	 $(______PARTS_M40400_M40400_H) 
______PARTS_M40400_REG_M40400_H=..\..\parts\m40400\reg_m40400.h \
	 $(______PARTS_M40400_M40400_H) 
# DEPEND: end include files

sram_ice\polling.o: polling.c $(______TARGETS_EB01_EB01_H) \
	 $(______PARTS_M40400_REG_M40400_H)
	c:\tools\arm251\bin\tcc -c polling.c $(CTHUMB_C) -o sram_ice\polling.o
sram_ice\cstartup.o: ..\..\targets\eb01\cstartup.s
	c:\tools\arm251\bin\armasm $(AARM) -o sram_ice\cstartup.o \
	 ..\..\targets\eb01\cstartup.s

⌨️ 快捷键说明

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