summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-04-16 00:01:04 +0200
committerneoraider <devnull@localhost>2007-04-16 00:01:04 +0200
commitd02fbc84105ff2da74f03fd658ace8919e3e9437 (patch)
treea9ab5298ca9584e7eabc0bcb6d8b34ca1ad55726 /Makefile
parentccc0183cee7c410d668a0b1a9153b061a4785e42 (diff)
downloadrc2007-rescue-d02fbc84105ff2da74f03fd658ace8919e3e9437.tar
rc2007-rescue-d02fbc84105ff2da74f03fd658ace8919e3e9437.zip
LineSensorArray + Srf10 added.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index bbab11a..20d09eb 100644
--- a/Makefile
+++ b/Makefile
@@ -3,21 +3,17 @@ FILES := $(patsubst %.cpp,%,$(wildcard *.cpp))
all: robocup.elf;
-
--include $(FILES:%=%.d)
-
-
robocup.hex: robocup.elf
avr-objcopy -O ihex -R .eeprom $< $@
robocup.elf: $(FILES:%=%.o)
- avr-g++ -mmcu=atmega32 -o $@ $^
+ avr-g++ -mmcu=atmega32 -Os -o $@ $^
%.o: %.cpp
- avr-g++ -c -mmcu=atmega32 -o $@ $<
+ avr-g++ -c -mmcu=atmega32 -Os -o $@ $<
%.d: %.cpp
- avr-g++ -M -mmcu=atmega32 -MF $@ -MT $(patsubst %.cpp,%.o,$<) -MT $@ $<
+ @avr-g++ -MM -mmcu=atmega32 -Os -MF $@ -MT $(patsubst %.cpp,%.o,$<) -MT $@ $<
program: robocup.hex
sudo avrdude -P usb -c avrisp2 -p m32 -U $<
@@ -26,3 +22,6 @@ clean:
rm -f robocup.hex robocup.elf $(FILES:%=%.o) $(FILES:%=%.d)
.PHONY: clean
+
+
+-include $(FILES:%=%.d)