osd-contiki/examples/compile-platforms/Makefile

18 lines
493 B
Makefile
Raw Normal View History

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=$* hello-world >& /dev/null ; \
$(MAKE) TARGET=$* hello-world) >& $*.output || \
echo "$* failed"