From 4f7f86f6d4c90f1bcbb6f9108c594343bf093de6 Mon Sep 17 00:00:00 2001 From: Andrew Gillham Date: Tue, 21 Dec 2021 11:11:38 -0600 Subject: [PATCH] Convert Makefile to use arduino-cli since that replaces arduino-core and arduino-builder. --- Makefile | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 88b3725..76f6cef 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,24 @@ # -# Makefile for an Arduino based logic analyzer using the 'arduino-core' -# package and makefiles. +# Makefile for an Arduino based logic analyzer using the arduino-cli # -# $Id: Makefile,v 1.3 2011-03-07 02:47:26 gillham Exp $ + +TARGET = logic_analyzer +FQBN = arduino:avr:diecimila +SERIAL = /dev/ttyUSB* + + +all: + @echo "" + @echo "---> run 'make build' to compile for Arduino Duemilanove" + @echo "---> run 'make upload' to upload to /dev/ttyUSB*" + @echo "" + +build: + arduino-cli compile --fqbn $(FQBN) $(TARGET) + +upload: + arduino-cli upload --fqbn $(FQBN) --port $(SERIAL) $(TARGET) + +# +# end-of-file # -ARDUINO_DIR = /usr/share/arduino - -TARGET = logic_analyzer -ARDUINO_LIBS = - -MCU = atmega328p -F_CPU = 16000000 -ARDUINO_PORT = /dev/ttyUSB* -AVRDUDE_ARD_BAUDRATE = 57600 -AVRDUDE_ARD_PROGRAMMER = arduino - -include /usr/share/arduino/Arduino.mk -