📄 makefile
字号:
PRG = uartmainOBJ = uartmain.o uart.oMCU_TARGET = atmega32OPTIMIZE = -OsDEFS =LIBS =# You should not have to change anything below here.CC = avr-gccCFLAGS = -g -Wall $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)LDFLAGS = -Wl,-Map,$(PRG).mapOBJCOPY = avr-objcopyOBJDUMP = avr-objdumpall: $(PRG).elf lst text eeprom$(PRG).elf: $(OBJ) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)clean: rm -rf *.o $(PRG).elf *.eps *.png *.pdf *.bak rm -rf *.lst *.map $(EXTRA_CLEAN_FILES)lst: $(PRG).lst%.lst: %.elf $(OBJDUMP) -h -S $< > $@# Rules for building the .text rom imagestext: hex bin srechex: $(PRG).hexbin: $(PRG).binsrec: $(PRG).srec%.hex: %.elf $(OBJCOPY) -j .text -j .data -O ihex $< $@%.srec: %.elf $(OBJCOPY) -j .text -j .data -O srec $< $@%.bin: %.elf $(OBJCOPY) -j .text -j .data -O binary $< $@# Rules for building the .eeprom rom imageseeprom: ehex ebin esrecehex: $(PRG)_eeprom.hexebin: $(PRG)_eeprom.binesrec: $(PRG)_eeprom.srec%_eeprom.hex: %.elf $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O ihex $< $@%_eeprom.srec: %.elf $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O srec $< $@%_eeprom.bin: %.elf $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O binary $< $@# Every thing below here is used by avr-libc's build system and can be ignored# by the casual user.JPEGFILES = stdiodemo-setup.jpgJPEG2PNM = jpegtopnmPNM2EPS = pnmtopsJPEGRESOLUTION = 180EXTRA_CLEAN_FILES = *.hex *.bin *.srec *.epsdox: ${JPEGFILES:.jpg=.eps}%.eps: %.jpg $(JPEG2PNM) $< |\ $(PNM2EPS) -noturn -dpi $(JPEGRESOLUTION) -equalpixels \ > $@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -