Commit 813215fd3b076310174c5643d9905912c7fc4a93
receivedWed, 2. Oct 2024, 18:48:38 (by user sx)
Wed, 2 Oct 2024 16:48:38 +0000 (18:48 +0200)
authorManfred Steiner <sx@htl-kaindorf.at>
Wed, 2 Oct 2024 16:48:35 +0000 (18:48 +0200)
committerManfred Steiner <sx@htl-kaindorf.at>
Wed, 2 Oct 2024 16:48:35 +0000 (18:48 +0200)
4 files changed:
vscode-avr-c-cpp/arduino-nano-1/Makefile
vscode-avr-c-cpp/nano-1284-1/Makefile
vscode-avr-c-cpp/nano-644-1/Makefile
vscode-avr-c-cpp/sure-1/Makefile

index 0c7297b299fc826f1b0382397dbd4722b47b428c..ca9556dc2f92947ae481cb12f8640ad92049326f 100644 (file)
@@ -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"
index bbe7b2e4e619ece7d3095bfdf2fe0789e9fd770f..ef7c7e3e3746c796a716fc47aba61f4ac933adc8 100644 (file)
@@ -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"
index be1c535c0c5abf8a729e78db9c25b4b9dbefd92d..71232c51f54c6ebb0387147b25b7920efe49907b 100644 (file)
@@ -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"
index dfa08143fcece01a5c1be2fb871be93fa79c5414..5e8b2830fae80bde73e390a37d1ec460e8de02e3 100644 (file)
@@ -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"