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

📄 common.mk

📁 一款用C语言写的LCD2USB,包含有软件和硬件源代码,原理图,简单实用.
💻 MK
字号:
# ======================================================================# Common Makefile for USBtiny applications## Macros to be defined before including this file:## USBTINY	- the location of this directory# TARGET_ARCH	- gcc -mmcu= option with AVR device type# OBJECTS	- the objects in addition to the USBtiny objects# FLASH_CMD	- command to upload main.hex to flash# STACK		- maximum stack size (optional)# FLASH		- flash size (optional)# SRAM		- SRAM size (optional)# SCHEM		- Postscript version of the schematic to be generated## Copyright (C) 2006 Dick Streefland## This is free software, licensed under the terms of the GNU General# Public License as published by the Free Software Foundation.# ======================================================================CC	= avr-gccCFLAGS	= -Os -g -Wall -I. -I$(USBTINY)ASFLAGS	= -Os -g -Wall -I.LDFLAGS	= -gMODULES = crc.o int.o usb.o $(OBJECTS)UTIL	= $(USBTINY)/../utilfirmware-usbtiny.hex:all:		firmware-usbtiny.hex $(SCHEM)clean:	rm -f firmware-usbtiny.elf *.o tags *.sch~ gschem.logclobber:	clean	rm -f firmware-usbtiny.hex $(SCHEM)firmware-usbtiny.elf:	$(MODULES)	$(LINK.o) -o $@ $(MODULES)firmware-usbtiny.hex:	firmware-usbtiny.elf $(UTIL)/check.py	@python $(UTIL)/check.py firmware-usbtiny.elf $(STACK) $(FLASH) $(SRAM)	avr-objcopy -j .text -j .data -O ihex firmware-usbtiny.elf firmware-usbtiny.hexdisasm:		firmware-usbtiny.elf	avr-objdump -S firmware-usbtiny.elfflash:		firmware-usbtiny.hex	$(FLASH_CMD)program:	firmware-usbtiny.hex	$(FLASH_CMD)crc.o:		$(USBTINY)/crc.S $(USBTINY)/def.h usbtiny.h	$(COMPILE.c) $(USBTINY)/crc.Sint.o:		$(USBTINY)/int.S $(USBTINY)/def.h usbtiny.h	$(COMPILE.c) $(USBTINY)/int.Susb.o:		$(USBTINY)/usb.c $(USBTINY)/def.h $(USBTINY)/usb.h usbtiny.h	$(COMPILE.c) $(USBTINY)/usb.cmain.o:		$(USBTINY)/usb.h%.ps:		%.sch $(UTIL)/sch2ps	$(UTIL)/sch2ps $<

⌨️ 快捷键说明

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