summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-04-13 21:52:00 +0200
committerneoraider <devnull@localhost>2007-04-13 21:52:00 +0200
commitccc0183cee7c410d668a0b1a9153b061a4785e42 (patch)
tree9c117bc0dace57a2cf66e66e11bd35e2cf92958b /Makefile
parent7da669b97ec71f138c74d562b8a3b219d3f98a50 (diff)
downloadrc2007-rescue-ccc0183cee7c410d668a0b1a9153b061a4785e42.tar
rc2007-rescue-ccc0183cee7c410d668a0b1a9153b061a4785e42.zip
Fehler im Makefile entfernt
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c7fe375..bbab11a 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ FILES := $(patsubst %.cpp,%,$(wildcard *.cpp))
all: robocup.elf;
-include $(FILES:%=%.d)
+-include $(FILES:%=%.d)
robocup.hex: robocup.elf
@@ -17,10 +17,7 @@ robocup.elf: $(FILES:%=%.o)
avr-g++ -c -mmcu=atmega32 -o $@ $<
%.d: %.cpp
- @set -e; rm -f $@; \
- avr-g++ -M -mmcu=atmega32 -MF $@.$$$$ $<; \
- sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
- rm -f $@.$$$$
+ avr-g++ -M -mmcu=atmega32 -MF $@ -MT $(patsubst %.cpp,%.o,$<) -MT $@ $<
program: robocup.hex
sudo avrdude -P usb -c avrisp2 -p m32 -U $<