From 64b8d034d0ba426ca5d2ef8a86d4611f0eb05ebf Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Tue, 19 May 2020 17:12:28 -0400
Subject: initial commit
---
Makefile | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 Makefile
(limited to 'Makefile')
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b08c634
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+.POSIX:
+.SUFFIXES: .ihx .out
+
+CC = avr-gcc
+CFLAGS = -Wall -std=c99 -mmcu=avr5 -O2
+LD = avr-ld
+LDFLAGS =
+OBJCOPY = avr-objcopy
+
+OBJS = on.o
+
+send: a.ihx
+ avrdude -patmega328p -carduino -U flash:w:a.ihx:i -P/dev/ttyACM0 -v
+ touch send
+
+clean:
+ rm -f $(OBJS) a.out a.ihx send
+
+.out.ihx:
+ $(OBJCOPY) $< $@ --output-target ihex
+
+a.ihx: a.out
+
+a.out: $(OBJS)
+ $(LD) $(LDFLAGS) $(OBJS) -o $@
+
+on.o: on.c
--
cgit