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-08-19 11:20:27 +02:00
|
|
|
compile: 6502 msp430 native
|
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
|
|
|
|
|
|
|
|
%.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)
|