osd-contiki/examples/compile-platforms/Makefile
2008-08-16 13:08:36 +00:00

20 lines
594 B
Makefile

all:
@rm -f *.output
@echo Compiling on:
@uname -a
@$(MAKE) -s -k compile || cat *.output
compile: msp430 native
6502: c64.platform apple2enh.platform
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 2>&1 ) ; \
$(MAKE) TARGET=$*) > $*.output 2>&1 && echo "$* succeeded") || \
(echo; echo "$* failed"; exit 1)