Revision c2b64420 scout_avr/Makefile

View differences:

scout_avr/Makefile
16 16
HDR=src/*.h
17 17
FLAGS=-Isrc/ros_lib -Isrc -mmcu=$(MCU) -DF_CPU=$(F_CPU)UL -funsigned-char -Os -fpack-struct -Wall
18 18

  
19
all: scout_avr.hex
19
ROS_MSG_DEPS=rosserial_msgs std_msgs bom sonar
20

  
21
default: scout_avr.hex
22

  
23
all: ros_lib scout_avr.hex
20 24

  
21 25
%.hex: %.elf
22 26
	avr-objcopy -j .text -j .data -O ihex $< $@
......
27 31
program: scout_avr.hex
28 32
	avrdude -p $(PART) -c $(PROG) -P usb -B 1 -U flash:w:scout_avr.hex
29 33

  
34
ros_lib: ros_lib_nomsgs msgs
35

  
36
ros_lib_nomsgs:
37
	rm -rf src/ros_lib
38
	cp -r `rospack find rosserial_client`/src/ros_lib src
39

  
40
msgs:
41
	rosrun rosserial_client make_library.py src $(ROS_MSG_DEPS)
42

  
30 43
clean:
31
	rm -f scout_avr.elf scout_avr.hex
44
	rm -rf scout_avr.elf scout_avr.hex src/ros_lib

Also available in: Unified diff