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

📄 test_dataflash_db321_eb55.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	= at45db321.c test_data_flash_eb55.c 
CTHUMB_C_COMP	= c:\compil\arm250\bin\tcc -c $$SRC $(CTHUMB_C) -o $$OBJ
CTHUMB_C_OBJS	= sram_ice\at45db321.o sram_ice\test_data_flash_eb55.o 

AARM	=  -i..\..\.. -pd "AT91_DEBUG_ICE SETA 0" -pd "SEMIHOSTING SETA 0" -g -dwarf2 -cpu ARM7TDMI -apcs /inter
AARM_SRCS	= data_flash_irq.s ..\..\..\targets\eb55\cstartup.s 
AARM_COMP	= c:\compil\arm250\bin\armasm $(AARM) -o $$OBJ $$SRC
AARM_OBJS	= sram_ice\data_flash_irq.o 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)

# 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		=   ..\..\..\drivers\lib_drv\optm_none\lib_drv_16.alf  \
	 ..\..\..\parts\m55800\optm_none\m55800_lib16.alf 

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

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:		$(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_EBI_EBI_H=..\..\..\periph\ebi\ebi.h \
	 ..\..\..\periph\stdc\std_c.h 
_________PARTS_M55800_M55800_H=..\..\..\parts\m55800\m55800.h \
	 $(_________PERIPH_EBI_EBI_H) \
	 ..\..\..\periph\power_saving\apmc55800.h \
	 ..\..\..\periph\pio\pioa.h ..\..\..\periph\pio\piob.h 
_________PERIPH_AIC_LIB_AIC_H=..\..\..\periph\aic\lib_aic.h \
	 ..\..\..\periph\aic\aic.h 
_________PERIPH_PIO_LIB_PIO_H=..\..\..\periph\pio\lib_pio.h \
	 ..\..\..\periph\pio\pio.h 
_________PERIPH_USART_LIB_USART_H=..\..\..\periph\usart\lib_usart.h \
	 ..\..\..\periph\usart\usart.h 
_________PERIPH_TIMER_COUNTER_LIB_TC_H= \
	..\..\..\periph\timer_counter\lib_tc.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\pmc63200.h 
_________PERIPH_SPI_LIB_SPI_H=..\..\..\periph\spi\lib_spi.h \
	 ..\..\..\periph\spi\spi.h \
	 $(_________PERIPH_POWER_SAVING_LIB_POWER_SAVE_H) 
_________PERIPH_RTC_LIB_RTC_H=..\..\..\periph\rtc\lib_rtc.h \
	 ..\..\..\periph\rtc\rtc.h 
_________PERIPH_ADC_LIB_ADC_H=..\..\..\periph\adc\lib_adc.h \
	 ..\..\..\periph\adc\adc.h 
_________PERIPH_DAC_LIB_DAC_H=..\..\..\periph\dac\lib_dac.h \
	 ..\..\..\periph\dac\dac.h 
_________PARTS_M55800_LIB_M55800_H=..\..\..\parts\m55800\lib_m55800.h \
	 $(_________PARTS_M55800_M55800_H) ..\..\..\periph\arm7tdmi\arm.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_TIMER_COUNTER_LIB_TC_H) \
	 $(_________PERIPH_SPI_LIB_SPI_H) $(_________PERIPH_RTC_LIB_RTC_H) \
	 $(_________PERIPH_ADC_LIB_ADC_H) $(_________PERIPH_DAC_LIB_DAC_H) 
_________DRIVERS_SERIAL_PERIPH_1_SERIAL_PERIPH_1_H= \
	..\..\..\drivers\serial_periph_1\serial_periph_1.h \
	 ..\..\..\periph\stdc\std_c.h $(_________PERIPH_AIC_LIB_AIC_H) \
	 $(_________PERIPH_SPI_LIB_SPI_H) 
# DEPEND: end include files

sram_ice\at45db321.o: at45db321.c $(_________PARTS_M55800_LIB_M55800_H)  \
	 at45db321.h ..\..\..\drivers\serial_periph_1\serial_periph_1.h
	c:\compil\arm250\bin\tcc -c at45db321.c $(CTHUMB_C) -o sram_ice\at45db321.o
sram_ice\test_data_flash_eb55.o: test_data_flash_eb55.c \
	 $(_________PARTS_M55800_M55800_H) at45db321.h
	c:\compil\arm250\bin\tcc -c test_data_flash_eb55.c $(CTHUMB_C) -o \
	 sram_ice\test_data_flash_eb55.o
sram_ice\data_flash_irq.o: data_flash_irq.s \
	 ..\..\..\drivers\serial_periph_1\serial_periph_1_irq.mac
	c:\compil\arm250\bin\armasm $(AARM) -o sram_ice\data_flash_irq.o \
	 data_flash_irq.s
sram_ice\cstartup.o: ..\..\..\targets\eb55\cstartup.s \
	 ..\..\..\targets\eb55\eb55.inc \
	 ..\..\..\targets\eb55\..\cstartup_angel.s \
	 ..\..\..\targets\eb55\..\cstartup_ice.s \
	 ..\..\..\targets\eb55\..\cstartup_flash.s
	c:\compil\arm250\bin\armasm $(AARM) -o sram_ice\cstartup.o \
	 ..\..\..\targets\eb55\cstartup.s

⌨️ 快捷键说明

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