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

📄 interrupt_sarm.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	= interrupt_Timer.c interrupt.c 
CTHUMB_C_COMP	= c:\compil\arm250\bin\tcc -c $$SRC $(CTHUMB_C) -o $$OBJ
CTHUMB_C_OBJS	= aspex\interrupt_Timer.o aspex\interrupt.o 

CARM_C	=  -I..\.. -DAT91_DEBUG_ICE -DSEMIHOSTING -g+ -dwarf2 -apcs /inter -apcs /softfp -cpu ARM7TDMI -zr16 -zi2
CARM_C_SRCS	= ext_irq.c 
CARM_C_COMP	= c:\compil\arm250\bin\armcc -c $$SRC $(CARM_C) -o $$OBJ
CARM_C_OBJS	= aspex\ext_irq.o 

AARM	=  -i..\.. -pd "AT91_DEBUG_ICE SETA 0" -g -dwarf2 -cpu ARM7TDMI -apcs /inter
AARM_SRCS	= irq_timer.s irq_pio.s ..\..\targets\eb40\cstartup.s 
AARM_COMP	= c:\compil\arm250\bin\armasm $(AARM) -o $$OBJ $$SRC
AARM_OBJS	= aspex\irq_timer.o aspex\irq_pio.o aspex\cstartup.o 

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

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

# LIB_DEP is list of dependents for library build ($OBJS for example)
LIB_DEP		=
# LIB_ARGS is argument line for librarian
LIB_ARGS	=

# LIBS are system libraries as name
LIBS		=   ..\..\parts\r40807\optm_none\r40807_lib16.alf 

CC		= cl$(TARGET)
LINKER		= c:\compil\arm250\bin\armlink -elf
LIBRARIAN	=
MAKENAME	= aspex\interrupt_sarm.mk
PRINT		= pr
PROGRAM		= aspex\interrupt_sarm.axf
BUILD_LIB	= none.lib
POST_BUILD	=

OBJS		= $(CFLAGS_OBJS) $(CTHUMB_C_OBJS) $(CARM_C_OBJS) $(AARM_OBJS) 
SRCS		= $(CFLAGS_SRCS) $(CTHUMB_C_SRCS) $(CARM_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:		$(BUILD_LIB) $(PROGRAM) $(POST_BUILD)
		@+echo --- Build-all done ---

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

#BUILD_LIB: this is only valid if filled in at macro point
$(BUILD_LIB):	$(LIB_DEP) $(MAKENAME)
		$(LIBRARIAN) $(LIB_ARGS)

clean:
		+for %d in ($(OBJS) $(PROGRAM)) do if exist %d del %d
rebuild:	clean all
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 
______PARTS_M40800_M40800_H=..\..\parts\m40800\m40800.h \
	 ..\..\periph\arm7tdmi\arm.h $(______PERIPH_SPECIAL_FUNCTION_SF_H) \
	 ..\..\periph\ebi\ebi.h ..\..\periph\aic\aic.h \
	 ..\..\periph\pio\pio.h ..\..\periph\usart\usart.h \
	 ..\..\periph\watchdog\wd.h ..\..\periph\timer_counter\tc.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 
______PARTS_M40800_LIB_M40800_H=..\..\parts\m40800\lib_m40800.h \
	 $(______PARTS_M40800_M40800_H) \
	 ..\..\periph\special_function\lib_sf.h ..\..\periph\ebi\lib_ebi.h \
	 $(______PERIPH_POWER_SAVING_LIB_POWER_SAVE_H) \
	 ..\..\periph\aic\lib_aic.h ..\..\periph\aic\ext_irq\lib_ext_irq.h \
	 ..\..\periph\pio\lib_pio.h ..\..\periph\usart\lib_usart.h \
	 ..\..\periph\watchdog\lib_wd.h ..\..\periph\timer_counter\lib_tc.h 
______PARTS_R40807_LIB_R40807_H=..\..\parts\r40807\lib_r40807.h \
	 $(______PARTS_M40800_LIB_M40800_H) 
______PARTS_R40807_R40807_H=..\..\parts\r40807\r40807.h \
	 $(______PARTS_M40800_M40800_H) 
______TARGETS_EB40_EB40_H=..\..\targets\eb40\eb40.h \
	 $(______PARTS_R40807_R40807_H) 
______PARTS_M40800_REG_M40800_H=..\..\parts\m40800\reg_m40800.h \
	 $(______PARTS_M40800_M40800_H) 
______PARTS_R40807_REG_R40807_H=..\..\parts\r40807\reg_r40807.h \
	 $(______PARTS_M40800_REG_M40800_H) 
# DEPEND: end include files

aspex\interrupt_Timer.o: interrupt_Timer.c $(______PARTS_R40807_LIB_R40807_H)
	c:\compil\arm250\bin\tcc -c interrupt_Timer.c $(CTHUMB_C) -o \
	 aspex\interrupt_Timer.o
aspex\interrupt.o: interrupt.c $(______PARTS_R40807_LIB_R40807_H)  \
	 ..\..\targets\eb40\eb40.h ..\..\parts\r40807\r40807.h
	c:\compil\arm250\bin\tcc -c interrupt.c $(CTHUMB_C) -o aspex\interrupt.o
aspex\ext_irq.o: ext_irq.c $(______PARTS_R40807_LIB_R40807_H)   \
	 ..\..\targets\eb40\eb40.h ..\..\parts\r40807\r40807.h \
	 ..\..\parts\r40807\reg_r40807.h ..\..\parts\m40800\reg_m40800.h
	c:\compil\arm250\bin\armcc -c ext_irq.c $(CARM_C) -o aspex\ext_irq.o
aspex\irq_timer.o: irq_timer.s ..\..\periph\aic\irq.mac
	c:\compil\arm250\bin\armasm $(AARM) -o aspex\irq_timer.o irq_timer.s
aspex\irq_pio.o: irq_pio.s ..\..\periph\aic\irq.mac ..\..\periph\pio\pio.inc
	c:\compil\arm250\bin\armasm $(AARM) -o aspex\irq_pio.o irq_pio.s
aspex\cstartup.o: ..\..\targets\eb40\cstartup.s ..\..\targets\eb40\eb40.inc \
	 ..\..\targets\eb40\..\cstartup_angel.s \
	 ..\..\targets\eb40\..\cstartup_ice.s \
	 ..\..\targets\eb40\..\cstartup_flash.s
	c:\compil\arm250\bin\armasm $(AARM) -o aspex\cstartup.o \
	 ..\..\targets\eb40\cstartup.s

⌨️ 快捷键说明

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