From d8092ae891d96da4bf6daac37a6588150e6a724e Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 27 May 2014 15:02:33 +0200 Subject: pwm: Initial LED PWM --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 $< $@ -- cgit v1.2.3