Fehler im Makefile entfernt
This commit is contained in:
parent
7da669b97e
commit
ccc0183cee
1 changed files with 2 additions and 5 deletions
7
Makefile
7
Makefile
|
@ -4,7 +4,7 @@ FILES := $(patsubst %.cpp,%,$(wildcard *.cpp))
|
||||||
all: robocup.elf;
|
all: robocup.elf;
|
||||||
|
|
||||||
|
|
||||||
include $(FILES:%=%.d)
|
-include $(FILES:%=%.d)
|
||||||
|
|
||||||
|
|
||||||
robocup.hex: robocup.elf
|
robocup.hex: robocup.elf
|
||||||
|
@ -17,10 +17,7 @@ robocup.elf: $(FILES:%=%.o)
|
||||||
avr-g++ -c -mmcu=atmega32 -o $@ $<
|
avr-g++ -c -mmcu=atmega32 -o $@ $<
|
||||||
|
|
||||||
%.d: %.cpp
|
%.d: %.cpp
|
||||||
@set -e; rm -f $@; \
|
avr-g++ -M -mmcu=atmega32 -MF $@ -MT $(patsubst %.cpp,%.o,$<) -MT $@ $<
|
||||||
avr-g++ -M -mmcu=atmega32 -MF $@.$$$$ $<; \
|
|
||||||
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
|
|
||||||
rm -f $@.$$$$
|
|
||||||
|
|
||||||
program: robocup.hex
|
program: robocup.hex
|
||||||
sudo avrdude -P usb -c avrisp2 -p m32 -U $<
|
sudo avrdude -P usb -c avrisp2 -p m32 -U $<
|
||||||
|
|
Reference in a new issue