summaryrefslogtreecommitdiff
path: root/Venus_Skeleton/Makefile
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2015-06-10 17:14:25 +0200
committerPeter Wu <peter@lekensteyn.nl>2015-06-10 17:14:25 +0200
commit1dc3417e28a5be46b84968b201c88711001c2076 (patch)
treedd98072ea527d6fbb2330238e73ce8df347a1a46 /Venus_Skeleton/Makefile
parent119b1e2bf782e42376019a7c7ebbbb05b9fcd2d7 (diff)
downloadcode-1dc3417e28a5be46b84968b201c88711001c2076.tar.gz
Use avr-gcc in Makefile, fix mmcu
Diffstat (limited to 'Venus_Skeleton/Makefile')
-rw-r--r--Venus_Skeleton/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Venus_Skeleton/Makefile b/Venus_Skeleton/Makefile
index 5b94f35..26b4ee2 100644
--- a/Venus_Skeleton/Makefile
+++ b/Venus_Skeleton/Makefile
@@ -1,2 +1,10 @@
+#CC = /usr/share/arduino/hardware/tools/avr/bin/avr-gcc
+CC = avr-gcc
+WFLAGS = -Wall -Wextra -Wno-attributes
+WFLAGS += -fdiagnostics-color=auto
+CFLAGS =
+
+SOURCES = Venus_Skeleton.ino
+
check:
- gcc -Wall -Wextra $$(cat .syntastic_c_config) -x c++ Venus_Skeleton.ino -o /dev/null -O2 -Wno-attributes
+ $(CC) $(WFLAGS) $$(cat .syntastic_c_config) $(CFLAGS) -x c++ $(SOURCES) -o /dev/null -O2