From: Manfred Steiner Date: Wed, 2 Oct 2024 16:48:35 +0000 (+0200) Subject: Projektvorlagen VSCode/AVR/Level-1: Makefiles geändert X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=813215fd3b076310174c5643d9905912c7fc4a93;p=project-template.git Projektvorlagen VSCode/AVR/Level-1: Makefiles geändert --- 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"