LineSensorArray + Srf10 added.
This commit is contained in:
parent
ccc0183cee
commit
d02fbc8410
11 changed files with 228 additions and 16 deletions
13
Makefile
13
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)
|
||||
|
|
Reference in a new issue