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

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

ADEFAULT	=  -i..\..\.. -pd "AT91_DEBUG_ICE SETA 0" -pd "SEMIHOSTING SETA 0" -g -dwarf2 -cpu ARM7TDMI -apcs /inter
ADEFAULT_SRCS	= data_flash_irq.s ..\..\..\targets\eb63\cstartup.s 
ADEFAULT_COMP	= c:\compil\arm250\bin\armasm $(ADEFAULT) -o $$OBJ $$SRC
ADEFAULT_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\m63200\optm_none\m63200_lib16.alf 

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

OBJS		= $(CFLAGS_OBJS) $(CTHUMB_C_OBJS) $(ADEFAULT_OBJS) 
SRCS		= $(CFLAGS_SRCS) $(CTHUMB_C_SRCS) $(ADEFAULT_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_M63200_M63200_H=..\..\..\parts\m63200\m63200.h \
	 $(_________PERIPH_SPECIAL_FUNCTION_SF_H) ..\..\..\periph\ebi\ebi.h \
	 ..\..\..\periph\power_saving\pmc63200.h ..\..\..\periph\pio\pioa.h \
	 ..\..\..\periph\pio\piob.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_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_WATCHDOG_LIB_WD_H=..\..\..\periph\watchdog\lib_wd.h \
	 ..\..\..\periph\watchdog\wd.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_SPI_LIB_SPI_H=..\..\..\periph\spi\lib_spi.h \
	 ..\..\..\periph\spi\spi.h 
_________PARTS_M63200_LIB_M63200_H=..\..\..\parts\m63200\lib_m63200.h \
	 $(_________PARTS_M63200_M63200_H) ..\..\..\periph\arm7tdmi\arm.h \
	 ..\..\..\periph\special_function\lib_sf.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_WATCHDOG_LIB_WD_H) \
	 $(_________PERIPH_USART_LIB_USART_H) \
	 $(_________PERIPH_TIMER_COUNTER_LIB_TC_H) \
	 $(_________PERIPH_SPI_LIB_SPI_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) 
_________TARGETS_EB63_EB63_H=..\..\..\targets\eb63\eb63.h \
	 $(_________PARTS_M63200_M63200_H) 
# DEPEND: end include files

sram_ice\at45db161.o: at45db161.c $(_________PARTS_M63200_LIB_M63200_H)  \
	 at45db161.h ..\..\..\drivers\serial_periph_1\serial_periph_1.h
	c:\compil\arm250\bin\tcc -c at45db161.c $(CTHUMB_C) -o sram_ice\at45db161.o
sram_ice\test_data_flash_eb63.o: test_data_flash_eb63.c \
	 $(_________PARTS_M63200_LIB_M63200_H) at45db161.h  \
	 ..\..\..\targets\eb63\eb63.h
	c:\compil\arm250\bin\tcc -c test_data_flash_eb63.c $(CTHUMB_C) -o \
	 sram_ice\test_data_flash_eb63.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 $(ADEFAULT) -o sram_ice\data_flash_irq.o \
	 data_flash_irq.s
sram_ice\cstartup.o: ..\..\..\targets\eb63\cstartup.s \
	 ..\..\..\targets\eb63\eb63.inc \
	 ..\..\..\targets\eb63\..\cstartup_angel.s \
	 ..\..\..\targets\eb63\..\cstartup_ice.s \
	 ..\..\..\targets\eb63\..\cstartup_flash.s
	c:\compil\arm250\bin\armasm $(ADEFAULT) -o sram_ice\cstartup.o \
	 ..\..\..\targets\eb63\cstartup.s

⌨️ 快捷键说明

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