aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-05-27 15:02:33 +0200
committerLars-Dominik Braun <lars@6xq.net>2014-05-27 15:02:33 +0200
commitd8092ae891d96da4bf6daac37a6588150e6a724e (patch)
tree5cc99b5026b2b02a1fa266cecee5ea6a55fd3621 /Makefile
parent0ec0f3f1918607dfe77dd8adbc0a319cc4fad0b9 (diff)
downloadhourglass-d8092ae891d96da4bf6daac37a6588150e6a724e.tar.gz
hourglass-d8092ae891d96da4bf6daac37a6588150e6a724e.tar.bz2
hourglass-d8092ae891d96da4bf6daac37a6588150e6a724e.zip
pwm: Initial LED PWM
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8996720..1c28676 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
MCU = atmega88
+CFLAGS=-Os
all: sanduhr.hex
-sanduhr.elf: main.c i2c.c i2c.h uart.c uart.h timer.c timer.h gyro.c gyro.h accel.c accel.h common.h speaker.c speaker.h
- avr-gcc -std=gnu99 -mmcu=$(MCU) -Os -o $@ $^
+sanduhr.elf: main.c i2c.c i2c.h uart.c uart.h timer.c timer.h gyro.c gyro.h accel.c accel.h common.h speaker.c speaker.h pwm.c pwm.h
+ avr-gcc -std=gnu99 -mmcu=$(MCU) $(CFLAGS) -o $@ $^
sanduhr.hex: sanduhr.elf
avr-objcopy -O ihex -R .eeprom $< $@