1 # Microb Technology, Eirbot, Droids-corp 2005 - Zer0
2 # Makefile for generating all tests !
6 modules/base/math/fixed_point/test\
7 modules/base/math/vect2/test\
8 modules/base/scheduler/test\
10 modules/encoding/hamming/test\
11 modules/encoding/base64/test\
12 modules/comm/uart/test\
13 modules/debug/diagnostic/test\
14 modules/ihm/menu/test\
15 modules/hardware/adc/test\
16 modules/hardware/timer/test\
17 modules/hardware/pwm/test\
18 modules/devices/ihm/lcd/test\
19 modules/devices/servo/multiservo/test\
20 modules/devices/robot/robot_system/test\
21 modules/devices/control_system/control_system_manager/test\
22 modules/devices/control_system/filters/pid/test\
23 modules/devices/control_system/filters/quadramp/test\
24 modules/debug/error/test\
29 modules/base/math/fixed_point/test\
30 modules/base/math/vect2/test\
32 modules/encoding/hamming/test\
33 modules/encoding/base64/test\
34 modules/ihm/menu/test\
35 modules/devices/control_system/control_system_manager/test\
36 modules/devices/control_system/filters/pid/test\
37 modules/devices/control_system/filters/quadramp/test
46 clean: avrclean hostclean
50 @if [ \( ! -f $(@:_config=)/.aversive_conf \) -o \
51 \( ! -f $(@:_config=)/autoconf.h \) ]; then \
52 echo -n Configuring $(@:_config=)... ; \
53 make -C $(@:_config=) noconfig > /dev/null; \
59 avrall: $(PROJECT_DIRS:=_config) $(PROJECT_DIRS:=_avrmake)
62 avrclean: $(PROJECT_DIRS:=_avrclean)
67 @echo "Module $(@:_avrmake=) (avr)" | sed 's,.,=,g'
68 @echo "Module $(@:_avrmake=) (avr)"
69 @echo "Module $(@:_avrmake=) (avr)" | sed 's,.,=,g'
71 make -C $(@:_avrmake=)
75 make -C $(@:_avrclean=) clean
80 hostall: $(HOSTPROJECT_DIRS:=_config) $(HOSTPROJECT_DIRS:=_hostmake)
83 hostclean: $(HOSTPROJECT_DIRS:=_hostclean)
88 @echo "Module $(@:_hostmake=) (host)" | sed 's,.,=,g'
89 @echo "Module $(@:_hostmake=) (host)"
90 @echo "Module $(@:_hostmake=) (host)" | sed 's,.,=,g'
92 make -C $(@:_hostmake=) H=1
96 make -C $(@:_hostclean=) clean H=1
102 find . -name "autoconf.h" -o -name ".aversive_conf" -o -name "*.hex" -o -name "*~" -o -name "*.eep" -o -name "*.obj" -o -name "*.elf" -o -name "*.map" -o -name "*.obj" -o -name "*.a90" -o -name "*.sym" -o -name "*.lnk" -o -name "*.lss" -o -name "*.a" -o -name "*.{avr,host}.d" -o -name "*.o" -o -name "*.avr.d.*" -o -name "*.host.d.*" -o -name "*.lst" | xargs rm -f
105 .PHONY : all clean avrall avrclean hostall hostclean \
106 $(PROJECT_DIRS:=.avrall) $(PROJECT_DIRS:=.avrclean) \
107 $(HOSTPROJECT_DIRS:=.hostall) $(HOSTPROJECT_DIRS:=.hostclean)