From 813215fd3b076310174c5643d9905912c7fc4a93 Mon Sep 17 00:00:00 2001 From: Manfred Steiner Date: Wed, 2 Oct 2024 18:48:35 +0200 Subject: [PATCH] =?utf8?q?Projektvorlagen=20VSCode/AVR/Level-1:=20Makefile?= =?utf8?q?s=20ge=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- vscode-avr-c-cpp/arduino-nano-1/Makefile | 12 ++++++------ vscode-avr-c-cpp/nano-1284-1/Makefile | 12 ++++++------ vscode-avr-c-cpp/nano-644-1/Makefile | 12 ++++++------ vscode-avr-c-cpp/sure-1/Makefile | 12 ++++++------ 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/vscode-avr-c-cpp/arduino-nano-1/Makefile b/vscode-avr-c-cpp/arduino-nano-1/Makefile index 0c7297b..ca9556d 100644 --- a/vscode-avr-c-cpp/arduino-nano-1/Makefile +++ b/vscode-avr-c-cpp/arduino-nano-1/Makefile @@ -96,7 +96,7 @@ build/%.o: src/%.cpp sim/$(NAME).elf: .depend $(OBJ_SIM) $(CC) $(LFLAGS_SIM) -o $@ $(OBJ_SIM) - @ln -s $(NAME).elf sim/$(DEVICE).elf + @ln -sf $(NAME).elf sim/$(DEVICE).elf sim/build/%.o: src/%.c @mkdir -p $(dir $@) @@ -135,16 +135,16 @@ gdb: sim/$(NAME).elf # ------------------------------------------------------------- # flash to target with arduino bootloader in bootloader-section -flash-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB0 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash0-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash0: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB0 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash1-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash1: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB1 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash2-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash2: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB2 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< # ---------------------------------------------- @@ -199,7 +199,7 @@ help: @echo "Possible targets are:" @echo " clean" @echo " all help info" - @echo " flash-$(AVRDUDE_DEVICE) flash0-$(AVRDUDE_DEVICE) flash1-$(AVRDUDE_DEVICE) flash2-$(AVRDUDE_DEVICE)" + @echo " flash flash0 flash1 flash2" @echo " isp-$(AVRDUDE_DEVICE) isp-flash-$(AVRDUDE_DEVICE) isp-fuse-$(AVRDUDE_DEVICE)" @echo " picocom picocom0 picocom1 picocom2" @echo " gdb simuc" diff --git a/vscode-avr-c-cpp/nano-1284-1/Makefile b/vscode-avr-c-cpp/nano-1284-1/Makefile index bbe7b2e..ef7c7e3 100644 --- a/vscode-avr-c-cpp/nano-1284-1/Makefile +++ b/vscode-avr-c-cpp/nano-1284-1/Makefile @@ -96,7 +96,7 @@ build/%.o: src/%.cpp sim/$(NAME).elf: .depend $(OBJ_SIM) $(CC) $(LFLAGS_SIM) -o $@ $(OBJ_SIM) - @ln -s $(NAME).elf sim/$(DEVICE).elf + @ln -sf $(NAME).elf sim/$(DEVICE).elf sim/build/%.o: src/%.c @mkdir -p $(dir $@) @@ -135,16 +135,16 @@ gdb: sim/$(NAME).elf # ------------------------------------------------------------- # flash to target with arduino bootloader in bootloader-section -flash-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB0 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash0-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash0: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB0 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash1-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash1: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB1 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash2-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash2: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB2 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< # ---------------------------------------------- @@ -199,7 +199,7 @@ help: @echo "Possible targets are:" @echo " clean" @echo " all help info" - @echo " flash-$(AVRDUDE_DEVICE) flash0-$(AVRDUDE_DEVICE) flash1-$(AVRDUDE_DEVICE) flash2-$(AVRDUDE_DEVICE)" + @echo " flash flash0 flash1 flash2" @echo " isp-$(AVRDUDE_DEVICE) isp-flash-$(AVRDUDE_DEVICE) isp-fuse-$(AVRDUDE_DEVICE)" @echo " picocom picocom0 picocom1 picocom2" @echo " gdb simuc" diff --git a/vscode-avr-c-cpp/nano-644-1/Makefile b/vscode-avr-c-cpp/nano-644-1/Makefile index be1c535..71232c5 100644 --- a/vscode-avr-c-cpp/nano-644-1/Makefile +++ b/vscode-avr-c-cpp/nano-644-1/Makefile @@ -96,7 +96,7 @@ build/%.o: src/%.cpp sim/$(NAME).elf: .depend $(OBJ_SIM) $(CC) $(LFLAGS_SIM) -o $@ $(OBJ_SIM) - @ln -s $(NAME).elf sim/$(DEVICE).elf + @ln -sf $(NAME).elf sim/$(DEVICE).elf sim/build/%.o: src/%.c @mkdir -p $(dir $@) @@ -135,16 +135,16 @@ gdb: sim/$(NAME).elf # ------------------------------------------------------------- # flash to target with arduino bootloader in bootloader-section -flash-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB0 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash0-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash0: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB0 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash1-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash1: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB1 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash2-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash2: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB2 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< # ---------------------------------------------- @@ -199,7 +199,7 @@ help: @echo "Possible targets are:" @echo " clean" @echo " all help info" - @echo " flash-$(AVRDUDE_DEVICE) flash0-$(AVRDUDE_DEVICE) flash1-$(AVRDUDE_DEVICE) flash2-$(AVRDUDE_DEVICE)" + @echo " flash flash0 flash1 flash2" @echo " isp-$(AVRDUDE_DEVICE) isp-flash-$(AVRDUDE_DEVICE) isp-fuse-$(AVRDUDE_DEVICE)" @echo " picocom picocom0 picocom1 picocom2" @echo " gdb simuc" diff --git a/vscode-avr-c-cpp/sure-1/Makefile b/vscode-avr-c-cpp/sure-1/Makefile index dfa0814..5e8b283 100644 --- a/vscode-avr-c-cpp/sure-1/Makefile +++ b/vscode-avr-c-cpp/sure-1/Makefile @@ -96,7 +96,7 @@ build/%.o: src/%.cpp sim/$(NAME).elf: .depend $(OBJ_SIM) $(CC) $(LFLAGS_SIM) -o $@ $(OBJ_SIM) - @ln -s $(NAME).elf sim/$(DEVICE).elf + @ln -sf $(NAME).elf sim/$(DEVICE).elf sim/build/%.o: src/%.c @mkdir -p $(dir $@) @@ -135,16 +135,16 @@ gdb: sim/$(NAME).elf # ------------------------------------------------------------- # flash to target with arduino bootloader in bootloader-section -flash-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB0 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash0-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash0: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB0 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash1-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash1: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB1 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< -flash2-$(AVRDUDE_DEVICE): dist/$(NAME).elf all +flash2: dist/$(NAME).elf all avrdude -c arduino -P /dev/ttyUSB2 -b 115200 -p $(AVRDUDE_DEVICE) -e -U flash:w:$< # ---------------------------------------------- @@ -199,7 +199,7 @@ help: @echo "Possible targets are:" @echo " clean" @echo " all help info" - @echo " flash-$(AVRDUDE_DEVICE) flash0-$(AVRDUDE_DEVICE) flash1-$(AVRDUDE_DEVICE) flash2-$(AVRDUDE_DEVICE)" + @echo " flash flash0 flash1 flash2" @echo " isp-$(AVRDUDE_DEVICE) isp-flash-$(AVRDUDE_DEVICE) isp-fuse-$(AVRDUDE_DEVICE)" @echo " picocom picocom0 picocom1 picocom2" @echo " gdb simuc" -- 2.39.5