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-08-19 09:20:27 +00:00
|
|
|
compile: 6502 msp430 native
|
2007-11-27 20:50:54 +00:00
|
|
|
|
2008-08-17 09:56:58 +00:00
|
|
|
6502: c64.platform c128.platform apple2enh.platform
|
2007-11-27 20:50:54 +00: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 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)
|