2007-11-27 20:50:54 +00:00
|
|
|
all:
|
|
|
|
@rm -f *.output
|
2007-11-28 20:05:51 +00:00
|
|
|
@echo Compiling on:
|
|
|
|
@uname -a
|
2007-11-27 20:50:54 +00:00
|
|
|
@$(MAKE) -s -k compile || cat *.output
|
|
|
|
|
2008-10-17 17:55:13 +00:00
|
|
|
compile: 6502 msp430 native avr
|
2007-11-27 20:50:54 +00:00
|
|
|
|
2010-11-07 11:06:54 +00:00
|
|
|
6502: c64.platform c128.platform apple2enh.platform atari.platform
|
2007-11-27 20:50:54 +00:00
|
|
|
msp430: sky.platform esb.platform # msb430.platform
|
2011-08-31 20:04:02 +00:00
|
|
|
native: native.platform minimal-net.platform
|
2008-10-17 20:23:32 +00:00
|
|
|
avr: avr-raven.platform
|
2007-11-27 20:50:54 +00:00
|
|
|
|
2009-03-12 21:58:20 +00:00
|
|
|
clean:
|
|
|
|
@rm -rf [a-z]*
|
|
|
|
|
2007-11-27 20:50:54 +00:00
|
|
|
%.platform:
|
|
|
|
@mkdir -p $*
|
|
|
|
@cp *.c $*
|
|
|
|
@cp Makefile.platform $*/Makefile
|
2007-11-28 12:53:39 +00:00
|
|
|
@((echo; echo ------------------- $* -------------------; \
|
2008-08-16 13:08:36 +00:00
|
|
|
cd $* ; ($(MAKE) TARGET=$* > /dev/null 2>&1 ) ; \
|
|
|
|
$(MAKE) TARGET=$*) > $*.output 2>&1 && echo "$* succeeded") || \
|
2007-11-28 12:53:39 +00:00
|
|
|
(echo; echo "$* failed"; exit 1)
|