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
|
|
|
|
|
2011-09-01 18:02:19 +02:00
|
|
|
compile: 6502 msp430 native avr arm
|
2007-11-27 21:50:54 +01:00
|
|
|
|
2010-11-07 12:06:54 +01:00
|
|
|
6502: c64.platform c128.platform apple2enh.platform atari.platform
|
2011-09-01 18:02:19 +02:00
|
|
|
msp430: sky.platform esb.platform z1.platform
|
2011-08-31 22:04:02 +02:00
|
|
|
native: native.platform minimal-net.platform
|
2008-10-17 22:23:32 +02:00
|
|
|
avr: avr-raven.platform
|
2011-09-01 18:02:19 +02:00
|
|
|
arm: redbee-econotag.platform redbee-dev.platform
|
2007-11-27 21:50:54 +01:00
|
|
|
|
2009-03-12 22:58:20 +01:00
|
|
|
clean:
|
|
|
|
@rm -rf [a-z]*
|
|
|
|
|
2007-11-27 21:50:54 +01:00
|
|
|
%.platform:
|
|
|
|
@mkdir -p $*
|
|
|
|
@cp *.c $*
|
|
|
|
@cp Makefile.platform $*/Makefile
|
2007-11-28 13:53:39 +01:00
|
|
|
@((echo; echo ------------------- $* -------------------; \
|
2008-08-16 15:08:36 +02:00
|
|
|
cd $* ; ($(MAKE) TARGET=$* > /dev/null 2>&1 ) ; \
|
|
|
|
$(MAKE) TARGET=$*) > $*.output 2>&1 && echo "$* succeeded") || \
|
2007-11-28 13:53:39 +01:00
|
|
|
(echo; echo "$* failed"; exit 1)
|