2007-11-27 21:50:54 +01:00
|
|
|
all:
|
|
|
|
@rm -f *.output
|
2007-11-28 21:05:51 +01:00
|
|
|
@echo Compiling on:
|
|
|
|
@uname -a
|
2007-11-27 21:50:54 +01:00
|
|
|
@$(MAKE) -s -k compile || cat *.output
|
|
|
|
|
|
|
|
compile: msp430 native
|
|
|
|
|
|
|
|
msp430: sky.platform esb.platform # msb430.platform
|
|
|
|
native: native.platform netsim.platform minimal-net.platform
|
|
|
|
|
|
|
|
%.platform:
|
|
|
|
@mkdir -p $*
|
|
|
|
@cp *.c $*
|
|
|
|
@cp Makefile.platform $*/Makefile
|
2007-11-28 13:53:39 +01:00
|
|
|
@((echo; echo ------------------- $* -------------------; \
|
|
|
|
cd $* ; ($(MAKE) TARGET=$* >& /dev/null) ; \
|
|
|
|
$(MAKE) TARGET=$*) >& $*.output && echo "$* succeeded") || \
|
|
|
|
(echo; echo "$* failed"; exit 1)
|