Add makefile target for running in simulated environment

This commit is contained in:
2024-10-01 15:05:50 +02:00
parent 598540c9d9
commit 93590f7b75
2 changed files with 10 additions and 9 deletions

View File

@@ -12,12 +12,13 @@ VERBOSE := false
ARCH := m1284
#FREQ := 18432000UL
FREQ := 8000000UL
MCU := atmega1284
MCU := atmega1284p
ASP := usbasp
CC := avr-gcc
LD := $(CC)
OBJCOPY := avr-objcopy
AVD := avrdude
SIM := simavr
MKDIR := mkdir -p
RMR := rm -rf
GIT := git
@@ -49,8 +50,13 @@ DEPENDS := $(FILES:%.c=$(TMPDIR)/%.d)
# AUXILIARY TARGETS (AND FUSE SETTINGS)
# ==============================================================================
.PHONY: all
all: flash
# .PHONY: all
# all: flash
.PHONY: run
run: $(TARGET)
$(E) "[SIM] $<"
$(Q) $(SIM) -m $(MCU) -f $(FREQ) $<
.PHONY: flash
flash: $(TARGET)