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
|
|
|
|
|
2008-10-17 19:55:13 +02:00
|
|
|
compile: 6502 msp430 native avr
|
2007-11-27 21:50:54 +01:00
|
|
|
|
2008-08-17 11:56:58 +02:00
|
|
|
6502: c64.platform c128.platform apple2enh.platform
|
2007-11-27 21:50:54 +01:00
|
|
|
msp430: sky.platform esb.platform # msb430.platform
|
|
|
|
native: native.platform netsim.platform minimal-net.platform
|
2008-10-17 22:23:32 +02:00
|
|
|
avr: avr-raven.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)
|