+include Makedefs
+
+SDCCDIRS=\
+ telemetrum-v1.2 telemetrum-v1.1 telemetrum-v1.0 \
+ teledongle-v0.2 \
+ telemini-v1.0 \
+ telebt-v1.0 \
+ teleterra-v0.2 teleshield-v0.1 \
+ telefire-v0.1 telefire-v0.2 \
+ telemini-v2.0
+
+ARMM3DIRS=\
+ telemega-v0.1 telemega-v0.1/flash-loader \
+ telemega-v1.0 telemega-v1.0/flash-loader \
+ telemetrum-v2.0 telemetrum-v2.0/flash-loader \
+ megadongle-v0.1 megadongle-v0.1/flash-loader \
+ telegps-v0.3 telegps-v0.3/flash-loader \
+ stm-bringup stm-demo \
+ telelco-v0.2 telelco-v0.2/flash-loader \
+ telescience-v0.2 telescience-v0.2/flash-loader
+
+ARMM0DIRS=\
+ easymini-v1.0 easymini-v1.0/flash-loader
+
+AVRDIRS=\
+ telescience-v0.1 telescience-pwm micropeak nanopeak-v0.1
+
+SUBDIRS=
+
+ifeq ($(strip $(HAVE_SDCC)),yes)
+SUBDIRS+=$(SDCCDIRS)
+endif
+
+ifeq ($(strip $(HAVE_ARM_M3_CC)),yes)
+SUBDIRS+=$(ARMM3DIRS)
+foo=bar
+endif
+
+ifeq ($(strip $(HAVE_ARM_M0_CC)),yes)
+SUBDIRS+=$(ARMM0DIRS)
+baz=bletch
+endif
+
+ifeq ($(strip $(HAVE_AVR_CC)),yes)
+SUBDIRS += $(AVRDIRS)
+endif