mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-04 21:29:00 +00:00
18 lines
487 B
Makefile
18 lines
487 B
Makefile
all:
|
|
@rm -f *.output
|
|
@$(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
|
|
@(echo; echo ------------------- $* -------------------; \
|
|
cd $* ; ($(MAKE) TARGET=$* >& /dev/null) ; \
|
|
$(MAKE) TARGET=$*) >& $*.output || \
|
|
(echo; echo "$* failed"; exit 1)
|