makefile

来自「方便飞利浦arm7tdmi 处理器lpc2100开发的C函数库 Procyon 」· 代码 · 共 41 行

TXT
41
字号
# Makefile for ARM
# Pascal Stang

########### change this lines according to your project ##################
#put the name of the target mcu architecture here (arm7tdmi, etc)
	CPU = arm7tdmi

#put the name of the target file here (without extension)
	TRG	= uarttest

#put your C sourcefiles here 

	ARMLIB = c:\code/arm/lpc2100/armlib
	ARMLIB_SRC = processor.c timer.c uart.c rprintf.c

	SRC = $(TRG).c

#put additional assembler source file here
	ASRC = $(ARMLIB)/boot/boot.s

#additional libraries and object files to link
	LIB	=

#additional includes to compile
	INC	= 

#assembler flags
	ASFLAGS = -Wa, -gstabs

#compiler flags
	CPFLAGS	= -g -Os -Wall -Wstrict-prototypes -I$(ARMLIB) -Wa,-ahlms=$(<:.c=.lst)
## arm-elf-gcc -Tlpc2106-rom.ld -nostartfiles -Wl,-Map=led.map,--cref,-nostdlib -s -o led boot.s led.c

#linker flags
	LDFLAGS = -T$(ARMLIB)/boot/lpc2106-rom.ld -lm -nostartfiles -Wl,-Map=$(TRG).map,--cref,-nostdlib
	
########### you should not need to change the following line #############
include $(ARMLIB)/make/armproj_make
		  
###### dependecies, add any dependencies you need here ###################
$(TRG).o		: $(TRG).c makefile global.h

⌨️ 快捷键说明

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