📄 makefile
字号:
# 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 = rprintftest
#put your C sourcefiles here
ARMLIB = c:\code\arm\lpc2100/armlib
ARMLIB_SRC = processor.c timer.c uart.c rprintf.c vt100.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -