makefile

来自「Procyon方案(手工制作的MP3播放器电路及资料)」· 代码 · 共 43 行

TXT
43
字号
# Makefile for procyon
# Pascal Stang

include $(AVR)/include/make1

########### change this lines according to your project ##################
#put the name of the target mcu here (at90s8515, at90s8535, attiny22, atmega603 etc.)
	MCU = atmega103

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

#put your C sourcefiles here 
	SRC	= systimer.c lcd.c sta013.c uart.c i2c.c spi.c ata_if.c playmgr.c $(TRG).c

#put additional assembler source file here
	ASRC =

#additional libraries and object files to link
	LIB	=

#additional includes to compile
	INC	= 

#compiler flags
	CPFLAGS	= -g -O3 -Wall -Wstrict-prototypes -Wa,-ahlms=$(<:.c=.lst)

#linker flags
	LDFLAGS = -Wl,-Map=$(TRG).map,--cref

########### you should not need to change the following line #############
include $(AVR)/include/make2
		  
###### dependecies, add any dependencies you need here ###################
systimer.o	: systimer.c	systimer.h	global.h
lcd.o		: lcd.c			lcd.h		global.h
sta013.o	: sta013.c		sta013.h	global.h
uart.o		: uart.c		uart.h		global.h
i2c.o		: i2c.c			i2c.h		global.h
spi.o		: spi.c			spi.h		global.h
ata_if.o	: ata_if.c		ata_if.h	global.h
playmgr.o	: playmgr.c		playmgr.h	global.h
$(TRG).o	: $(TRG).c		global.h

⌨️ 快捷键说明

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