Sewi/Firmware/Makefile
2026-02-07 16:41:08 +01:00

30 lines
385 B
Makefile

OBJS += \
leds.o \
animation.o
OBJS_AS_ARGS += \
"leds.o" \
"animation.o"
DEPS_AS_ARGS += \
"leds.d" \
"animation.d"
export
build:
@$(MAKE) -C gcc
install: build
@openocd -f "openocd.cfg" \
-c "program ./gcc/AtmelStart.elf verify reset exit"
run: flash
@openocd -f openocd.cfg
@arm-none-eabi-gdb -e ./gdbinit
clean:
@$(MAKE) clean -C gcc
.PHONY: build flash debug clean