forked from Zolertia/contiki
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request contiki-os#1730 from groessler/something_to_pull
Some 6502 target changes
- Loading branch information
Showing
3 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,6 @@ | |
# Author: Oliver Schmidt <[email protected]> | ||
# | ||
|
||
ifndef CONTIKI | ||
${error CONTIKI not defined! You must specify where Contiki resides} | ||
endif | ||
|
||
ifndef AC | ||
${error AC not defined! You must specify where the AppleCommander jar resides} | ||
endif | ||
|
@@ -48,6 +44,7 @@ ifndef DIR2ATR | |
endif | ||
|
||
all: apple2 atari c64 c128 | ||
clean: apple2-clean atari-clean c64-clean c128-clean | ||
|
||
ifeq ($(shell echo),) | ||
NULLDEV = /dev/null | ||
|
@@ -65,26 +62,33 @@ endif | |
CC65 := $(shell cl65 --print-target-path) | ||
|
||
define makes | ||
$1-makes: | ||
$(MAKE) -C ../../cpu/6502/ethconfig TARGET=$1 | ||
$(MAKE) -C ../../cpu/6502/ipconfig TARGET=$1 | ||
$(MAKE) -C ../../examples/webbrowser TARGET=$1 | ||
$(MAKE) -C ../../examples/webbrowser-80col TARGET=$1 | ||
$(MAKE) -C ../../examples/wget TARGET=$1 | ||
$(MAKE) -C ../../examples/irc TARGET=$1 | ||
$(MAKE) -C ../../examples/irc-80col TARGET=$1 | ||
$(MAKE) -C ../../examples/webserver TARGET=$1 HTTPD-CFS=1 | ||
$(MAKE) -C ../../examples/telnet-server TARGET=$1 | ||
.PHONY: $1-$2makes | ||
$1-$2makes: | ||
$(MAKE) -C ../../cpu/6502/ethconfig TARGET=$1 $2 | ||
$(MAKE) -C ../../cpu/6502/ipconfig TARGET=$1 $2 | ||
$(MAKE) -C ../../examples/webbrowser TARGET=$1 $2 | ||
$(MAKE) -C ../../examples/webbrowser-80col TARGET=$1 $2 | ||
$(MAKE) -C ../../examples/wget TARGET=$1 $2 | ||
$(MAKE) -C ../../examples/irc TARGET=$1 $2 | ||
$(MAKE) -C ../../examples/irc-80col TARGET=$1 $2 | ||
$(MAKE) -C ../../examples/webserver TARGET=$1 HTTPD-CFS=1 $2 | ||
$(MAKE) -C ../../examples/telnet-server TARGET=$1 $2 | ||
endef | ||
|
||
$(eval $(call makes,apple2enh)) | ||
$(eval $(call makes,apple2enh,clean)) | ||
|
||
%.zip: | ||
zip $@ $^ | ||
echo $(ZIPCOMMENT) | zip -z $@ | ||
|
||
.PHONY: apple2 apple2-clean atari atari-clean c64 c64-clean c128 c128-clean | ||
|
||
apple2: contiki-apple2.zip | ||
|
||
apple2-clean: apple2enh-cleanmakes | ||
rm -f contiki-apple2.zip contiki-apple2-1.dsk contiki-apple2-2.dsk contiki-apple2-3.dsk contiki-apple2.po | ||
|
||
contiki-apple2.zip: contiki-apple2-1.dsk contiki-apple2-2.dsk contiki-apple2-3.dsk contiki-apple2.po | ||
|
||
contiki-apple2-1.dsk: apple2enh-makes | ||
|
@@ -168,9 +172,13 @@ contiki-apple2.po: apple2enh-makes | |
java -jar $(AC) -p $@ notfound.htm bin 0 < ../../examples/webserver/httpd-cfs/notfound.htm | ||
|
||
$(eval $(call makes,atarixl)) | ||
$(eval $(call makes,atarixl,clean)) | ||
|
||
atari: contiki-atari.zip | ||
|
||
atari-clean: atarixl-cleanmakes | ||
rm -f contiki-atari.zip contiki-atari-1.atr contiki-atari-2.atr contiki-atari-3.atr contiki-atari.atr | ||
|
||
contiki-atari.zip: contiki-atari-1.atr contiki-atari-2.atr contiki-atari-3.atr contiki-atari.atr | ||
|
||
contiki-atari-1.atr: atarixl-makes | ||
|
@@ -252,9 +260,13 @@ contiki-atari.atr: atarixl-makes | |
rm -r atr | ||
|
||
$(eval $(call makes,c64)) | ||
$(eval $(call makes,c64,clean)) | ||
|
||
c64: contiki-c64.zip | ||
|
||
c64-clean: c64-cleanmakes | ||
rm -f contiki-c64.zip contiki-c64-1.d64 contiki-c64-2.d64 contiki-c64-3.d64 contiki-c64.d71 contiki-c64.d81 | ||
|
||
contiki-c64.zip: contiki-c64-1.d64 contiki-c64-2.d64 contiki-c64-3.d64 contiki-c64.d71 contiki-c64.d81 | ||
|
||
contiki-c64-1.d64: c64-makes | ||
|
@@ -351,9 +363,13 @@ contiki-c64.d81: c64-makes | |
$(C1541) -attach $@ -write ../../examples/webserver/httpd-cfs/notfound.htm notfound.htm,s >$(NULLDEV) | ||
|
||
$(eval $(call makes,c128)) | ||
$(eval $(call makes,c128,clean)) | ||
|
||
c128: contiki-c128.zip | ||
|
||
c128-clean: c128-cleanmakes | ||
rm -f contiki-c128.zip contiki-c128-1.d64 contiki-c128-2.d64 contiki-c128.d71 contiki-c128.d81 | ||
|
||
contiki-c128.zip: contiki-c128-1.d64 contiki-c128-2.d64 contiki-c128.d71 contiki-c128.d81 | ||
|
||
contiki-c128-1.d64: c128-makes | ||
|