?? makefile
字號:
BIN2C = ../tools/bin2cCFLAGS += -I..AFLAGS += -I..OBJ = head.o uart_rec.o console.o utils.o
all: ../uart_rec.c../uart_rec.c: uart_rec.bin
$(BIN2C) -c -s uart_rec_data uart_rec.bin ../uart_rec.cuart_rec.bin: uart_rec
$(OBJCOPY) -O binary --only-section=.init \ --only-section=.text \ --only-section=.rodata \ --only-section=.data \ --only-section=.bss uart_rec \ uart_rec.binuart_rec: $(OBJ)
$(LD) -p -X -T uart_rec.ld $(OBJ) \
-o uart_rec
console.o: ../console.c
$(CC) $(CFLAGS) -c -o console.o ../console.c utils.o: ../utils.c $(CC) $(CFLAGS) -c -o utils.o ../utils.c
clean:
$(RM) -rf *.o uart_rec uart_rec.bin ../uart_rec.c
%.o: %.c $(CC) $(CFLAGS) -c -o $@ $<%.o: %.S $(CC) $(AFLAGS) -c -o $@ $<
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -