Prepared for automatic cc65 compilation

This commit is contained in:
adamdunkels 2008-08-16 13:08:36 +00:00
parent 76e03317c7
commit 96c47c8ef8
2 changed files with 5 additions and 3 deletions

View File

@ -6,6 +6,7 @@ all:
compile: msp430 native
6502: c64.platform apple2enh.platform
msp430: sky.platform esb.platform # msb430.platform
native: native.platform netsim.platform minimal-net.platform
@ -14,6 +15,6 @@ native: native.platform netsim.platform minimal-net.platform
@cp *.c $*
@cp Makefile.platform $*/Makefile
@((echo; echo ------------------- $* -------------------; \
cd $* ; ($(MAKE) TARGET=$* >& /dev/null) ; \
$(MAKE) TARGET=$*) >& $*.output && echo "$* succeeded") || \
cd $* ; ($(MAKE) TARGET=$* > /dev/null 2>&1 ) ; \
$(MAKE) TARGET=$*) > $*.output 2>&1 && echo "$* succeeded") || \
(echo; echo "$* failed"; exit 1)

View File

@ -1,5 +1,6 @@
all: print-version hello-world
CONTIKI = ../../..
APPS=serial-shell webserver telnetd
include $(CONTIKI)/Makefile.include
print-version:
@$(CC) --version
@$(CC) --version || echo