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 $@)
# -------------------------------------------------------------
# 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:$<
# ----------------------------------------------
@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"
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 $@)
# -------------------------------------------------------------
# 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:$<
# ----------------------------------------------
@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"
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 $@)
# -------------------------------------------------------------
# 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:$<
# ----------------------------------------------
@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"
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 $@)
# -------------------------------------------------------------
# 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:$<
# ----------------------------------------------
@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"