WinAVR(GCC)新手入门的makefile 范例 #这是一个简单makefile,仅用于初学者使用#修改于WINAVR20050214 所生成的makefile#简单实验只需更改 [单片机类型][目标文件名][C 源文件名][系统时钟频率]即可#修改好参数后另存到单片机程序所在目录,然后执行[make all]命令#生成 烧录 FLASH 的*
hex,烧录 EEPROM 的*
eep,调试用的*
elf 文件## MCU name # 单片机类型 参考格式是:atmega8 / at90s2313 / attiny15 MCU = atmega16 # Processor frequency
# 系统时钟频率(Hz),用于生成延时 _delay_us() _delay_ms() 见 delay
h # This will define a symbol, F_CPU, in all source code files equal to the # processor frequency
You can then use this symbol in your source code to # calculate timings
Do NOT tack on a 'UL' at the end, this will be done # automatically to create a 32-bit value in your source code
F_CPU = 1000000 # Target file name (without extension)
# 目标文件名(即生成的
elf 的文件名) TARGET = main # List C source files here
(C dependencies