#
#             LUFA Library
#     Copyright (C) Dean Camera, 2010.
#              
#  dean [at] fourwalledcubicle [dot] com
#      www.fourwalledcubicle.com
#

# Makefile to build all the LUFA Projects. Call with "make all" to
# rebuild all projects.

# Projects are pre-cleaned before each one is built, to ensure any
# custom LUFA library build options are reflected in the compiled
# code.

all:
	make -C AVRISP-MKII clean
	make -C AVRISP-MKII all

	make -C Benito clean
	make -C Benito all

	make -C LEDNotifier clean
	make -C LEDNotifier all

	make -C Magstripe clean
	make -C Magstripe all

	make -C MissileLauncher clean
	make -C MissileLauncher all

	make -C TemperatureDataLogger clean
	make -C TemperatureDataLogger all

	make -C USBtoSerial clean
	make -C USBtoSerial all
	
	make -C XPLAINBridge clean
	make -C XPLAINBridge all

%:
	make -C AVRISP-MKII $@
	make -C Benito $@
	make -C LEDNotifier $@	
	make -C Magstripe $@
	make -C MissileLauncher $@
	make -C TemperatureDataLogger $@
	make -C USBtoSerial $@
	make -C XPLAINBridge $@